Hi Christian,

The short answer is you augment an IP route to specify an out-going MPLS label 
for the path;
  Ip route add 10.0.0.0/8 via 192.168.1.1 GigE0/0/0/0 out-label 99

For the long answer please consult (which I just this second uploaded):
https://wiki.fd.io/view/File:FIB_2.0_-_Hierarchical,_Protocol_Independent..pdf
therein you’ll find a section on the MPLS FIB. It’s not complete, so if you’ve 
further questions please ask away.

regards,
neale

From: <vpp-dev-boun...@lists.fd.io> on behalf of "Dumitrescu, Cristian" 
<cristian.dumitre...@intel.com>
Date: Friday, 21 April 2017 at 17:24
To: "vpp-dev@lists.fd.io" <vpp-dev@lists.fd.io>
Subject: [vpp-dev] MPLS encap

Hi guys,

Does anybody have a simple example on how to get MPLS encap working as part of 
the IP adjacency?

What I am looking for is: IP packet received on interface A gets routed out on 
interface B with an MPLS label prepended to the packet (MPLS label read from 
FIB).

Thanks,
Cristian

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

Reply via email to