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

Ben Pfaff blp at nicira.com
Fri May 28 16:29:42 UTC 2010


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