On Tue, Feb 05, 2013 at 03:25:35PM +0800, Hong Wayne wrote:
> If I modified ''dl_vlan'' field in the flow entry which one of entry is
> setting to 15 and another is default(0). Like below:
> 
>  cookie=0x0, duration=0.137s, table=0, n_packets=1, n_bytes=98,
> idle_timeout=10, hard_timeout=30, priority=65535,icmp,dl_vlan=15
> ,dl_vlan_pcp=0,dl_src=c8:be:19:49:d7:d1,dl_dst=90:94:e4:d4:f0:91,nw_src=
> 192.168.15.105,nw_dst=192.168.15.110,nw_tos=0,icmp_type=8,icmp_code=0
> actions=output:42
>  cookie=0x0, duration=10.166s, table=0, n_packets=10, n_bytes=1016,
> idle_timeout=10, hard_timeout=30, priority=65535,icmp,dl_vlan=0
> ,dl_vlan_pcp=0,dl_src=90:94:e4:d4:f0:91,dl_dst=c8:be:19:49:d7:d1,nw_src=
> 192.168.15.110,nw_dst=192.168.15.105,nw_tos=0,icmp_type=0,icmp_code=0
> actions=output:2
> 
> 
> If it means when I using the ovs-vsctl command to set VM(192.168.15.105)
> to tag 15, so that it will match the first flow above?
> (ovs-vsctl add-port br0 tap0 tag=15)
> Or dl_vlan is nothing relationship with vlan tag?
> 
> And the second VM doesn't set vlan tag, it will match the second flow?
> 
> In my case, when I don't set the vlan tag for VM(192.168.15.105) but I set
> dl_vlan like above, two of VMs can ping each other.
> 
> So I want to clarify the relationship between OVS vlan tag and dl_vlan in
> the flow entry.

Did you read the FAQ?

Q: My OpenFlow controller doesn't see the VLANs that I expect.

A: The configuration for VLANs in the Open vSwitch database (e.g. via
   ovs-vsctl) only affects traffic that goes through Open vSwitch's
   implementation of the OpenFlow "normal switching" action.  By
   default, when Open vSwitch isn't connected to a controller and
   nothing has been manually configured in the flow table, all traffic
   goes through the "normal switching" action.  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.

   You can use "normal switching" as a component of your OpenFlow
   actions, e.g. by putting "normal" into the lists of actions on
   ovs-ofctl or by outputting to OFPP_NORMAL from an OpenFlow
   controller.  This will only be suitable for some situations,
   though.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to