[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvswitch-discuss
Subject:    [ovs-discuss] How to use open vswitch to create vlan?
From:       blp () nicira ! com (Ben Pfaff)
Date:       2010-07-28 16:30:28
Message-ID: AANLkTikueRHSUwf6Z0=JqYctS8GbMAcS3LE_N9odv_V_ () mail ! gmail ! com
[Download RAW message or body]

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
of ovs-vsctl
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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic