Ben, I thought the action=output:2 will forward this to port 2 on my br-tunnel bridge (with a modified VLAN tag). Am I incorrect?
Also, yes there are 2 ovs bridges. This flow is on the second bridge that is connected to the physical nic. The first ovs-bridge has the gre tunnel encapsulation. Thanks, Kevan. -----Original Message----- From: Ben Pfaff [mailto:[email protected]] Sent: 01 October 2013 16:06 To: Kevan McColgan Cc: [email protected] Subject: Re: [ovs-discuss] Adding VLAN tag to GRE Tunnel Header On Tue, Oct 01, 2013 at 02:18:33PM +0000, Kevan McColgan wrote: > We have a GRE tunnel between 2 ovs instances. We are trying to add a > vlan tag to the GRE tunnel header. > > We are using this opeflow definition: > ovs-ofctl add-flow br-tunnel in_port=1,actions=output:2,mod_vlan_id:15 That command doesn't make any sense. It does header modifications but never subsequently sends the packet anywhere, so of course the header modifications don't take effect. > However, the vlan tag of 15 is not being added to the GRE header. Can > anyone shed some light on if we are missing some config? You'll have to do this after the tunnel encapsulates the packet. If the tunnel's output is routed through a second OVS bridge, then you could do it there; otherwise, iptables might be able to do this (I don't know). IMPORTANT NOTE: The information in this e-mail (and any attachments) is confidential. The contents may not be disclosed or used by anyone other than the addressee. If you are not the intended recipient, please notify the sender immediately or telephone: +353 (0)1 6204700. We cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network. If you suspect that the message may have been intercepted or amended, please call the sender. _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
