RE: [mpls-linux-general] meaning of the mpls instructions
Status: Beta
Brought to you by:
jleu
|
From: John C. L. <li...@re...> - 2005-06-23 14:06:12
|
I did a similar setup like yours last week, so my memory is still fresh. I used the "mpls xc" command on an LSR to "cross-connect" an incoming = label with an outgoing label. For example, here is what I did on my LSR: /* setup ilm to process incoming label "gen 100" via eth0, labelspace 0 = */ mpls labelspace add dev eth0 labelspace 0 mpls ilm add label gen 100 labelspace 0 /* setup an outgoing label "gen 101 (key 2)" via nexthop 192.168.1.3 */ Mpls nhlfe add key 0 (returned key value 2) mpls nhlfe change key 2 instructions push gen 101 nexthop eth1 ipv4 192.168.1.3 ip route add 192.168.1.3/32 via 192.168.1.3 spec_hn 0x8847 2 /* "Corss-connect" the two labels together to form an LSP */ mpls xc add ilm_label gen 100 ilm_labelspace 0 nhlfe_key 2 My "192.168.1.3" will be your "192.168.4.4." To form a bi-directional LSP, you will need to setup an LSP from your = LER-B to LER-A. I am working on a PowerPoint file to show the details of setting up a bi-directional LSP. I'll send it out when I am done, if there are = interests. (This is just my notes so that I won't forget what I did to make it work = :-) Cheers, John Lin > It's ok! I know what MPLS is and how it work. I understand the > commands nhlfe, ilm, labelspace, but I don't understand command xc. >=20 > I understand the commands individually but I don't know make a network > with this software (with mpls command): >=20 > 192.168.2.1----------LER A----------LSR------------LER B---------- > 192.168.4.4 >=20 > In http://mpls-linux.sourceforge.net/ there is an example where > explain how configure ingress LER (LER A) and egress LER (LER B). And > the LSR? >=20 > Configuration LER A: > #mpls nhlfe add key 0 instructions push gen 200 nexthop eth0 ipv4 LSR > Key: 0x00000002 > #ip route add 192.168.4.4/32 via LSR spec_nh 0x8847 0x2 >=20 > Configuration LER B: > #mpls labelspace add dev eth0 labelspace 0 > #mpls ilm add label gen 200 labelspace 0 >=20 > It is ok? I are not sure! because the label 200 will be changed in the > LSR, will not? And how I configure the LSR? >=20 > Can you help me? >=20 > Ra=FAl Gil. >=20 > On 6/16/05, James R. Leu <jl...@mi...> wrote: > > Hi there, > > > > It seems you're new to MPLS. If this is the can I suggest reading = some > > books of web-page that explain what MPLS is and how it work. > > > > Here are a few places to start, ofcourse a google search for MPLS = will > > result in a lot more information to read. > > > > http://mplsrc.com/ > > http://students.ee.sun.ac.za/~hvtonder/arc_mplsOverview.htm > > = http://www.ibr.cs.tu-bs.de/lehre/ws0405/ks/pdf-2x1/09-l3ip_e-mpls.pdf > > > > > > > > On Tue, Jun 14, 2005 at 12:44:27PM +0200, Ra?l Gil wrote: > > > Hello! I am Ra?l Gil > > > > > > I have found in mailing list the mpls utility usage > > > > > > "mpls" utility usage > > > -------------------- > > > > > > mpls nhlfe add key 0 instructions push gen 16 nexthop wlan0 = ipv4 > > > 192.168.2.1 > > > (output: "Key: 0x2") > > > mpls ilm add label gen 16 labelspace 0 > > > mpls labelspace add dev eth0 labelspace 0 > > > mpls xc add ilm_label gen 16 ilm_labelspace 0 nhlfe_key 0x2 > > > mpls tunnel add dev mpls0 key 0x2 > > > ip route add 10.0.0.0/24 via 192.168.2.1 spec_nh 0x8847 0x2 > > > > > > but I do not know that it makes each instruction (nhlfe, ilm, > > > labelspace, xc), I do not know that it means. > > > > > > For example, if I execute 'mpls ilm add label gen 16 labelspace = 0', > > > what I am doing? > > > > > > Can you helpme?, please! > > > > > > Ra?l Gil. > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by: NEC IT Guy Games. How far can = you > shotput > > > a projector? How fast can you ride your desk chair down the office > luge track? > > > If you want to score the big prize, get to know the little guy. > > > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r > > > _______________________________________________ > > > mpls-linux-general mailing list > > > mpl...@li... > > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > > > -- > > James R. Leu > > jl...@mi... > > > > > > >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dick > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general |