RE: [mpls-linux-general] Problem with MPLS
Status: Beta
Brought to you by:
jleu
From: Miguel G. <mg...@fi...> - 2002-09-20 16:02:44
|
B means "bind", mplsadm -A -B -I gen:34:0 -O <key> means that you want to forward the packets coming with label 34 to the output with the key <key>. When you add an output (mplsadm -A -O 0) a key is returned, that is the key you have to use to refer to that output. You can see which key refers to which output in the file /proc/net/mpls_out. If you just want to recieve the packets (POP & PEEK) , do: mplsadm -A -I gen:34:0 You can see the inputs in /proc/net/mpls_in Best regards, Miguel. On Fri, 20 Sep 2002, Gilles Noutcha wrote: > Hi James, > I've run what u told me to do it seems to be good, there are no errors > messages in each function but the counter still doesn't increase. I > suppose it's working. Now I want just to understand these lines of > README's file. > > Establish label 34 in label space 0 > ----------------------------------- > > mplsadm -A -I gen:34:0 > | | | | | > | | | | label space > add | | | > | | label > | | > | generic label > | > incoming label > > (if you change the -A to -D you will delete the entry) > > Establish a label switch path > ----------------------------- > mplsadm -A -B -I gen:34:0 -O <key> > > Why should I add "-B" option? Which "<key>" is it? Where does it come > from? From the previous outgoing label match's hop? > Cheers, > Gilles > > > -----Original Message----- > From: James R. Leu [mailto:jl...@mi...] > Sent: 19 September 2002 02:52 > To: Gilles Noutcha > Cc: jl...@mi...; mpl...@li... > Subject: Re: [mpls-linux-general] Problem with MPLS > > It all looks good to me. Try turning on MPLS kernel debugging on > each of the boxes (mplsadm2 -d then look at your console log, or execute > dmesg) > > On Tue, Sep 17, 2002 at 04:27:46PM +0100, Gilles Noutcha wrote: > > Hi Jim & Co! > > That's how my network is (below).I've tried to setup MPLS trough ABC > > branch. All commands I've typed ( see Command's section) seem to work > > well. > > But the counter of all the host didn't increase. Help me please. > > Thanks in advance, > > Gilles. > > > > > > 192.168.33.1 192.168.33.49 > > (eth0) (eth1) (eth1) 192.168.33.62 > > A---------------------B---------------------C > > |(eth1) (eth0) | > > | 192.168.33.14 |(eth0)192.168.33.78 > > | | > > -------------------D-------------------- > > (eth1) (eth0)192.168.33.65 > > 192.168.33.30 > > > > On A: > > Eth0:192.168.33.1 > > Network(A-B):192.168.33.0/28 > > Range:...33.1 - ...33.14 > > Network(A-D):192.168.33.16/28 > > Range:...33.17 - ...33.30 > > On B: > > Eth0:192.168.33.14 > > Eth1:192.168.33.49 > > Network(B-C):192.168.33.48/28 > > Range:...33.49 - ...33.62 > > On C: > > Eth1:192.168.33.62 > > Eth0:192.168.33.78 > > Network(C-D):192.168.33.64/28 > > Range:...33.65 - ...33.78 > > Commands: > > ========= > > On A: > > ----- > > mplsadm2 -AO 0 -o push:gen:75:set:eth0:ipv4:192.168.33.14# returns > > <key1> > > ip route add 192.168.33.48/28 via 192.168.33.14 lsp <key1> > > mplsadm2 -AI gen:75:0 > > mplsadm2 -L eth0:0 > > > > On B: > > ----- > > *A toward C: > > +++++++++++ > > mplsadm2 -AI gen:75:0 > > mplsadm2 -A -O 0 returns <key2> > > mplsadm2 -O <key2> -o push:gen:75:set:eth1:ipv4:192.168.33.62 > > mplsadm2 -L eth1:0 > > > > *C toward A: > > +++++++++++ > > mplsadm2 -AI gen:76:0 > > mplsadm2 -A -O 0 returns <key3> > > mplsadm2 -O <key3> -o push:gen:76:set:eth0:ipv4:192.168.33.1 > > mplsadm2 -L eth0:0 > > > > On C: > > ----- > > mplsadm2 -AO 0 -o push:gen:76:set:eth1:ipv4:192.168.33.49# returns > > <key1> > > ip route add 192.168.33.0/28 via 192.168.33.49 lsp <key1> > > mplsadm2 -AI gen:75:0 > > mplsadm2 -L eth1:0 > > > > Content of files: > > ================= > > > > On A: > > ----- > > =========== > > more mps_* > > =========== > > :::::::::::::: > > mpls_in > > :::::::::::::: > > 0x40013000 0/0/0 gen 76 0 1 POP PEEK > > :::::::::::::: > > mpls_labelspace > > :::::::::::::: > > eth0 0 11 > > :::::::::::::: > > mpls_out > > :::::::::::::: > > 0x00000003 0/0/0 1 PUSH(gen 75) SET(eth0,192.168.33.14) > > :::::::::::::: > > mpls_tunnel > > :::::::::::::: > > ============== > > ip route show > > ============== > > 192.168.33.48/28 via 192.168.33.14 dev eth0 lsp 0x3 > > 192.168.33.16/28 dev eth1 proto kernel scope link metric 287418560 > > 192.168.33.0/28 dev eth0 proto kernel scope link metric 18983104 > > default via 192.168.33.14 dev eth0 > > > > > > On B: > > ----- > > =========== > > more mps_* > > =========== > > :::::::::::::: > > mpls_in > > :::::::::::::: > > 0x40012c00 0/0/0 gen 75 0 1 POP FWD(0x00000002) > > 0x40013000 0/0/0 gen 76 0 1 POP FWD(0x00000003) > > :::::::::::::: > > mpls_labelspace > > :::::::::::::: > > eth0 0 9 > > eth1 0 7 > > :::::::::::::: > > mpls_out > > :::::::::::::: > > 0x00000002 0/0/0 2 PUSH(gen 75) SET(eth1,192.168.33.62) > > 0x00000003 0/0/0 2 PUSH(gen 76) SET(eth0,192.168.33.1) > > :::::::::::::: > > mpls_tunnel > > :::::::::::::: > > > > > > On C: > > ----- > > =========== > > more mps_* > > =========== > > :::::::::::::: > > mpls_in > > :::::::::::::: > > 0x40012c00 0/0/0 gen 75 0 1 POP PEEK > > :::::::::::::: > > mpls_labelspace > > :::::::::::::: > > eth0 0 8 > > :::::::::::::: > > mpls_out > > :::::::::::::: > > 0x00000004 0/0/0 1 PUSH(gen 76) SET(eth1,192.168.33.49) > > :::::::::::::: > > mpls_tunnel > > :::::::::::::: > > ============== > > ip route show > > ============== > > 192.168.33.0/28 via 192.168.33.49 dev eth1 lsp 0x4 > > 192.168.33.48/28 dev eth1 proto kernel scope link metric 1042393200 > > 192.168.33.64/28 dev eth0 proto kernel scope link metric 1310828736 > > > > > > > > > > ------------------------------------------------------- > > Sponsored by: AMD - Your access to the experts on Hammer Technology! > > Open Source & Linux Developers, register now for the AMD Developer > > Symposium. Code: EX8664 http://www.developwithamd.com/developerlab > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > -- > James R. Leu > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > |