[ovs-discuss] OVS vlan tag and dl_vlan in the flow entry

Ben Pfaff blp at nicira.com
Fri Feb 8 17:07:51 UTC 2013


I think I gave a complete explanation before, can you ask a more
specific question?

On Sat, Feb 09, 2013 at 12:59:23AM +0800, Hong Wayne wrote:
> Hi Ben:
> 
> 
> Thanks for your replying.
> 
> After my test, when I set two Open vSwitch with VLAN using ovs-vsctl
> command like below:
> 
> OVS1:
> #sudo ovs-vsctl add-port br-int eth1 trunks=15
> #sudo ovs-vsctl add-port br-int vnet0_1 tag=15 (VM1)
> 
> OVS2:
> #sudo ovs-vsctl add-port br-int eth1 trunks=15
> #sudo ovs-vsctl add-port br-int vnet0_2 tag=15 (VM2)
> 
> And I connect two of trunk ports(eth1) using physical wire. Two of OVS all
> connect to POX Controller.
> 
> In my case when VM1 ping VM2, Do I need to add the VLAN tag through the
> Controller with mod_vlan_vid and strip the VLAN tag with strip_vlan when
> packet come back?
> 
> Sorry, I got some confused about the VLAN setting.
> 
> 
> 
> 2013/2/7 Ben Pfaff <blp at nicira.com>
> 
> > On Wed, Feb 06, 2013 at 08:11:45PM +0800, Hong Wayne wrote:
> > > I already read the FAQ before, but my doubt is about the difference
> > between
> > > dl_vlan in flow entry and the vlan tag using by ovs-vsctl command.
> > >
> > > In FAQ (Q: My OpenFlow controller doesn't see the VLANs that I expect.)
> > >
> > > The sentences for ''But, if you set up OpenFlow flows on your own,
> > through
> > > a controller or using ovs-ofctl or through other means, then you have to
> > > implement VLAN handling yourself.''
> > >
> > > Does it means the way to ''set dl_valn field'' through Controller or
> > > commands? So I need to modify the action field to "normal" into the lists
> > > of actions to take dl_vlan effect?
> >
> > If a packet comes in on an access port, and the flow table needs to send
> > it out on a trunk port, then the flow will need to add the VLAN tag with
> > mod_vlan_vid.  Conversely, if a packet comes in on a trunk port, and the
> > flow table needs to send it out on an access port, then the flow will
> > need to strip the VLAN tag with strip_vlan.
> >



More information about the discuss mailing list