Re: [mpls-linux-general] Help : mpls routing examples/pointers
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2003-05-06 03:25:13
|
You need to use the 'bind' syntax of mplsadm2: [jleu jleu-laptop 10:21pm] ~-> mplsadm2 -A -O 0 Key: 0x00000002 Out Segment add: Success [jleu jleu-laptop 10:21pm] ~-> mplsadm2 -O 0x2 -o push:gen:10000:set:eth0:ipv4:192.168.1.1 Out Instr: Success [jleu jleu-laptop 10:21pm] ~-> mplsadm2 -L eth1:0 Label Space: Success [jleu jleu-laptop 10:22pm] ~-> mplsadm2 -A -I gen:11000:0 In Label add: Success [jleu jleu-laptop 10:22pm] ~-> mplsadm2 -B -I gen:11000:0 -O 0x2 Bind In2Out add: Success [jleu jleu-laptop 10:22pm] ~-> more /proc/net/mpls_in 0x02af8001 0/0/0 gen 11000 0 1 POP FWD(0x00000002) [jleu jleu-laptop 10:23pm] ~-> more /proc/net/mpls_out 0x00000002 0/0/0 2 PUSH(gen 10000) SET(eth0,192.168.1.1) [jleu jleu-laptop 10:24pm] On Thu, Apr 24, 2003 at 04:25:06PM -0600, Murthy S. Andukuri wrote: > > I am trying to come up with various LSPs between machines > A(LER),B(LSR),C(LSR), D(LER) in my lab. i.e. > A-D, A-B-D, A-C-D,A-B-C-D,A-C-B-D etc. > I have looked through the examples in mpls-linux-1.1/utils/README and > some other docs on the web, but still cannot figure out how to setup the > commands. > > My problem is, on an LSR , How to associate a different outgoing > label with each incoming label ? i.e. if machine C receives packets with > label 'LA' from A and 'LB' from B, how to replace 'LA' with 'LA2'(say) and > 'LB' with 'LB2'(say) on their way out to D. (None of the examples i > came across, as I understand them, seem to address this particular issue) > > some background : I have successfully setup an LSP between two machines > using mplsadm. However, all that happens here is that a label is 'push'ed > on one machine and is 'pop'ped on the other. there is no 'swapping' of > labels. now, I am trying to extend this into a 4-machine network with > various paths as mentioned above. > > any examples/help will be greatly appreciated. > > Thanks in advance > Murthy Andukuri > > > > ------------------------------------------------------- > 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 -- James R. Leu |