[ovs-discuss] How to make multiple VLANs on one NIC?

신용진 akayong at gmail.com
Fri May 28 18:59:15 UTC 2010


Hmm, I followed ur instructions


> ovs-vsctl add-br xenbr2
> ovs-vsctl add-port xenbr2 eth2
> ovs-vsctl add-port xenbr2.100 xenbr2 100
> ovs-vsctl add-port xenbr2.200 xenbr2 200


when I tried 

ovs-vsctl add-port xenbr2.100 xenbr2 100

it says

"ovs-vsctl: cannot create a port named xenbr2 because a bridge named xenbr2 already exists"


I already tried

ovs-vsctl add-br xenbr2
ovs-vsctl add-port xenbr2 eth2
ovs-vsctl add-br xenbr2.100 xenbr2 100
ovs-vsctl add-br xenbr2.200 xenbr2 200

but it is impossible to network to other bridge(with same tag).


FYI, I am using CentOS 5.3 and openvswitch version is 1.0.0


-----Original Message-----
From: Ben Pfaff [mailto:blp at nicira.com] 
Sent: Saturday, May 29, 2010 1:30 AM
To: 신용진
Cc: discuss at openvswitch.org
Subject: Re: [ovs-discuss] How to make multiple VLANs on one NIC?

On Thu, May 27, 2010 at 6:49 PM, 신용진 <akayong at gmail.com> wrote:
>
> So I tried like
>
>        ovs-vsctl add-br xenbr2
>        ovs-vsctl add-port xenbr2 eth2
>        ovs-vsctl add-port xenbr2 xenbr2.100 tag=100
>        ovs-vsctl add-port xenbr2 xenbr2.200 tag=200
>
> it works, without any error messages.
> However, I could not set IP to xenbr2.100 or xenbr2.200?
> And I could not find the device xenbr2.100 and xenbr2.200 in "ifconfig -a"

OK.  Now I think I finally understand what you really want.  This should do it:

ovs-vsctl add-br xenbr2
ovs-vsctl add-port xenbr2 eth2
ovs-vsctl add-port xenbr2.100 xenbr2 100
ovs-vsctl add-port xenbr2.200 xenbr2 200

(It is not strictly necessary to make xenbr2.100 and xenbr2.200 "fake
bridges" as above, but it is the most convenient way given the
ovs-vsctl commands.)





More information about the discuss mailing list