This article explains how to determine MPLS label used in MPLS encapsulation between compute nodes or compute node and DC gateway.
During data path encapsulation troubleshooting, you may be required to confirm that the compute node made the correct MPLS encapsulation, and the MPLS data frame took the correct path.
vif –list
grep
-A 4
root@rencpt2:~# vif --list | grep tap1d0fba01-4e -A 4 vif0/9 OS: tap1d0fba01-4e Type:Virtual HWaddr:00:00:5e:00:01:00 IPaddr:0 Vrf:1 Flags:PL3L2D MTU:9160 Ref:6 RX packets:0 bytes:0 errors:0 TX packets:36 bytes:4306 errors:0
rt –dump
root@rencpt1:~# rt --dump 1 | grep 2.0.0.8/32 Vrouter inet4 routing table 0/1/unicast Flags: L=Label Valid, P=Proxy ARP, T=Trap ARP, F=Flood ARP Destination PPL Flags Label Nexthop Stitched MAC(Index) 2.0.0.8/32 32 LP 31 22 2:1d:f:ba:1:4e(173152)
nh –get
root@rencpt1:~# nh --get 22 Id:22 Type:Tunnel Fmly: AF_INET Flags:Valid, MPLSoUDP, Rid:0 Ref_cnt:23 Vrf:0 Oif:0 Len:14 Flags Valid, MPLSoUDP , Data:6c c2 17 2a f1 68 6c c2 17 2a ee e8 08 00 Vrf:0 Sip:10.5.192.1 Dip:10.5.192.2