[ovs-discuss] Change VLAN

Ben Pfaff blp at nicira.com
Thu Jul 19 22:45:40 UTC 2012


vlan10 would be on VLAN 10.

On Fri, Jul 20, 2012 at 01:42:12AM +0300, Göktuğ YILDIRIM wrote:
> Thanks, I will read more carefully.
> 
> I have a host IP by assigning one to br10. How is it different to assign to
> vlan10 (as an internal type interface)?
> 
> On Fri, Jul 20, 2012 at 1:29 AM, Ben Pfaff <blp at nicira.com> wrote:
> 
> > On Fri, Jul 20, 2012 at 01:20:58AM +0300, Göktuğ YILDIRIM wrote:
> > > May I ask if I miss the documentation or is it undocumented? I'd like to
> > > read more if there is...
> >
> > The database is documented in ovs-vswitchd.conf.db(5).
> > The ovs-vsctl command is documented in ovs-vsctl(8).
> >
> > > For example there is one that I am curious of why need to use internal
> > type
> > > interface.
> >
> > You don't have to.
> >
> > > I am trying to setup a simple switch to vlan my VMs and as far
> > > as I see it is possible to make subset of bridges as below.
> > > ********************************
> > > ovs-vsctl add-br br0
> > > ovs-vsctl add-br br10 br0 10
> > > ovs-vsctl add-br br20 br0 20
> > > ********************************
> > > Then you add br10 or br20 to the related VM config.
> >
> > Sure, that works.
> >
> > > However there is seems to be another way that uses below example. In
> > fact I
> > > could not find a way to work with it (as in KVM).
> > >
> > ***********************************************************************************
> > > ovs-vsctl add-port br0 vlan10 tag=10 -- set Interface vlan10
> > type=internal
> > > ifconfig vlan10 192.168.0.123
> > >
> > **********************************************************************************
> >
> > That's how you'd put a host IP on the VLAN.  See the FAQ:
> > http://openvswitch.org/faq/
> >



More information about the discuss mailing list