Dear,
I downloaded linux-kernel-v2.6.32.43-mpls1.970.patch from your site,
and patched it to my linux-kernel 2.6.32 sucessfully. Then,
I patched iproute2-v2.6.39-mpls.patch to my iproute2-2.6.39 sucessfully.
and re-compile and reboot the it, I want to
check if mpls is installed to by linux.
But I use the mpls command of ”ip route add 192.192.2.0/24 via 192.192.3.1 mpls 0x2“ have some errors,
the kernel automatically restart, but other mpls command is OK.
Can you give me some help , thank you very much!
[root@localhost ~]# mpls labelspace set dev eth0 labelspace 0
[root@localhost ~]# mpls ilm add label gen 34 labelspace 0
[root@localhost ~]# mpls nhlfe add key 0 mtu 1024 propagate_ttl instructions push gen 34 nexthop eth0 ipv4 192.192.2.1
NHLFE entry key 0x00000002 mtu 0 propagate_ttl
(0 bytes, 0 pkts)
[root@localhost ~]# ip route add 192.192.2.0/24 via 192.192.3.1 mpls 0x2 ---An error occurred, the kernel restart!
[root@localhost ~]# dmesg | grep MPLS
MPLS: version 1.970
MPLS: protocol driver interface - jleu@mindspring.com
MPLS DEBUG net/mpls/mpls_tunnel.c:438:mpls_tunnel_setup: enter
MPLS DEBUG net/mpls/mpls_tunnel.c:451:mpls_tunnel_setup: exit
MPLS DEBUG net/mpls/mpls_tunnel.c:401:mpls_tunnel_init: enter
MPLS DEBUG net/mpls/mpls_tunnel.c:403:mpls_tunnel_init: exit
MPLS: IPv4 over MPLS support
MPLS DEBUG net/mpls/mpls_ilm.c:128:mpls_ilm_dst_alloc: enter
MPLS DEBUG net/mpls/mpls_ilm.c:159:mpls_ilm_dst_alloc: exit
MPLS: Ethernet over MPLS support
The linux verion is Redhat-server-6.4-32bis
Thanks!