Re: [mpls-linux-general] Traffic for port in MPLS??
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2005-04-11 17:50:07
|
Hello, When working with mpls-linux you should first ask yourself the question 'how would I do this on linux without MPLS?'. The answer, more often then not will also apply to mpls-linux. For example, you're wondering how do you influence or control traffic based on source or dst port when using linux. The answer is iptables. Similaly, if you want to direct traffic on to a LSP based on source or dst port, you can use iptables with some MPLS specific modifications. So first off you will need a MPLS enabled version of iptables, if you are using my RPMs, you can just download the iptables RPM, install it, and your ready to go. Otherwise you will need to compile your own iptables and install it, look at the READMEs in he mpls-linux tar ball for more info. Once you have a MPLS enabled iptables, you can add the following target to any iptables command: -j spec-nh --spec_nh 0x8847:0x2 where 0x8847 tells the spec_nh system to redirect the traffic to MPLS and the 0x2 tells MPLS you want to map traffic to the NHLFE with key 0x2 For example: iptables -A OUTPUT -d 128.104.17.130/32 -j spec_nh --spec_nh 0x8847:0x2 maps all traffic with the dest ip address of 128.104.17.130 to the MPLS NHLFE with key 0x2 You will need to read more on how to map source or dest TCP/UDP ports, but you can learn that from any iptables howto. Good luck! On Mon, Apr 11, 2005 at 05:06:55PM +0000, Miki Kazanovez wrote: > Hello, I am student of ETIS. >=20 > I have a FC3, and MPLS-linux installed correctly. >=20 > I have the follow graph: >=20 > UNDER MPLS: >=20 > FC3_A --------------ALL the traffic in MPLS---------> FC3_B > <----------------------------------------------- >=20 >=20 > How to administrative the traffic for the port?? > I want that traffic of port 80, follow one path, and the traffic of port = 22=20 > follow other path. (fot example) >=20 >=20 > --------------Only port 22/TCP in MPLS---------> > <----------------------------------------------- > FC3_A FC3_B > --------------Only port 80/TCP in MPLS---------> > <----------------------------------------------- >=20 >=20 >=20 > I have use the mpls command or quagga package??? I can find util doc??? >=20 > thank you!!! >=20 > _________________________________________________________________ > M?viles, DVD, c?maras digitales, coleccionismo... Con unas ofertas que ni= =20 > te imaginas. http://www.msn.es/Subastas/ >=20 >=20 >=20 > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general --=20 James R. Leu jl...@mi... |