Hi Serguei, The Match is on IPv4 packets (type 0x800) and the action is to add a MPLS header to the packet. I'm pinging from h1 to h2 so the first packet that reaches s1 has a Ethernet header and a IPv4 header. The output should be the same packet with a MPLS header between the IP and Eth headers. However the packet simply disappears.
On Mon, Sep 7, 2015 at 7:28 PM, Serguei Bezverkhi (sbezverk) < sbezv...@cisco.com> wrote: > Hi Seyed, > > > > Shouldn’t you use packet type 0x8847 instead of 0x0800 in your layer 2 to > identify to your higher layer that it is MPLS packet?? I have never tried > it but it seems logical. > > > > Thank you > > > > Serguei > > > > [image: > http://www.cisco.com/c/dam/assets/email-signature-tool/logo_07.png?ct=1423747865775] > > *Serguei Bezverkhi,* > TECHNICAL LEADER.SERVICES > Global SP Services > sbezv...@cisco.com > Phone: *+1 416 306 7312 <%2B1%20416%20306%207312>* > Mobile: *+1 514 234 7374 <%2B1%20514%20234%207374>* > > CCIE (R&S,SP,Sec) - #9527 > > > Cisco.com <http://www.cisco.com/> > > > > [image: http://www.cisco.com/assets/swa/img/thinkbeforeyouprint.gif] Think > before you print. > > This email may contain confidential and privileged material for the sole > use of the intended recipient. Any review, use, distribution or disclosure > by others is strictly prohibited. If you are not the intended recipient (or > authorized to receive for the recipient), please contact the sender by > reply email and delete all copies of this message. > > Please click here > <http://www.cisco.com/web/about/doing_business/legal/cri/index.html> for > Company Registration Information. > > > > > > *From:* discuss [mailto:discuss-boun...@openvswitch.org] *On Behalf Of *Seyed > Hossein Mortazavi > *Sent:* Monday, September 07, 2015 6:37 PM > *To:* discuss@openvswitch.org > *Subject:* [ovs-discuss] MPLS push - OVS 2.4 > > > > Hi, > > > > I'm running OVS 2.4 on Ubuntu 14.04 with Kernel 3.11. > > > > I'm trying to add MPLS headers (and then pop them) to IP packets. My > topology looks like: > > h1---s1---s2---s3---h2 > > > > I've statically already configured the switches such that they would have > rules for ARP installed. > > > > However adding the rule: > > > > add-flow s1 > "in_port=1,dl_type=0x0800,dl_src=26:95:84:d0:54:56,dl_dst=26:95:84:d0:54:56,actions=push_mpls:0x8847,set_mpls_label:10,output:2" > > > > Doesn't seem to work (both for Openflow 1.3 and Openflow 1.0). Packets do > not get to s2. > > > > Does anyone know how I can do so? > > > > based on the FAQ, > > "Open vSwitch version 2.4 can match, push, or pop up to 3 MPLS labels and > look past the MPLS label into the encapsulated packet. It will have kernel > support for MPLS, yielding improved performance." > > > > -- > > Hossein > -- Seyed Hossein Mortazavi Computer Science MS Student, University of Alberta
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss