0

I am trying to apply MPLS on mininet and I was able to install iproute2, the problem that I have is when I try to use any command in the format

ip -f mpls xxx

I always get an error.

I was able to insert a route

mininet> r1 ip route add 10.0.4.0/24 encap mpls 400 via inet 172.16.1.2
mininet> r1 ip route show
10.0.1.0/24 dev r1-eth0 proto kernel scope link src 10.0.1.1 
10.0.4.0/24  encap mpls  400 via 172.16.1.2 dev r1-eth1 
172.16.1.0/24 dev r1-eth1 proto kernel scope link src 172.16.1.1 

but I am not able to see it using the correct command for mpls

mininet> r1 ip -f mpls route show
mininet> 

also when I try to do a swap of the labels I get an error

mininet> r5 ip -f mpls route add 400 as 405 via inet 172.16.8.2
RTNETLINK answers: Invalid argument

any help will be greatly appreciated.

1

I solved my problem by changing the value on /proc/sys/net/mpls/platform_labels the value set here will be the highest label value that can be used

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.