Thread: [mpls-linux-general] help on ldp(helllllllllllp)
Status: Beta
Brought to you by:
jleu
From: farahmand z. <z_c...@ya...> - 2002-05-09 10:14:02
|
Hi jim n all, I really need your help , my ldp-portable doesn't work properly and I don't know what is wrong?! I have redhat 7.2 with kernel 2.4.13 (MPLS patched).I got the latest ldp-portable via CVS ,first, I have a simple question:I compiled ldp-portable in directory ldp-portable by typing "make ldp_linux" and it was compiled successfully,is it compiled with MPLS_LINUX ?How can I make sure?(The first line in the Makefile in directory ldp-portable:CFLAGS = -g -I. -wall -D__LDP_LINUX__ -Werror #-DMPLS_LINUX). I have configured 2 machines as follows : lo 10.0.0.1 lo 10.0.0.2 ---------- ----------- | A |------------------------------| B | ---------- ----------- .206 | 192.168.2.0/24 .207| ------------------------------------------------------------ PC B: bash# ip addr add 10.0.0.2/32 dev lo bash#ip route add 10.0.0.1/32 via 192.168.2.206 routing table in PC B: Des Gateway Genmask Flags Metric Ref Use Interface 10.0.0.1 sunrise 255.255.255.255 UGH 0 0 0 eth0 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default itrcprox3.itrc 0.0.0.0 UG 0 0 0 eth0 ./mplsadm -L eth0:0 prompt> add global 10.0.0.2 ENTER : ##args## EXIT : ##args## ENTER : ##args## EXIT : ##args## ENTER : ##args## ENTER : ##args## Adding interface lo Adding interface eth0 Adding route 0a000001/32 via 2 Adding route c0a80200/24 via 2 Adding route 7f000000/8 via 1 Adding route 00000000/0 via 2 Adding route 0a000002/32 via 1 EXIT : ##args## EXIT : ##args## ENTER : ##args## EXIT : ##args## Adding global object with LSRID 0a000002 prompt>set trace 0xffffffff Set tracing flag to ffffffff prompt>add interface eth0 Adding interface eth0 prompt>show session 2 c0a802ce 45 5 prompt>show database 1 0a000001/32 2 via2 2 0a000002/32 3 via2 3 7f000000/8 3 via2 4 c0a80200/24 3 via2 5 7f000000/8 2 via2 6 c0a80200/24 2 via2 prompt>show route 0a000001/32 via c0a802ce:2 0a000002/32 via 00000000:1 7f000000/8 via 00000000:1 c0a80200/24 via 00000000:2 00000000/0 via c0a80201:2 prompt>show interface 2 eth0 I can see HELLO,INIT,KEEP ALIVE,ADDRESS,LABEL MAPPING messages,but all files in /proc/net/mpls_* are empty. Any help from you are greately appriciated.I'm waiting to hear from you and thank you inadvance. Best Regards, Zahra Farahmand. --------------------------------- Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! |
From: Kiyoung J. <jj...@ic...> - 2002-05-13 05:26:06
|
I think you should include -DMPLS_LINUX option in CFLAGS to work with MPLS forwarding engine in Linux kernel. As you can see, this option is commented out. This should be : CFLAGS = -g -I. -wall -D__LDP_LINUX__ -Werror -DMPLS_LINUX Regards. ---------------------------------------------------- Kiyoung Jung (jj...@ic...) Information and Communications University(ICU) Broadband Network Laboratory (http://bnlab.icu.ac.kr) 58-4 Hwaam-dong, Yusong-gu, Taejon, 305-732, KOREA Tel)+82-42-866-6172, 016-370-1751 Fax)+82-42-866-6110 ----- Original Message ----- From: farahmand zahra To: sourceforge Sent: Thursday, May 09, 2002 7:14 PM Subject: [mpls-linux-general] help on ldp(helllllllllllp) Hi jim n all, I really need your help , my ldp-portable doesn't work properly and I don't know what is wrong?! I have redhat 7.2 with kernel 2.4.13 (MPLS patched).I got the latest ldp-portable via CVS ,first, I have a simple question:I compiled ldp-portable in directory ldp-portable by typing "make ldp_linux" and it was compiled successfully,is it compiled with MPLS_LINUX ?How can I make sure?(The first line in the Makefile in directory ldp-portable:CFLAGS = -g -I. -wall -D__LDP_LINUX__ -Werror #-DMPLS_LINUX). I have configured 2 machines as follows : lo 10.0.0.1 lo 10.0.0.2 ---------- ----------- | A |------------------------------| B | ---------- ----------- .206 | 192.168.2.0/24 .207| ------------------------------------------------------------ PC B: bash# ip addr add 10.0.0.2/32 dev lo bash#ip route add 10.0.0.1/32 via 192.168.2.206 routing table in PC B: Des Gateway Genmask Flags Metric Ref Use Interface 10.0.0.1 sunrise 255.255.255.255 UGH 0 0 0 eth0 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default itrcprox3.itrc 0.0.0.0 UG 0 0 0 eth0 ./mplsadm -L eth0:0 prompt> add global 10.0.0.2 ENTER : ##args## EXIT : ##args## ENTER : ##args## EXIT : ##args## ENTER : ##args## ENTER : ##args## Adding interface lo Adding interface eth0 Adding route 0a000001/32 via 2 Adding route c0a80200/24 via 2 Adding route 7f000000/8 via 1 Adding route 00000000/0 via 2 Adding route 0a000002/32 via 1 EXIT : ##args## EXIT : ##args## ENTER : ##args## EXIT : ##args## Adding global object with LSRID 0a000002 prompt>set trace 0xffffffff Set tracing flag to ffffffff prompt>add interface eth0 Adding interface eth0 prompt>show session 2 c0a802ce 45 5 prompt>show database 1 0a000001/32 2 via2 2 0a000002/32 3 via2 3 7f000000/8 3 via2 4 c0a80200/24 3 via2 5 7f000000/8 2 via2 6 c0a80200/24 2 via2 prompt>show route 0a000001/32 via c0a802ce:2 0a000002/32 via 00000000:1 7f000000/8 via 00000000:1 c0a80200/24 via 00000000:2 00000000/0 via c0a80201:2 prompt>show interface 2 eth0 I can see HELLO,INIT,KEEP ALIVE,ADDRESS,LABEL MAPPING messages,but all files in /proc/net/mpls_* are empty. Any help from you are greately appriciated.I'm waiting to hear from you and thank you inadvance. Best Regards, Zahra Farahmand. Do You Yahoo!? Yahoo! Shopping - Mother's Day is May 12th! |