Re: [mpls-linux-general] Does mpls-linux support for add label to normal IP packet?
Status: Beta
Brought to you by:
jleu
From: Adrian P. <adr...@gm...> - 2008-04-23 08:38:06
|
Ok, concentrate on LER1; It will encapsulate in MPLS only packets that go to 10.0.0.2/32. The rest of the traffic will be plain IP. Try again and look for error messages after each command. Make sure you're running the mpls-enabled kernel (dmesg | grep mpls) and also that you have the mpls4 module loaded (lsmod | grep mpls). After starting a ping to 10.0.0.2 issue these commands on ler1: mpls nhlfe show ip route show If all is setup correctly, tcpdump will show the MPLS header between Ethernet and IP. You only need iptables if you want to create more specific rules to use for MPLS. Something like you want only FTP traffic to go through MPLS or you want traffic from source X to go through MPLS, etc. You can use iproute to specify that you want traffic going to destination X to go through MPLS. Cheers, Adrian 2008/4/23 刘磊 <orp...@ms...>: > > Hello > Thank You first. > I had tried "IPv4 over MPLS: two LER example for mpls-linux-1.95x", same > as the example. > BUT, I had not find in the packets(above the ether layer, and below the > IP layer) out from LER1's eth2 by tcpdump. > Does it's MUST with iptables to do this? > > ________________________________ > > Date: Wed, 23 Apr 2008 09:25:18 +0300 > > From: adr...@gm... > > To: orp...@ms... > > Subject: Re: [mpls-linux-general] Does mpls-linux support for add label > to normal IP packet? > > CC: mpl...@li... > > > > Hello, > > > > The mpls command allows you to create labels and the route/iptables > commands allow you to map certain IP flows to created labels. > > Please, better explain your problem (which example you used), and what > was the problem so that we can better help. > > > > For a small overview of what mpls-linux does and how to use it, look > here: > > http://mpls-linux.sourceforge.net/ > > http://www.elcom.pub.ro/~adrian.popa/mpls-linux/mpls-linux-docs/ > > > > Cheers, > > Adrian > > > > 2008/4/23 刘磊 <orp...@ms...>: > > > > Hi all: > > I'm a new bie. > > And I had some problem in MPLS-Linux. > > Does mpls-linux support for add label to normal IP packet? > > I'm failed with "Links to examples", because the LER1 doesn't add label > to the normal IP packets. > > Which function will do that in the source code? > > _________________________________________________________________ > > 新年换新颜,快来妆扮自己的MSN给心仪的TA一个惊喜! > > http://im.live.cn/emoticons/?ID=18 > > > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > > Don't miss this year's exciting event. There's still time to save $100. > > Use priority code J8TL2D2. > > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > _________________________________________________________________ > 多个邮箱同步管理,live mail客户端万人抢用中 > http://get.live.cn/product/mail.html > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > |