Re: [mpls-linux-devel] linux-kernel-2.6.14
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2005-12-06 21:50:30
|
You're getting bitten by my lack of new documentation. With the iproute2 that is in the dev tree there is a new syntax. Looking at the output of 'ip route help' would have helped you, but here it the new syntax you want to use: ip route add 10.0.0.0/16 via 192.168.1.1 mpls 0x2 If you plan on using the iptables from my dev tree, there is a new syntax for that as well: iptables -A OUTPUT -d 10.0.0.1/32 -j mpls --nhlfe=3D0x2 In the dev tree there is also support for ebtables, if you plan on doing ethernet over MPLS. I have an example I can send you if you're interested. Version 1.950 also supports PHP. The same feature can be used to prevent an IP lookup on the egress LER. The mpls_tunnel interface has also changed in 1.950. Since I told you to make MPLS static in the kernel, you will only have one tunnel interface. Once I fix the module loading (or add a new config item for the MPLS tunnel interface) then you will be able to load the module multiple times for multiple tunnel interfaces. I'm probably forgetting something, let me know if you run into more problems. BTW look at the output of 'dmesg' for some insight as to what is happening inside of the MPLS code. If you want to turn that off just do 'echo 0 > /sys/mpls/debug' On Tue, Dec 06, 2005 at 04:31:46PM -0500, Bob Beers wrote: > Hi James, >=20 > Thanks for the p4 hints. >=20 > I have made some progress in your dev tree. > I have built and booted into an mpls enabled kernel. >=20 > But when I try to run through the MPLS-Linux example, here > are the results: >=20 > bash-3.00# cat /sys/mpls/version > 1.950 > bash-3.00# cat /sys/mpls/debug > 1 > bash-3.00# /usr/sbin/mpls nhlfe add key 0 > NHLFE entry key 0x00000002 mtu 0 propagate_ttl > (0 bytes, 0 pkts) > bash-3.00# /usr/sbin/mpls nhlfe change key 0x2 instructions push gen > 10000 nexthop eth0 ipv4 172.16.87.21 > bash-3.00# /usr/sbin/ip route add 172.16.87.21/32 via 172.16.87.21 > spec_nh 0x8847 0x2 > Error: either "to" is duplicate, or "spec_nh" is a garbage. > bash-3.00# >=20 >=20 > I did recompile the iproute2 files after rebooting into my new kernel. > I did edit the Makefile, ran make and make install (as root). > What did I miss? How do I troubleshoot? >=20 > Thanks, >=20 > -- > -Bob --=20 James R. Leu jl...@mi... |