Re: [mpls-linux-general] MPLS and scheduling for QoS
Status: Beta
Brought to you by:
jleu
From: lucapilosu\@libero\.it <luc...@li...> - 2008-05-13 14:23:43
|
Ok, with exp2tc I can create a MPLS command like this: var_default=`mpls nhlfe add key 0 instructions exp2tc 0x3 0x1 push gen 600 nexthop ath1 ipv4 10.0.6.4|grep key| cut -c 17-26` mpls xc add ilm_label gen 500 ilm_labelspace 0 nhlfe_key $var_default But, if I have multiple EXPs to be mapped, for instance 0x3, 0x6 and 0x0 have I got to do like in LER E1, where I created 3 mpls entries and then I mapped them with iptables specifying the target with "-j" option? (iptables -t mangle -A FORWARD -s 172.16.30.0/24 -m dscp --dscp 0x06 -j mpls --nhlfe $key_1) this way I'm still reading Layer 3 information...right? Or I can do something like this? var_default=`mpls nhlfe add key 0 instructions exp2tc 0x3 0x1 exp2tc 0x6 0x2 exp2tc 0x0 0x3 push gen 600 nexthop ath1 ipv4 10.0.6.4|grep key| cut -c 17-26` Thanks a lot, you're very helpful! Luca |