Thread: [mpls-linux-general] meaning of the mpls instructions
Status: Beta
Brought to you by:
jleu
|
From: <rau...@gm...> - 2005-06-14 10:44:35
|
Hello! I am Ra=FAl Gil
I have found in mailing list the mpls utility usage
"mpls" utility usage
--------------------
=20
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=FAl Gil.
|
|
From: James R. L. <jl...@mi...> - 2005-06-16 02:09:48
|
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 >=20 > I have found in mailing list the mpls utility usage >=20 > "mpls" utility usage > -------------------- > =20 > 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 >=20 > but I do not know that it makes each instruction (nhlfe, ilm, > labelspace, xc), I do not know that it means. >=20 > For example, if I execute 'mpls ilm add label gen 16 labelspace 0', > what I am doing? >=20 > Can you helpme?, please! >=20 > Ra?l Gil. >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: NEC IT Guy Games. How far can you sho= tput > a projector? How fast can you ride your desk chair down the office luge t= rack? > If you want to score the big prize, get to know the little guy. =20 > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |
|
From: <rau...@gm...> - 2005-06-22 22:24:46
|
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. I understand the commands individually but I don't know make a network with this software (with mpls command): 192.168.2.1----------LER A----------LSR------------LER B----------192.168.4= .4 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? 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 Configuration LER B: #mpls labelspace add dev eth0 labelspace 0 #mpls ilm add label gen 200 labelspace 0 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? Can you help me? Ra=FAl Gil. On 6/16/05, James R. Leu <jl...@mi...> wrote: > Hi there, >=20 > 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. >=20 > Here are a few places to start, ofcourse a google search for MPLS will > result in a lot more information to read. >=20 > 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 >=20 >=20 >=20 > 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 s= hotput > > 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 >=20 > -- > James R. Leu > jl...@mi... >=20 >=20 > |
|
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 |
|
From: James R. L. <jl...@mi...> - 2005-06-23 14:28:00
|
Let me know when you have you powerpoint done, I will link it from the mpls-linux homepage (http://mpls-linux.sf.net) On Thu, Jun 23, 2005 at 10:05:20AM -0400, John C. Lin wrote: > I did a similar setup like yours last week, so my memory is still fresh. >=20 > I used the "mpls xc" command on an LSR to "cross-connect" an incoming lab= el > with an outgoing label. For example, here is what I did on my LSR: >=20 > /* 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 >=20 > /* 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 >=20 > /* "Corss-connect" the two labels together to form an LSP */ > mpls xc add ilm_label gen 100 ilm_labelspace 0 nhlfe_key 2 >=20 > My "192.168.1.3" will be your "192.168.4.4." >=20 > To form a bi-directional LSP, you will need to setup an LSP from your LER= -B > to LER-A. >=20 > 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 interes= ts. > (This is just my notes so that I won't forget what I did to make it work = :-) >=20 > Cheers, > John Lin >=20 > > 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?l 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 so= me > > > 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 ip= v4 > > > > 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 y= ou > > 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 >=20 >=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?k > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |
|
From: James R. L. <jl...@mi...> - 2005-06-23 14:10:49
|
The xc command is for configuring label swapping on a LSR. 'xc' stands for cross connect, which is what you need for label swapping. The parameters to xc are the ILM and the NHLFE key, and will configure label swapping for packets arriving on the ILM. On Thu, Jun 23, 2005 at 12:24:34AM +0200, Ra?l Gil wrote: > 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?l Gil. >=20 > On 6/16/05, James R. Leu <jl...@mi...> wrote: > > Hi there, > >=20 > > 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. > >=20 > > Here are a few places to start, ofcourse a google search for MPLS will > > result in a lot more information to read. > >=20 > > 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 > >=20 > >=20 > >=20 > > 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 lu= ge 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 > >=20 > > -- > > James R. Leu > > jl...@mi... > >=20 > >=20 > > >=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?k > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |