[ovs-discuss] VLAN bridge not working

Glen Davison glend at exetel.com.au
Wed Apr 10 05:57:31 UTC 2013

Dear All,

I have been struggling to use open-vswitch with VLANs and kvm VMs for 
some time.  I can create bridges and ports, but my bridge doesn't talk.  
Any and all assistance appreciated.

My vital statistics - Host:
* debian wheezy 7.0
* kernel 3.8.4 rebuilt (we have a weird grudge here against loadable 
modules, and I was allowed to compile for mods only after long painful 
struggles with a module-less kernel)
* Open-vSwitch packages
ii  openvswitch-brcompat            1.9.0-0ubuntu1~local1 amd64        
Open vSwitch bridge compatibility support
ii  openvswitch-common              1.9.0-0ubuntu1~local1 amd64        
Open vSwitch common components
ii  openvswitch-datapath-source     1.9.0-0ubuntu1~local1 all          
Open vSwitch datapath module source - module-assistant version
ii  openvswitch-switch              1.9.0-0ubuntu1~local1 amd64        
Open vSwitch switch implementations
* lsmod
Module                  Size  Used by
ebt_arp                 1666  -2
ebt_ip                  1423  -2
ebtable_nat             1767  -2
ebtables               20276  -2
*  iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
* relevant bits of /etc/network/interfaces
auto ovsbr0
allow-ovs ovsbr0
iface ovsbr0 inet static
         ovs_type OVSBridge
         ovs_ports eth0.78
allow-ovsbr0 eth0.78
iface eth0.78 inet manual
         ovs_type OVSPort
         ovs_bridge ovsbr0
         ovs_options tag=78
* kvm config - relevant bits from guest.xml
   <interface type='bridge'>
       <mac address='32:3d:5e:00:4f:01'/>
       <source bridge='ovsbr0'/>
       <virtualport type='openvswitch'>
       <model type='virtio'/>
       <filterref filter='clean-traffic'>
         <parameter name='IP' value=''/>
       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' 
* route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface         UG    0 0        0 eth1.62 U     0 0        0 eth1.62   U     0 0        0 ovsbr0
* ovs-vsctl show
     Bridge "ovsbr0"
         Port "ovsbr0"
             Interface "ovsbr0"
                 type: internal
         Port "eth0.78"
             tag: 78
             Interface "eth0.78"
     ovs_version: "1.9.0"
* ovs-vsctl list-br
* ovs-vsctl list-ports ovsbr0

* debian squeeze 5.0.8
* kernel 2.6.26-2-amd64
* ip ad show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast 
state UNKNOWN qlen 1000
     link/ether 32:3d:5e:00:4f:01 brd ff:ff:ff:ff:ff:ff
     inet brd scope global eth0
* route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface   U     0 0        0 eth0         UG    0 0        0 eth0

Taking the bridge down and up throws spurious errors, but seems to work.
host> ifdown ovsbr0
Removed VLAN -:eth0.78:-
Cannot find device "eth0.78"
host> ifup ovsbr0
Set name-type for VLAN subsystem. Should be visible in /proc/net/vlan/config
ERROR: trying to add VLAN #78 to IF -:eth0:-  error: File exists

But ping - nothing.

I am stumped at the moment.  If anyone can see what I am missing, I 
would be overjoyed to hear.


More information about the discuss mailing list