Re: [mpls-linux-general] trouble setting up LSPs
Status: Beta
Brought to you by:
jleu
From: Gilles N. <gno...@ee...> - 2002-09-10 16:16:16
|
You need to type these commands: On A: route add -host 10.0.1.30 gw 10.0.0.20 On C: route add - host 10.0.0.10 gw 10.0.1.20 Normally it should work. Regards. On Tue, 10 Sep 2002, Wayne W. Szeto wrote: > Hi James, > > I have made the changes you suggested but I am still unable to ping C from > A. The content of /proc/net/mpls* on each machine are as follows. Any > ideas whats wrong? > > On A: > ===== > [root@csgradpc03 net]# more mpls_* > :::::::::::::: > mpls_in > :::::::::::::: > 0x40005000 0/0/0 gen 20 0 1 POP PEEK > :::::::::::::: > mpls_labelspace > :::::::::::::: > eth0 0 14 > :::::::::::::: > mpls_out > :::::::::::::: > 0x00000005 55/4620/0 3 PUSH(gen 16) SET(eth0,10.0.0.20) > :::::::::::::: > mpls_tunnel > :::::::::::::: > [root@csgradpc03 net]# ip2 route > 10.0.1.30 via 10.0.0.20 dev eth0 lsp 0x5 > 10.0.0.0/24 dev eth0 scope link > 10.0.1.0/24 dev eth2 scope link > 129.97.78.0/24 dev eth1 scope link > 10.1.0.0/24 dev eth3 scope link > 127.0.0.0/8 dev lo scope link > default dev eth1 scope link > > On B: > ===== > [root@node02 net]# more mpls_* > :::::::::::::: > mpls_in > :::::::::::::: > 0x40004000 55/4840/0 gen 16 0 56 POP PEEK > 0x40005000 0/0/0 gen 20 0 1 POP PEEK > :::::::::::::: > mpls_labelspace > :::::::::::::: > eth0 0 9 > eth1 0 8 > :::::::::::::: > mpls_out > :::::::::::::: > 0x00000002 0/0/0 1 PUSH(gen 16) SET(eth1,10.0.1.30) > 0x00000003 0/0/0 1 PUSH(gen 20) SET(eth0,10.0.0.10) > :::::::::::::: > mpls_tunnel > :::::::::::::: > [root@node02 net]# ip2 route > 10.0.0.0/24 dev eth0 scope link > 10.0.1.0/24 dev eth1 scope link > 10.1.0.0/24 dev eth2 scope link > 127.0.0.0/8 dev lo scope link > default via 10.0.0.1 dev eth0 > > On C: > ===== > [root@node03 net]# more mpls_* > :::::::::::::: > mpls_in > :::::::::::::: > 0x40004000 0/0/0 gen 16 0 1 POP PEEK > :::::::::::::: > mpls_labelspace > :::::::::::::: > eth1 0 9 > :::::::::::::: > mpls_out > :::::::::::::: > 0x00000003 0/0/0 1 PUSH(gen 20) SET(eth1,10.0.1.20) > :::::::::::::: > mpls_tunnel > :::::::::::::: > [root@node03 net]# ip2 route > 10.0.0.10 via 10.0.1.20 dev eth1 lsp 0x3 > 10.0.0.0/24 dev eth0 scope link > 10.0.1.0/24 dev eth1 scope link > 10.1.0.0/24 dev eth2 scope link > 127.0.0.0/8 dev lo scope link > default via 10.0.0.1 dev eth0 > > > > > On Tue, 10 Sep 2002, James R. Leu wrote: > > > Suggested changes inline: > > > > > > > > 10.0.0.10 (eth0) 10.0.1.20 (eth1) > > > A---------------------B---------------------C > > > 10.0.0.20 (eth0) 10.0.1.30 (eth1) > > > > > > On A: > > > ===== > > > mplsadm2 -vAO 0 -o push:gen:16:set:eth0:ipv4:10.0.1.30 # returns <key1> > > ^^^^^^^^^ > > 10.0.0.20? > > > > > ip2 route add 10.0.1.30/32 via 10.0.0.20 lsp <key1> > > > mplsadm2 -vAI gen:20:0 > > > mplsadm2 -vL eth0:0 > > > > > > On B: > > > ===== > > > # for LSP from A to C > > > mplsadm2 -vAI gen:16:0 > > > mplsadm2 -vAO 0 -o push:gen:16:set:eth1:ipv4:10.0.1.30 # returns <key2> > > > mplsadm2 -vI gen:16:0 -o <key2> -B > > > mplsadm2 -vL eth1:0 > > > > > > # for LSP from C to A > > > mplsadm2 -vAI gen:20:0 > > > mplsadm2 -vAO 0 -o push:gen:20:set:eth0:ipv4:10.0.0.10 # returns <key3> > > > mplsadm2 -vI gen:20:0 -o <key3> -B > > > mplsadm2 -vL eth0:0 > > > > > > On C: > > > ===== > > > mplsadm2 -vAI gen:16:0 > > > mplsadm2 -vAO 0 -o push:gen:20:set:eth1:ipv4:10.0.0.10 # returns <key4> > > ^^^^^^^^^ > > 10.0.1.20? > > > > > ip2 route add 10.0.0.10/32 via 10.0.1.20 lsp <key4> > > > mplsadm2 -vL eth1:0 > > > > Check my suggested changes. If it still doesn't work, send the contents > > of /proc/net/mpls_* > > > > Jim > > -- > > James R. Leu > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > |