Thread: RE: [mpls-linux-general] Multicast routing over linux mpls tunnel ?
Status: Beta
Brought to you by:
jleu
|
From: <Jon...@cs...> - 2004-09-09 05:13:26
|
SGkgSmFtZXMsDQogDQpGaXJzdCBvZiBhbGwsIHRoYW5rIHlvdSB2ZXJ5IG11Y2ggZm9yIHlvdXIg cGF0Y2ggYW5kIGNvbW1lbnRzLi4uIA0KIA0KQmVmb3JlIGhlYWRpbmcgb2ZmIHRoaXMgZGlyZWN0 aW9uLCBJIGp1c3Qgd2FudCB0byBhc2sgaWYgeW91IGhhdmUgY29tZSBhY3Jvc3MgYSBtdWx0aWNh c3QgZW5oYW5jZW1lbnQgb2YgeW91ciBjb2RlIGluIA0KIA0KaHR0cDovL3d3dy5jcy52aXJnaW5p YS5lZHUvfm1uZ3JvdXAvcHJvamVjdHMvbXBscy9kb2N1bWVudHMvdGhlc2lzL25vZGUyOC5odG1s DQogDQpXb3J0aCB0cnlpbmcgPz8gO28pDQogDQpDaGVlcnMsDQpKb25hdGhhbg0KDQoJLS0tLS1P cmlnaW5hbCBNZXNzYWdlLS0tLS0gDQoJRnJvbTogSmFtZXMgUi4gTGV1IFttYWlsdG86amxldUBt aW5kc3ByaW5nLmNvbV0gDQoJU2VudDogRnJpIDMvMDkvMjAwNCAxMTo0NCBQTSANCglUbzogQ2hh biwgSm9uYXRoYW4gKElDVCBDZW50cmUsIE1hcnNmaWVsZCkgDQoJQ2M6IG1wbHMtbGludXgtZ2Vu ZXJhbEBsaXN0cy5zb3VyY2Vmb3JnZS5uZXQgDQoJU3ViamVjdDogUmU6IFttcGxzLWxpbnV4LWdl bmVyYWxdIE11bHRpY2FzdCByb3V0aW5nIG92ZXIgbGludXggbXBscyB0dW5uZWwgPw0KCQ0KCQ0K DQoJSSBoYXZlbid0IGRlYWx0IHdpdGggbXVsdGljYXN0IG11Y2gsIGJ1dCBJIGRvIGtub3cgaXQg aXMgcmVhbCBwaWNreQ0KCWFib3V0IHdoYXQgaW50ZXJmYWNlIGEgcGFja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cmFsQGxpc3RzLnNvdXJjZWZvcmdlLm5ldA0KCT4gaHR0cHM6Ly9s aXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vbXBscy1saW51eC1nZW5lcmFsDQoJ DQoJLS0NCglKYW1lcyBSLiBMZXUNCglqbGV1QG1pbmRzcHJpbmcuY29tDQoJDQoNCg== |
|
From: James R. L. <jl...@mi...> - 2004-09-09 05:25:09
|
On Thu, Sep 09, 2004 at 03:11:43PM +1000, Jon...@cs... wrote: > Hi James, > =20 > First of all, thank you very much for your patch and comments...=20 > =20 > Before heading off this direction, I just want to ask if you have come ac= ross a multicast enhancement of your code in=20 > =20 > http://www.cs.virginia.edu/~mngroup/projects/mpls/documents/thesis/node28= .html Yes. I've talked with the author. I like his 'mfwd' instruction, I have every intention of incorporating that idea. Till now it's been a relatively low priority. If your willing to work with me I might be willing to move it up the priority list :-) > =20 > Worth trying ?? ;o) > =20 > Cheers, > Jonathan >=20 > -----Original Message-----=20 > From: James R. Leu [mailto:jl...@mi...]=20 > Sent: Fri 3/09/2004 11:44 PM=20 > To: Chan, Jonathan (ICT Centre, Marsfield)=20 > Cc: mpl...@li...=20 > Subject: Re: [mpls-linux-general] Multicast routing over linux mpls tunn= el ? > =09 > =09 >=20 > I haven't dealt with multicast much, but I do know it is real picky > about what interface a packet appears to arrive on. With MPLS tunnels, > packets you receive off an LSP appear to come from the physical interface > (eth0 etc) I think pimd is expecting to see the packets come from the s= ame > interface it sent them out (mpls0 etc). I think I added code at one poi= nt > to work around this. > =09 > mplsadm2 -L eth0:0 > mplsadm2 -A -I gen:16:0 > mplsadm2 -I gen:16:0 -i set:mpls0:pop:peek > =09 > I just looked at the code for mplsadm2 and it won't work without > some modifications, I'm attaching a patch against the latest version (1.= 935) > you can get the source for mplsadm2 at http://sf.net/projects/mpls-linux > =09 > Apply the patch by going into the mpls-linux/utils directory and execute > patch mplsadm.c < mplsadm.patch > =09 > then issue a 'make' > =09 > (make sure your system header files include mpls.h if not get > my glibc-headers RPM from http://sf.net/projects/mpls-linux) > =09 > =09 > On Fri, Sep 03, 2004 at 05:10:26PM +1000, Jon...@cs... wrote: > > Dear all, > > > > I don't know if I am asking for something impossible... Just wondering > > if someone out there might have experience/suggestion to get me to the > > right ball park... > > > > I have two linux mpls boxes linked by two mpls tunnels (one at each > > direction, of course ;o). I managed to install pimd to handle multicast > > routing. Is there anyway to make the linux mpls tunnel carry the igmp > > traffic?? > > > > Currently, my linux mpls was created by: > > > > % mplsadm2 -A -O 0 > > % mplsadm2 -O $opcode -o push:gen:123:set:eth0:ipv4:192.168.2.1 > > % mplsadm2 -A -T tun21 > > % ifconfig tun21 192.168.1.1 netmask 255.255.255.255 pointopoint > > 192.168.2.1 > > > > I also made this tunnel multicast enabled. > > > > % ip link set tun21 multicast on > > > > But I don't know what I need to do to enable the tunnel to carry igmp > > traffic :o( > > > > Do I have to put in GRE tunnel or something?? > > > > Thanks for your time and consideration... > > > > Cheers, > > Jonathan > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_idP47&alloc_id=10808&op?k > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > =09 > -- > James R. Leu > jl...@mi... > =09 >=20 > ???????????????????????????????????????????+=12=17?^????X???'???u??=10=05= ?nZ ????K!??Q=10BZ??'????+=1E'a=04u????^??(???z?????y?(?*=1F=04@=16y???'=16= ??,??|?[hu????i???v?????r?????????jYhs?????????????????????????????????????= ???????????{??=07?z??????x%??f?[??)???=1E?????b??????q???=07???a??l?????l??= .?????=1E?w??X??????b?????l?X??=1F?zw? --=20 James R. Leu jl...@mi... |
|
From: Jikku <ji...@cs...> - 2004-09-09 21:36:02
|
Hi i have installed the basic packages which were recommended for mpls. And i tried to set up an lsp between comp A(10.129.76.41) and comp B(10.129.46.71) Configuration on A mplsadm2 -A -B -O gen:2612:eth0:ipv4:10.129.46.71 10.129.46.71/24 mplsadm2 -A -I gen:1232:0 mplsadm2 -L eth0:0 Configuration on B mplsadm2 -A -B -O gen:1232:eth0:ipv4:10.129.76.41 10.129.76.41/24 mplsadm2 -A -I gen:2612:0 mplsadm2 -L eth0:0 Then i pinged comp B from A but while capturing the traffic between A and B using ETHEREAL it only showed packets being pinged using ICMP as protocol(No mention of mpls protocol being used) And one more confusion i had was--> is how to remove all the lsps set up.Cuz when i " re run" the exact set of commands on A it gives error "In Label add: No such process" after typing mplsadm2 -A -I gen:1232:0 Is it possible to do delete the lsps using mplsadm2 command? -- A child when asked to name the seven wonder of the world said: "To touch, to taste, to see, to hear, to run, to laugh and to love." |
|
From: James R. L. <jl...@mi...> - 2004-09-09 21:49:52
|
On Fri, Sep 10, 2004 at 03:11:12AM +0530, Jikku wrote:
> Hi i have installed the basic packages which were recommended for
> mpls.
> And
> i tried to set up an lsp between
> comp A(10.129.76.41) and comp B(10.129.46.71)
> Configuration on A
> mplsadm2 -A -B -O gen:2612:eth0:ipv4:10.129.46.71 10.129.46.71/24
> mplsadm2 -A -I gen:1232:0
> mplsadm2 -L eth0:0
>
> Configuration on B
> mplsadm2 -A -B -O gen:1232:eth0:ipv4:10.129.76.41 10.129.76.41/24
> mplsadm2 -A -I gen:2612:0
> mplsadm2 -L eth0:0
>
> Then i pinged comp B from A
> but while capturing the traffic between A and B using ETHEREAL
> it only showed packets being pinged using ICMP as protocol(No mention
> of mpls protocol being used)
You need to bind a FEC (a route) to the LSPs.
On A:
ip route add 10.129.46.71/32 via 10.129.46.71 spec_nh 0x8847 <key>
On B:
ip route add 10.129.76.41/32 via 10.129.76.41 spec_nh 0x8847 <key>
*** NOTE you must install the MPLS modified version of iproute2 to use
these commands
> And one more confusion i had was-->
> is how to remove all the lsps set up.Cuz when i " re run" the exact set
> of commands on A it gives error "In Label add: No such process" after
> typing mplsadm2 -A -I gen:1232:0
>
> Is it possible to do delete the lsps using
> mplsadm2 command?
mplsadm2 -D -I gen:1232:0
mplsadm2 -D -O 0x2
> --
> A child when asked to name the seven wonder of the world said:
> "To touch, to taste, to see, to hear, to run, to laugh and to love."
--
James R. Leu
jl...@mi...
|
|
From: Jikku <ji...@cs...> - 2004-09-09 22:02:26
|
Thanx a bunch James. But another problem has crept up in Ip route add how do i remove a route i added in case i used the wrong key and also if i dont remember the keys of lsps and the labels i have used in setup how do i remove the lsps in that case On Thu, 9 Sep 2004, James R. Leu wrote: > On Fri, Sep 10, 2004 at 03:11:12AM +0530, Jikku wrote: >> Hi i have installed the basic packages which were recommended for >> mpls. >> And >> i tried to set up an lsp between >> comp A(10.129.76.41) and comp B(10.129.46.71) >> Configuration on A >> mplsadm2 -A -B -O gen:2612:eth0:ipv4:10.129.46.71 10.129.46.71/24 >> mplsadm2 -A -I gen:1232:0 >> mplsadm2 -L eth0:0 >> >> Configuration on B >> mplsadm2 -A -B -O gen:1232:eth0:ipv4:10.129.76.41 10.129.76.41/24 >> mplsadm2 -A -I gen:2612:0 >> mplsadm2 -L eth0:0 >> >> Then i pinged comp B from A >> but while capturing the traffic between A and B using ETHEREAL >> it only showed packets being pinged using ICMP as protocol(No mention >> of mpls protocol being used) > > You need to bind a FEC (a route) to the LSPs. > > On A: > ip route add 10.129.46.71/32 via 10.129.46.71 spec_nh 0x8847 <key> > > On B: > ip route add 10.129.76.41/32 via 10.129.76.41 spec_nh 0x8847 <key> > > *** NOTE you must install the MPLS modified version of iproute2 to use > these commands > >> And one more confusion i had was--> >> is how to remove all the lsps set up.Cuz when i " re run" the exact set >> of commands on A it gives error "In Label add: No such process" after >> typing mplsadm2 -A -I gen:1232:0 >> >> Is it possible to do delete the lsps using >> mplsadm2 command? > > mplsadm2 -D -I gen:1232:0 > mplsadm2 -D -O 0x2 > >> -- >> A child when asked to name the seven wonder of the world said: >> "To touch, to taste, to see, to hear, to run, to laugh and to love." > > -- A child when asked to name the seven wonder of the world said: "To touch, to taste, to see, to hear, to run, to laugh and to love." |
|
From: James R. L. <jl...@mi...> - 2004-09-09 22:25:21
|
On Fri, Sep 10, 2004 at 03:36:24AM +0530, Jikku wrote: > Thanx a bunch James. > But another problem has crept up > in > Ip route add > how do i remove a route i added in case i used the wrong key > and also ip route del 10.129.46.71/32 > if i dont remember the keys of lsps and the labels i have used in setup > how do i remove the lsps in that case more /proc/net/mpls/* > On Thu, 9 Sep 2004, James R. Leu wrote: > > >On Fri, Sep 10, 2004 at 03:11:12AM +0530, Jikku wrote: > >>Hi i have installed the basic packages which were recommended for > >>mpls. > >>And > >>i tried to set up an lsp between > >>comp A(10.129.76.41) and comp B(10.129.46.71) > >>Configuration on A > >>mplsadm2 -A -B -O gen:2612:eth0:ipv4:10.129.46.71 10.129.46.71/24 > >> mplsadm2 -A -I gen:1232:0 > >>mplsadm2 -L eth0:0 > >> > >>Configuration on B > >>mplsadm2 -A -B -O gen:1232:eth0:ipv4:10.129.76.41 10.129.76.41/24 > >>mplsadm2 -A -I gen:2612:0 > >>mplsadm2 -L eth0:0 > >> > >>Then i pinged comp B from A > >>but while capturing the traffic between A and B using ETHEREAL > >>it only showed packets being pinged using ICMP as protocol(No mention > >>of mpls protocol being used) > > > >You need to bind a FEC (a route) to the LSPs. > > > >On A: > > ip route add 10.129.46.71/32 via 10.129.46.71 spec_nh 0x8847 <key> > > > >On B: > > ip route add 10.129.76.41/32 via 10.129.76.41 spec_nh 0x8847 <key> > > > >*** NOTE you must install the MPLS modified version of iproute2 to use > > these commands > > > >>And one more confusion i had was--> > >>is how to remove all the lsps set up.Cuz when i " re run" the exact set > >>of commands on A it gives error "In Label add: No such process" after > >>typing mplsadm2 -A -I gen:1232:0 > >> > >>Is it possible to do delete the lsps using > >>mplsadm2 command? > > > >mplsadm2 -D -I gen:1232:0 > >mplsadm2 -D -O 0x2 > > > >>-- > >>A child when asked to name the seven wonder of the world said: > >>"To touch, to taste, to see, to hear, to run, to laugh and to love." > > > > > > -- > A child when asked to name the seven wonder of the world said: > "To touch, to taste, to see, to hear, to run, to laugh and to love." -- James R. Leu jl...@mi... |