netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: roopa <roopa@cumulusnetworks.com>
To: Sam Russell <sam.h.russell@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: MPLS decap with iproute2
Date: Mon, 07 Dec 2015 18:37:00 -0800	[thread overview]
Message-ID: <5666424C.3050801@cumulusnetworks.com> (raw)
In-Reply-To: <CAJm+voVUXPBXBRo98K6XS9pVEkN=fCJ4chRdQ=azcZO9ge9gEg@mail.gmail.com>

On 12/7/15, 11:42 AM, Sam Russell wrote:
> Hi,
>
> I've had success with the iproute2 manpage example for encapsulating
> outgoing traffic in MPLS, but I've not found a way to add decap routes
> inbound.
>
> I've tried "ip route -f mpls add 100 dev lo" and other variations, but I
> get netlink errors back.
>
> Has this been built yet? Is there sample config that I can try out? I'm
> running a home-built 4.3 kernel + iproute2 built from head (on ubuntu
> 15.10) and am comfortable with perf and splashing around in the codebase if
> need be.
>
Example below should work
 ip -f mpls route add 100 as 200 via inet 10.1.1.2 dev eth0

You have to enable mpls on the interface first:
echo 1 > /proc/sys/net/mpls/conf/eth0/input

multipath iproute2 patches are not in yet. Will submit them soon.

let me know if you still get errors.

  parent reply	other threads:[~2015-12-08  2:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-07 19:42 MPLS decap with iproute2 Sam Russell
2015-12-07 21:42 ` Robert Shearman
2015-12-07 21:50   ` Sam Russell
2015-12-08 21:45     ` David Ahern
2015-12-08  2:37 ` roopa [this message]
2015-12-08  7:26   ` Sam Russell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5666424C.3050801@cumulusnetworks.com \
    --to=roopa@cumulusnetworks.com \
    --cc=netdev@vger.kernel.org \
    --cc=sam.h.russell@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).