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)
CONFIG_OPENVSWITCH=y
CONFIG_BRIDGE=m
* 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
        address 101.102.103.253
        netmask 255.255.255.0
        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'>
      </virtualport>
      <model type='virtio'/>
      <filterref filter='clean-traffic'>
        <parameter name='IP' value='101.102.103.101'/>
      </filterref>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
  </interface>
* route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
0.0.0.0         10.2.4.126      0.0.0.0         UG    0 0        0 eth1.62
10.2.4.64       0.0.0.0         255.255.255.192 U     0 0        0 eth1.62
101.102.103.0   0.0.0.0         255.255.255.0   U     0 0        0 ovsbr0
* ovs-vsctl show
dff187ff-1963-4ee9-b4f8-6aa6439cd7e2
    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
ovsbr0
* ovs-vsctl list-ports ovsbr0
eth0.78

Guest:
* 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 101.102.103.101/24 brd 101.102.103.255 scope global eth0
* route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref Use Iface
101.102.103.0   0.0.0.0         255.255.255.0   U     0 0        0 eth0
0.0.0.0         101.102.103.254   0.0.0.0         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.


TIA
Glen

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to