I posted this to virtualbox forum which I got no response and now I am posting it here as it might be a openvswitch problem instead of virtualbox :- I have used virtualbox with open vswitch without any problem when I am not using VLAN.
However, when I am using VLAN tagging in one of the open vswitch port, I cannot get it working. Here is the host ( debian 14.04 64 bit ) :- for i in 0 1 do ovs-vsctl add-br br$i ip tuntap add mode tap vnet$i ip link set vnet$i up ovs-vsctl add-port br$i vnet$i done ifconfig br0 192.168.2.2 up ifconfig br1 192.168.3.1 up # add a port to switch br0 to have vlan tagging ip tuntap add mode tap vlan100 ip link set vlan100 up ovs-vsctl add-port br0 vlan100 tag=100 # optional settings # set other ports to trunk and untagged ovs-vsctl set port vnet0 trunks=100 ovs-vsctl set port vnet0 vlan_mode=native-untagged ovs-vsctl set port br0 trunks=100 ovs-vsctl set port br0 vlan_mode=native-untagged Then I run two guess OSes ( Guest1 and Guest 2 ) in virtualbox, one I bridged it to the vnet0, another I bridged it to the vlan100 interface. On the guest1 which is bridged to vbet0, I configured a vlan 100 using this :- vconfig add eth0 100 ifconfig eth0.100 192.168.100.1 up On the guest2 which is bridged to vlan100, I configure the interface using this :- ifconfig eth0 192.168.100.2 up I cannot ping from one guest to another. Basically the traffic ping from guest2 is not tagged with VLAN 100. Also tried with and without those optional settings above. It's not making any difference. I did the same setup using qemu, it's working in qemu. Other observations:- I added also a vlan interface on the host, ie On the Host, ie :- # vconfig add br0 100 # ifconfig br0.100 192.168.100.3 up The host can ping to both guest OSes, guest 1 and guest 2 and vice versa. Only guest 1 cannot ping to guest 2 and vice versa.
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss