Anno domini 2018 Thiruvazhiyan Lakshmanan scripsit:

Hi,

> When I tried to add " ip route add 192.168.1.0/24 encap mpls 100 via inet 
> 10.10.101.1" I get "Error: either "to" is duplicate, or "encap" is a garbage."
> 
> root@ubuntu4-4-VM1:/proc/sys/net# ip route add 192.168.1.0/24 encap mpls 100 
> via inet 10.10.101.1
> Error: either "to" is duplicate, or "encap" is a garbage.
[...]

Did you activate MPLS via sysctl?

  sysctl -w net.mpls.platform_labels=n

where n is the highest MPLS label to be usable (integer) and

  sysctl -w net.mpls.conf.$iface.input=1

there $iface is/are the interface(s) to decapsulate MPLS labels on.

> root@ubuntu4-4-VM1:/proc/sys/net# uname -r
> 4.4.0-119-generic

This should work as far as I know.


Best
Max
-- 
"I have to admit I've always suspected that MTBWTF would be a more useful
 metric of real-world performance."
 -- Valdis Kletnieks on NANOG

Reply via email to