It is only exchanging untagged packets. 
 
Sent: Friday, August 19, 2016 at 1:13 PM
From: "Ben Pfaff" <b...@ovn.org>
To: "james hopper" <jameshop...@email.com>
Cc: "OVS Discussion" <discuss@openvswitch.org>
Subject: Re: [ovs-discuss] Vlan Tagged packets switching issue
The flows you specified should forward every packet from port 1 to port
2 and vice versa. What behavior do you actually see?

On Fri, Aug 19, 2016 at 10:08:01PM +0200, james hopper wrote:
> Would priority matter if any one of the combination is the only combination? I
> tried after setting priority but it is still not working.
>
> ovs-ofctl add-flow br0 "table=0, priority=65535, in_port=1, actions=output:2"
> ovs-ofctl add-flow br0 "table=0, priority=65535, in_port=2, actions=output:1"
> Sent: Friday, August 19, 2016 at 12:52 PM
> From: "Ben Pfaff" <b...@ovn.org>
> To: "james hopper" <jameshop...@email.com>
> Cc: "OVS Discussion" <discuss@openvswitch.org>
> Subject: Re: [ovs-discuss] Vlan Tagged packets switching issue
> On Fri, Aug 19, 2016 at 09:33:28PM +0200, james hopper wrote:
> > Thanks Ben for your response. As mentioned, I have tried matching on dl_vlan
> > previously. Furthermore, vlan_tci=0 is perfectly matching the untagged
> incoming
> > packets. I am able to switch Native vlan traffic from vlan 10 (untagged
> > traffic). But the tagged traffic does not match vlan_tci=0x1000/0x1000 rule.
> > Here is what I have tried so far.
> >
> > Packets are tagged with vlan_id = 20
> >
> > ovs-ofctl add-flow br0 "table=0, in_port=1, actions=output:2"
> > ovs-ofctl add-flow br0 "table=0, in_port=2, actions=output:1"
> >
> > ovs-ofctl add-flow br0 "table=0, in_port=1, dl_vlan=20, actions=output:2"
> > ovs-ofctl add-flow br0 "table=0, in_port=2, dl_vlan=20, actions=output:1"
> >
> > ovs-ofctl add-flow br0 "table=0, in_port=1, vlan_tci=0x1000/0x1000, actions=
> > output:2"
> > ovs-ofctl add-flow br0 "table=0, in_port=2, vlan_tci=0x1000/0x1000, actions=
> > output:1"
> >
> > ovs-ofctl add-flow br0 "table=0, in_port=1, dl_type=0x8100, actions=output:2"
> > ovs-ofctl add-flow br0 "table=0, in_port=2, dl_type=0x8100, actions=output:1"
> >
> > just to check if the rules are being triggered, I also tried dropping the
> > packets on OVS.
> > ovs-ofctl add-flow br0 "table=0, dl_type=0x8100, actions=drop"
> > ovs-ofctl add-flow br0 "table=0, vlan_tci=0x1000/0x1000, actions=drop"
> > ovs-ofctl add-flow br0 "table=0, dl_vlan=20, actions=drop"
>
> None of your flows specify a priority. That's probably the problem.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to