[ovs-discuss] How to use open vswitch to create vlan?
blp at nicira.com
Wed Jul 28 16:30:28 UTC 2010
On Tue, Jul 27, 2010 at 7:14 PM, wizo <wizo_wu at yahoo.com.cn> wrote:
> I am trying to find out how to use open vswitch to create vlan? In the
> ovs-vsctl document, I learned that we need to make a fake bridge to create a
> vlan. And since I use Xen, hoping to achieve the network virtualization.
> So, I hope someone can make a list of steps how to use openvswitch to
> create a vlan that can allow different vms in the same physical machine(like
> my pc) or different vms among different physical machines(which is the most
> important) to be in the same vlan!
First, what are you replying to? The subject line had Re: but you didn't quote
anything or mention a context.
You don't need a fake bridge to use vlans. Can you show me the part
that says that you do? I would like to correct it.
By default, Open vSwitch ports are trunk ports that trunk every VLAN. This is
probably what you want for your physical ports (e.g. eth0). To create an access
port for a particular VLAN, specify the tag on the "add-port" command, e.g.:
ovs-vsctl add-port br0 vif1.0 tag=123
or you can set the tag on a port that has already been created:
ovs-vsctl set Port br0 tag=123
More information about the discuss