mpls routing on linux
MPLS Multiprotocol Label Switching is a routing protocol, which works in layer 2.5. It insert a lable between IP layer and protocol layer. This looks like VLAN, which works in layer 1.5 and in subnet. But MPLS works in global internet.
Enable MPLS Routing Some distribution may build mpls route as a module, so before start, please check if you have /proc/sys/net/mpls/, if not, then load the module first:
1 2 3 4 5 6 7 # modprobe mpls_router # modprobe mpls_iptunnel # lsmod | grep mpls mpls_iptunnel 16384 0 mpls_router 36864 1 mpls_iptunnel ip_tunnel 28672 1 mpls_router If failed, then we need to enable CONFIG_MPLS, CONFIG_MPLS_ROUTING, CONFIG_MPLS_IPTUNNEL when compile the kernel.