[ovs-discuss] OVS [vlan] Fake Bridge

Sean McCully seanmccully at gmail.com
Wed May 20 19:56:19 UTC 2015

I am having a problem configuring open vswitch with my vlan configuration,
I am running Ubuntu 15.04 (3.16.0-37).

The following with ip/kernel configuration works,

$ ip link add link eth1 name eth1.120 type vlan id 120
$ ip add add dev eth1.120
$ ip link set up dev eth1.120
$ route add default gw eth1.120
$ ping -c 2

I am under the impression the following should work with ovs to establish
the same results, but does not.
$ ip link set promisc on dev eth1
$ ovs-vsctl --version
  ovs-vsctl (Open vSwitch) 2.3.1
  DB Schema 7.6.2
$ ovs-vsctl add-br br1
$ ovs-vsctl add-port br1 eth1
$ ovs-vsctl add-br vlan120 br1 120 # Create Fake Bridge with vlan 120
$ ovs-vsctl add-port vlan120 vif120 -- set interface vif120 type=internal
$ ifconfig vif120 up
$ route add default gw
$ ping -c 2

Loss of packets, have a missed something? How should I achieve same ip
stack configuration with ovs as shown above?

a. Creating eth1.120 and adding as port to bridge created with ovs and
assigning ip to bridge results in functioning interface but ultimately
fails with the creation of additional vlans on same bridge/interface and
expecting packets to be externally route-able.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20150520/a0c6d1fe/attachment-0005.html>

More information about the discuss mailing list