Hi Xyxue,

Yes, that’s correct. Note the ip4-lookup-in-table-1 implies a VRF lookup.

Regards,
neale

From: 薛欣颖 <xy...@fiberhome.com>
Date: Tuesday, 23 May 2017 at 10:15
To: "Neale Ranns (nranns)" <nra...@cisco.com>, vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: Re: [vpp-dev] MPLS LABEL

Hi neale,

Thank you very much for your reply!

You mean that I can configure "mpls local-label add eos 33 ip4-lookup-in-table 
1"to pop the inner label,and use "mpls local-label add non-eos 34  
mpls-lookup-in-table 0"
to pop the outer label. Am I right?


Thanks,
Xyxue


From: Neale Ranns (nranns)<mailto:nra...@cisco.com>
Date: 2017-05-23 15:18
To: 薛欣颖<mailto:xy...@fiberhome.com>; vpp-dev<mailto:vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] MPLS LABEL
Hi Xyxue,

MPLS labels are popped once they have been used in the lookup stage. The path 
(i.e. the config after the ‘via’ keyword) describes whether a new label should 
be pushed, so the absence of an out-label keyword there means that the router 
will be seen to pop the label.

These configs then;
  1) mpls local-label 33 ip4-lookup-in-table 0
       removes label 33 and does an IP lookup in Table-ID 0
2) mpls local-label 33 via 2.1.1.2  host-eth0
       remove label 33, does not add another, and forwards to 2.1.1.1 on 
host-eth0 (this is probably what you want)
3) mpls local-label 33 via 2.1.1.2  host-eth0 out-label 66
       removes label 33, then adds 66 and forwards via 2.1.1.2 on host-eth0

If you add all three statements, then that’s ECMP. The hash algorithm for MPLS 
uses only the packets MPLS label, which is always 33, so it’ll only every take 
one of these choices.

Hth,
neale


From: <vpp-dev-boun...@lists.fd.io> on behalf of 薛欣颖 <xy...@fiberhome.com>
Date: Tuesday, 23 May 2017 at 07:28
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: Re: [vpp-dev] MPLS LABEL

Hi guys,

How can I configure label pop in Egress node?

That's my configure in my vpp , and the label didn't pop :

 set interface mpls  host-eth1   enable
 set interface mpls  host-eth0   enable
 mpls local-label 33 ip4-lookup-in-table 0
 mpls local-label 33 via 2.1.1.2  host-eth0
 mpls local-label 33 via 2.1.1.2  host-eth0 out-label 66
 ip route add 192.168.1.0/24 via 2.1.1.2 host-eth0 out-label 66
 mpls tunnel add via 2.1.1.2 host-eth0 out-label 66
 set int state mpls-tunnel0 up
 ip route add 192.168.1.0/24 via mpls-tunnel0

What's wrong with my configuration ? Did I miss any configuration?



Thanks,
xyxue

From: xy...@fiberhome.com<mailto:xy...@fiberhome.com>
Date: 2017-05-23 11:43
To: vpp-dev<mailto:vpp-dev@lists.fd.io>
Subject: MPLS LABEL

Hi guys,

I can configure mpls  out-label with "ip route add 1.1.1.1/24 via 1.1.2.1 
GigE0/0/0/0 out-label 123".
How can I configure  mpls local-label?

Thanks,
xyxue
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to