12-02-2017 05:43 AM - edited 03-01-2019 03:15 PM
Hi,
In IOS, I can see an LFIB entry for a VPNv4 labelled prefix like so:
pe01.151FrontStW802.YYZ#show mpls forwarding-table vrf Inetv4 66.207.196.77 Local Outgoing Prefix Bytes Label Outgoing Next Hop Label Label or Tunnel Id Switched interface None 270 66.207.196.76/30[V] \ 0 Te0/2 72.15.51.49 pe01.151FrontStW802.YYZ#
In IOS XR, the syntactically equivalent command doesn't return anything, so is there a different command to see the same?
RP/0/RSP0/CPU0:bfr01.151FrontStW01.YYZ#show mpls forwarding vrf Inetv4 prefix 66.207.196.76/30 Sat Dec 2 08:33:59.319 EST RP/0/RSP0/CPU0:bfr01.151FrontStW01.YYZ#show mpls forwarding vrf Inetv4 prefix 66.207.196.76/30 location 0/0/cpU0 Sat Dec 2 08:34:32.092 EST RP/0/RSP0/CPU0:bfr01.151FrontStW01.YYZ#show mpls forwarding vrf Inetv4 prefix 66.207.196.76/30 hardware egress location 0/0/cpU0 Sat Dec 2 08:34:41.990 EST RP/0/RSP0/CPU0:bfr01.151FrontStW01.YYZ#show mpls forwarding vrf Inetv4 prefix 66.207.196.76/30 hardware ingress location 0/0/cpU0 Sat Dec 2 08:34:46.434 EST RP/0/RSP0/CPU0:bfr01.151FrontStW01.YYZ#
12-13-2017 11:02 AM - edited 12-13-2017 11:05 AM
By default, IOS-XR works with per-vrf label allocation, whereas IOS does per-prefix allocation. Every prefix originated in a vrf will use this vrf label.
RP/0/RSP1/CPU0:ASR9K#sh mpls forwarding | i V
Wed Dec 13 14:59:39.421 EST
24044 Aggregate A: Per-VRF Aggr[V] A 0
24045 Aggregate C: Per-VRF Aggr[V] C 0
24046 Aggregate D: Per-VRF Aggr[V] D 0
Where A C and D are my vrfs
Edit:
Checked another VRF (with a prefix in it), you can also double check BGP to see the label info:
RP/0/RSP1/CPU0:ASR9K#show bgp vpnv4 unicast vrf XXX labels
Wed Dec 13 15:02:36.628 EST
BGP router identifier z.z.z.z, local AS number 20
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 7384
BGP NSR Initial initsync version 1142 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs
Status codes: s suppressed, d damped, h history, * valid, > best
i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Rcvd Label Local Label
Route Distinguisher: 20:1 (default for vrf XXX)
*> 12.12.12.12/32 0.0.0.0 nolabel 24031
Processed 1 prefixes, 1 paths
RP/0/RSP1/CPU0:ASR9K#sh mpls for | i XXX
Wed Dec 13 15:02:48.994 EST
24031 Aggregate XXX: Per-VRF Aggr[V] \
XXX 0
RP/0/RSP1/CPU0:ASR9006-L#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide