iproute2 mpls support

Discussion in 'Linux Networking' started by Everton Marques, Aug 3, 2015.

  1. Trying to figure out how one can use iproute2 to manage static label-switched MPLS routes in Linux kernel 4.1.

    I am aware iproute2 support for MPLS might be incomplete right now [2].

    Can anyone please shed some light on what iproute2-4.1.1 is currently able to do?

    This is what I have found so far:


    Load mpls module
    sudo modprobe mpls_router

    Find sysctl support
    sysctl -a --pattern mpls
    net.mpls.conf.eth0.input = 0
    net.mpls.conf.eth1.input = 0
    net.mpls.conf.lo.input = 0
    net.mpls.platform_labels = 0

    Enable mpls support
    sudo sysctl -w net.mpls.conf.eth0.input=1
    sudo sysctl -w net.mpls.conf.eth1.input=1
    sudo sysctl -w net.mpls.platform_labels=1000

    push??? (how to add prefix-to-push action?)
    sudo ip route add via mpls 100/200/300 dev eth0

    swap??? (how to add label-swap action?)
    Everton Marques, Aug 3, 2015
    1. Advertisements

  2. Hi Everton Marques,

    I tried above command for push operation-
    sudo ip route add via mpls 100 dev eth0

    After this when I ping to, ping was successful, but ping packet is normal IP packet there is no mpls header encoded with ping packet with label 100.

    Did you find the solution ?

    Thanks in advance.

    Best Regards,
    abhishek.singh0421, Aug 11, 2015
    1. Advertisements

  3. No, sorry.

    Everton Marques, Aug 11, 2015
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.