[ovs-discuss] Problem using virtualbox with open vswitch with VLAN

Ben Pfaff blp at nicira.com
Wed Mar 4 05:55:26 UTC 2015


On Wed, Mar 04, 2015 at 01:45:44AM +0000, Ming-Ching Tiew wrote:
> 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

It does not make sense to specify native-untagged mode without
specifying a tag, e.g. I guess you want to add tag=100 in each case.



More information about the discuss mailing list