Re: [mpls-linux-general] TCINDEX HOWTO
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2004-07-07 22:47:47
|
On Thu, Jul 08, 2004 at 01:42:24AM +0300, Mohammad Rehan Sami wrote: > Both I do not know the details of using tcindex to setup queuing. Take a look at: http://www.opalsoft.net/qos/DS-210.htm ... for more info. As for using exp2tc and tc2exp ... Here is how to use exp2tc, directly translating EXP bits to TCINDEX: mplsadm2 -A -I gen:16:0 mplsadm2 -I gen:16:0 -i exp2tc:0x0:0x0:0x1:0x1:0x2:0x2:0x3:0x3:0x4:0x4:0x5:0x5:0x6:0x6:0x7:0x7:pop:peek Here is how to use tc2exp to directly translate TCINDEX to EXP bits: mplsadm2 -A -O 0 Key: 0x00000002 mplsadm2 -O 0x2 -o tc2exp:0x7:0x0:0x0:0x1:0x1:0x2:0x2:0x3:0x3:0x4:0x4:0x5:0x5:0x6:0x6:0x7:0x7:push:gen:17:set:eth0:ipv4:192.168.1.1 NOTE: the first number after tc2exp is a mask against TCINDEX. > > Quoting "James R. Leu" <jl...@mi...>: > > > On Wed, Jul 07, 2004 at 10:12:08PM +0300, Muhammad R. Sami wrote: > > > I am unable to find any information on how to use tcindex filter nor > > are > > > there any examples (or at least I could not find them:-(). Can any one > > > please provide me with a short tutorial and some examples particularly > > on > > > how to use exp2tc or tc2exp instructions. > > > > Do you mean "howto use tcindex for queuing" or "howto use tcindex for > > EXP mapping"? > > > > > Regards, > > > > > > > > > > > > Muhammad R. Sami > > > Research Assistant, > > > Computer Engineering Department > > > P.O.Box 354 > > > King Fahd University of Petroleum & Minerals > > > Dhahran 31261 > > > Saudi Arabia. > > > Tel: +96638601423 > > > Cell: +96657982951 > > > www.ccse.kfupm.edu.sa/sami > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by Black Hat Briefings & Training. > > > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > > > digital self defense, top technical experts, no vendor pitches, > > > unmatched networking opportunities. Visit www.blackhat.com > > > _______________________________________________ > > > mpls-linux-general mailing list > > > mpl...@li... > > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > > > -- > > James R. Leu > > jl...@mi... > > > > -- James R. Leu jl...@mi... |