[ovs-discuss] Problem using virtualbox with open vswitch with VLAN
mctiew at yahoo.com
Wed Mar 4 06:14:39 UTC 2015
Please bear with me as I don't quite understand the significance of the vlan_mode setting.
In any case, I changed the br0 port and vnet0 port to vlan_mode=native-tagged, still guest 1 is not able to ping guest 2. The ping result is the same as before.
From: Ben Pfaff <blp at nicira.com>
To: Ming-Ching Tiew <mctiew at yahoo.com>
Cc: "discuss at openvswitch.org" <discuss at openvswitch.org>
Sent: Wednesday, March 4, 2015 1:56 PM
Subject: Re: [ovs-discuss] Problem using virtualbox with open vswitch with VLAN
On Tue, Mar 03, 2015 at 09:55:26PM -0800, Ben Pfaff wrote:
> 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.
Also it looks like later you actually want packets going to port vnet0
at least in the native VLAN to be tagged. That's native-tagged mode,
not native-untagged mode.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the discuss