Re: [mpls-linux-general] MPLS ds2exp parameter
Status: Beta
Brought to you by:
jleu
From: Adrian P. <adr...@gm...> - 2008-05-14 11:18:53
|
Hello Nicolas, Here's what it means: ds2exp 0xf 0x1a 0x3 0x2e 0x5 0x0 0x0 - 0xf is a bit mask - now it means match exactly; otherwise you can match multiple DSCP values to the same EXP value in one go - 0x1a is a DSCP value - 0x3 is the EXP value that will be set for the previous DSCP value (0x1a) - 0x2e is another DSCP value - 0x5 is the EXP value that will be set for the previous DSCP value (0x2e) - 0x0 is another DSCP value - 0x0 is the EXP value that will be set for the previous DSCP value (0x0) You can have as many mappings as you want on the same line... Hope it's clear enough. Cheers, Adrian On Wed, May 14, 2008 at 11:08 AM, Nicolas Slegers <xen...@gm...> wrote: > Hi, > > What does mean ds2exp in the following MPLS instruction? > #do the following mapping: > # DSCP EXP TCINDEX > # 0x1A 3 1 > # 0x2E 5 2 > # 0x00 0 3 > #and push label 1000 for destination PC2 > var1=`mpls nhlfe add key 0 instructions ds2exp 0xf 0x1a 0x3 0x2e 0x5 0x0 > 0x0 exp2tc 0x3 0x1 0x5 0x2 0x0 0x3 push gen 1000 nexthop eth1 ipv4 > 10.0.0.2 | grep key |cut -c 17-26` > > Thanks for your help, > Nicolas. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > |