Re: [mpls-linux-general] MPLS FEC port
Status: Beta
Brought to you by:
jleu
From: Adrian P. <adr...@gm...> - 2008-06-23 13:36:57
|
Hello, To classify packets based on something else than destination IP (like your case), you need to use iptables/ebtables. So, instead of: ip route add 129.175.237.24 via 129.175.237.21 mpls $var you would need to add a iptables rule that uses the $var. Look for examples in the QoS experiments (e-LSP and l-LSP) for iptables syntax (the matching there is done based on DSCP, but you can easily match ports instead). Good luck! Adrian On Thu, Jun 19, 2008 at 7:14 PM, David Martínez <acu...@gm...> wrote: > Hello everybody! > > I solved my problems as far as compilation and installation of MPLS over > linux was concerned (MPLS 1.956 over Kubuntu 7.10 (kernel 2.6.22) ). Thank > you all for your answers. > Right now i am trying to add different labels to the incoming traffic > dependind on the port by which they get to the LER. > I send data by 2 different ports (one for the video and the other one for > the audio) to the same IP address. What i want to do is creating two > different LSP's (audio and video). > I don't know the linux instruction necessary that i have to use for the > command line. Normally i used to do like this for a single IP address and > port. > > var=`mpls nhlfe add key 0 instructions push gen 1000 nexthop > eth0 ipv4 129.175.237.21| grep key |cut -c 17-26` > ip route add 129.175.237.24 via 129.175.237.21 mpls $var > > Any suggestions? > > Thank you very much, > > David > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > |