Re: [mpls-linux-general] mpls linux
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2008-04-24 12:50:35
|
Typically that error is from either not having mpl4 loaded or specifing a nexthop that is not valid. Turn on MPLS kernel debugging and that will probably help you find your problem. echo 1 > /proc/net/mpls/debug On Thu, Apr 24, 2008 at 11:38:36AM +0300, Adrian Popa wrote: > Please reply to the list, so others can help. > > I've looked over the output, but I can't see why it fails. Maybe James can > help... > > On Wed, Apr 23, 2008 at 5:52 PM, smail jalil <s....@ho...> wrote: > > > here is the ouput of the command strace mpls nhlfe *.: > > /*********************************/ > > > > [root@localhost ~]# strace mpls nhlfe add key 0 instructions push gen 1000 > > nexthop eth1 ipv4 10.10.0.3 > > execve("/sbin/mpls", ["mpls", "nhlfe", "add", "key", "0", "instructions", > > "push", "gen", "1000", "nexthop", "eth1", "ipv4", "10.10.0.3"], [/* 34 > > vars */]) = 0 > > brk(0) = 0x8055000 > > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > > = 0xb7fb4000 > > access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or > > directory) > > open("/etc/ld.so.cache", O_RDONLY) = 3 > > fstat64(3, {st_mode=S_IFREG|0644, st_size=64791, ...}) = 0 > > mmap2(NULL, 64791, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fa4000 > > close(3) = 0 > > open("/lib/libm.so.6", O_RDONLY) = 3 > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`3\0\000"..., 512) > > = 512 > > fstat64(3, {st_mode=S_IFREG|0755, st_size=197804, ...}) = 0 > > mmap2(NULL, 147584, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) > > = 0xb7f7f000 > > mmap2(0xb7fa2000, 8192, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22) = 0xb7fa2000 > > close(3) = 0 > > open("/lib/libresolv.so.2", O_RDONLY) = 3 > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20$\0\000"..., > > 512) = 512 > > fstat64(3, {st_mode=S_IFREG|0755, st_size=74576, ...}) = 0 > > mmap2(NULL, 75976, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = > > 0xb7f6c000 > > mmap2(0xb7f7b000, 8192, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xb7f7b000 > > mmap2(0xb7f7d000, 6344, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f7d000 > > close(3) = 0 > > open("/lib/libc.so.6", O_RDONLY) = 3 > > read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\nY\1\000"..., > > 512) = 512 > > fstat64(3, {st_mode=S_IFREG|0755, st_size=1525156, ...}) = 0 > > mmap2(NULL, 1254780, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) > > = 0xb7e39000 > > mmap2(0xb7f65000, 16384, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x12b) = 0xb7f65000 > > mmap2(0xb7f69000, 9596, PROT_READ|PROT_WRITE, > > MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f69000 > > close(3) = 0 > > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > > = 0xb7e38000 > > set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e388c0, > > limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, > > seg_not_present:0, useable:1}) = 0 > > mprotect(0xb7f65000, 12288, PROT_READ) = 0 > > mprotect(0xb7f7b000, 4096, PROT_READ) = 0 > > mprotect(0xb7fa2000, 4096, PROT_READ) = 0 > > mprotect(0xb7fce000, 4096, PROT_READ) = 0 > > munmap(0xb7fa4000, 64791) = 0 > > socket(PF_NETLINK, SOCK_RAW, 0) = 3 > > setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0 > > setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0 > > bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 > > getsockname(3, {sa_family=AF_NETLINK, pid=3090, groups=00000000}, [12]) = > > 0 > > time(NULL) = 1208951491 > > sendto(3, "\24\0\0\0\22\0\1\3\304\"\17H\0\0\0\0\0\0\0\0", 20, 0, > > {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20 > > recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > msg_iov(1)=[{"\344\0\0\0\20\0\2\0\304\"\17H\22\f\0\0\0\0\4\3\1\0\0\0"..., > > 16384}], msg_controllen=0, msg_flags=0}, 0) = 1812 > > brk(0) = 0x8055000 > > brk(0x8076000) = 0x8076000 > > recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > msg_iov(1)=[{"\24\0\0\0\3\0\2\0\304\"\17H\22\f\0\0\0\0\0\0\1\0\0\0I\0"..., > > 16384}], msg_controllen=0, msg_flags=0}, 0) = 20 > > close(3) = 0 > > socket(PF_NETLINK, SOCK_RAW, 16) = 3 > > setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0 > > setsockopt(3, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0 > > bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000002}, 12) = 0 > > getsockname(3, {sa_family=AF_NETLINK, pid=3090, groups=00000002}, [12]) = > > 0 > > time(NULL) = 1208951491 > > socket(PF_NETLINK, SOCK_RAW, 16) = 4 > > setsockopt(4, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0 > > setsockopt(4, SOL_SOCKET, SO_RCVBUF, [32768], 4) = 0 > > bind(4, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0 > > getsockname(4, {sa_family=AF_NETLINK, pid=-4106, groups=00000000}, [12]) = > > 0 > > time(NULL) = 1208951491 > > sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > msg_iov(1)=[{"\204\10\0\0\35\0\1\4\304\"\17H\0\0\0\0\4\0\0\0\30\0\2\0"..., > > 2180}], msg_controllen=0, msg_flags=0}, 0) = 2180 > > recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, > > msg_iov(1)=[{"$\0\0\0\2\0\0\0\304\"\17H\22\f\0\0\376\377\377\377\204"..., > > 16384}], msg_controllen=0, msg_flags=0}, 0) = 36 > > dup(2) = 5 > > fcntl64(5, F_GETFL) = 0x2 (flags O_RDWR) > > fstat64(5, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 1), ...}) = 0 > > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > > = 0xb7fb3000 > > _llseek(5, 0, 0xbfec6d24, SEEK_CUR) = -1 ESPIPE (Illegal seek) > > write(5, "RTNETLINK answers: No such file "..., 45RTNETLINK answers: No > > such file or directory > > ) = 45 > > close(5) = 0 > > munmap(0xb7fb3000, 4096) = 0 > > exit_group(2) = ? > > Process 3090 detached > > /**************************************************************/ > > > > > > ------------------------------ > > Date: Wed, 23 Apr 2008 16:03:31 +0300 > > > > From: adr...@gm... > > To: s....@ho... > > Subject: Re: mpls linux > > CC: mpl...@li... > > > > Please, post your replies to the list, so other can help you. > > > > Could you try to run the mpls command with strace? Something like strace > > mpls nhlfe add key 0 instructions push gen 1000 nexthop eth1 ipv4 > > 10.10.0.3 > > > > ... and post the output to that. > > > > Cheers, > > Adrian > > > > > > On Wed, Apr 23, 2008 at 3:40 PM, smail jalil <s....@ho...> wrote: > > > > thank u for the so fast reply. > > here is t output of the commands: > > > > [root@localhost ~]# mpls nhlfe add key 0 instructions push gen 1000 > > nexthop eth1 ipv4 > > 10.10.0.3 > > RTNETLINK answers: No such file or directory > > [root@localhost ~]# dmesg |grep MPLS > > MPLS: version 1.950 > > MPLS: protocol driver interface - <jl...@mi...> > > MPLS DEBUG net/mpls/mpls_sysfs.c:130:mpls_sysfs_init: enter > > MPLS DEBUG > > net/mpls/mpls_sysfs.c:139:mpls_sysfs_init: exit > > Registered MPLS tunnel mpls0 > > MPLS: IPv4 over > > MPLS support > > MPLS DEBUG net/mpls/mpls_ilm.c:126:mpls_ilm_dst_alloc: enter > > MPLS DEBUG > > net/mpls/mpls_ilm.c:156:mpls_ilm_dst_alloc: exit > > MPLS: Ethernet over MPLS support > > [root@localhost ~]# mpls nhlfe show > > RTNETLINK answers: No such file or directory > > Dump terminated > > > > thank u for your help! > > > > ------------------------------ > > Date: Wed, 23 Apr 2008 14:37:33 +0300 > > From: adr...@gm... > > To: s....@ho... > > Subject: Re: mpls linux > > CC: mpl...@li... > > > > > > Hello, > > > > Please address your questions also to the mailing list. > > > > If you followed my instructions on compiling the kernel, then mpls is > > compiled into the kernel, not as a module - so modprobe mpls4 will fail > > because there is no such module. > > > > Please paste here the output for these commands: > > dmesg | grep mpls > > your mpls nhlfe * command > > mpls nhlfe show > > > > Also, you can enable debugging; I think it's cat 1 > /sys/mpls/debug or > > something like that. You should get the debugging lines on TTY1. > > > > Also, what version of mpls-linux are you using? Since you're using > > Fedora-Core, isn't it easier to install the already compiled kernel from > > James' site? > > > > Cheers, > > Adrian > > > > On Wed, Apr 23, 2008 at 2:14 PM, smail jalil <s....@ho...> wrote: > > > > hello; > > > > i'm trying to install mpls linux in my fedoa 5. i followed the steps in > > the mplslinux docs. the kernel is successfully recompiled. and the commands > > mpls are known by the kernel. > > > > but when i try the mpls nhlfe..., i have an error like: > > > > rtnetlink answers:no such file or directory > > > > i tried to load the mpls4 module by the command modprobe mpls4 but i > > always have an error like fatal:module not exit! > > can u help me please > > thanks! > > > > ------------------------------ > > Appelez vos amis de PC à PC -- C'EST GRATUIT Téléchargez Messenger, c'est > > gratuit ! <http://get.live.com/messenger/overview> > > > > > > > > ------------------------------ > > Appelez vos amis de PC à PC -- C'EST GRATUIT Téléchargez Messenger, c'est > > gratuit ! <http://get.live.com/messenger/overview> > > > > > > > > ------------------------------ > > Discutez gratuitement avec vos amis en vidéo ! Téléchargez Messenger, > > c'est gratuit ! <http://get.live.com/messenger/overview> > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general -- James R. Leu jl...@mi... |