RE: [mpls-linux-general] Inheriting EXP bit in tunnel cascade
Status: Beta
Brought to you by:
jleu
|
From: <Jon...@cs...> - 2004-08-17 03:51:38
|
Dear James, > I think you can convert the EXP bits to tcindex(or nfmark) in=20 > the ILM and then in the NHFLE convert from tcindex(or nfmark)=20 > back to EXP _before_ each push. >=20 > Something like this: >=20 > mplsadm2 -A -I gen:16:0 > mplsadm2 -I gen:16:0 -i=20 > exp2tc:0:0:1:1:2:2:3:3:4:4:5:5:6:6:7:7:pop:fwd:0x2 >=20 > where 0x2 is the key for this NHLFE: >=20 > mplsadm2 -A -O 0 > Key: 0x2 > mplsadm2 -O 0x2 -o=20 > tc2exp:0x3f:0:0:1:1:2:2:3:3:4:4:5:5:6:6:7:7:push:gen:17:tc2exp > :0xf:0:0:1:1:2:2:3:3:4:4:5:5:6:6:7:7:push:gen:18:set:eth1:ipv4:1.1.1.1 Silly question... Is there any reason why the mask of first tc2exp is 0x3f while the second one is 0xf ? > I think your feature request is a valid one. AS you can see this > EXP->tcindex, tcindex->EXP is a pain. A simple flag on the=20 > NHLFE would make this process much easier. I agree... Perhaps it is nice to have this option in a newer version, regardless whether it is the best practice or not.=20 Cheers, Jonathan |