Showing results for 
Search instead for 
Did you mean: 
Cisco Employee

OSPF route path-id

In the below output what exactly is "path-id"


RP/0/RSP0/CPU0:ASR9006-P2#sh ospf vrf TR-VRF-1-1 routes         
Wed Jul  3 07:26:38.194 UTC

Topology Table for ospf 8, VRF TR-VRF-1-1 with ID

Codes: O - Intra area, O IA - Inter area
       O E1 - External type 1, O E2 - External type 2
       O N1 - NSSA external type 1, O N2 - NSSA external type 2

O, metric 1, directly connected, via TenGigE0/0/1/2.1
O E2, metric 0, from, via TenGigE0/0/1/2.1, path-id 1
O E2, metric 0

Everyone's tags (3)

Re: OSPF route path-id

I am curious myself as wel. is this XR ios ?
Cisco Employee

Re: OSPF route path-id

Yes its in ios xr
Hall of Fame Expert

Re: OSPF route path-id

Hello Mohit,

I have found another example of a show ospf route that includes a path-id1 field here


Unfortunately, there is no explanation of the specific field. However, in that case path-id 1 is associated to the primary route and also a backup route using topology indipendent LFA is listed.


In your case you are looking at OSPF routes in a VRF and the field appears for an O E2 route and my guess is that the path-id 1 refers to the OSPF path to the ASBR that originated the O E2 type 5 LSA.


At first, I was thinking you have MPLS TE used for this MPLS L3 VPN in the forwarding plane, but path-id 1 looks like strange to refer to an MPLS TE tunnel identifier.


Hope to help





VIP Mentor

Re: OSPF route path-id



in a lot of Cisco docs, path-id is just the phyiscal numbering of the interface. So in e.g.:


interface GigabitEthernet 0/0/0/0


0/0/0/0 would be the path id. I wonder if 'path-id 1' in your case could be related to the numbering of the subinterface. If that is the case and you add another subinterface .2, the path-id should be 2. Not sure if you are in a position to test that...


Strange that it appears only on the E2 route though...

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards