cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2606
Views
0
Helpful
6
Replies

How to find label assigned to local interface

vikas7_999
Level 1
Level 1

I have int gig 4/47 running mpls and have assigned ip address to it.

I am interested in finding out what is the local label assigned to this ip prefix on this router.

I understand that router generate local labels to all the routes in the FIB and thus populates the lib which includes the locally attached interfaces also.

But cant seem to find out in the LIB table using sh mpls ldp bindings.

I checked lib table on the neighboring router which is ldp peer to this local router but cant seem to find the label there also.

Any suggestion if i am on right track or if am missing something.

Thanks

Vikas.

6 Replies 6

Nagendra Kumar Nainar
Cisco Employee
Cisco Employee

Vikas,

Normally LDP will assign implicit null for directly connected prefixes. In you case it must be imp-null and should be seen in ldp binding table.

Can you share the below,

show run int g4/47

show mpls ldp binding

-Nagendra

Hi naikumar,

 

Here is the requested output:

 

Router#sh run int gig4/47

Building configuration...

Current configuration : 148 bytes

!

interface GigabitEthernet4/47

 description TO  G0/1

 ip address 10.x.x.93 255.255.255.252

 speed 1000

 duplex full

 mpls ip

end

 

Router#sh mpls ldp bindings 10.x.x.93 255.255.255.252

Router#

As you can see i get no output for ldp bindings for this particular prefix.

 

Thanks

Vikas

 

 

evergreenajay
Level 1
Level 1

Is cef enable and mpls is configure in global mode?

Ajay

Hi Ajay,

 

CEF is enabled but i dont see mpls being configured in global config.

This is a cisco 7606 router.

 

Thanks

Vikas.

Hi Vikas,

Can you check if you have any entry in ldp binding table using "show mpls ldp binding" and see if any prefix have local label assigned?. Also please check if you have the itnerfaces enabled with mpls using "show mpls interface" and check for any neighbors using "show mpls ldp neig"

-Nagendra

Hi ,

I checked the output of sh mpls ldp bindings and confirmed that there are local labels generated for lot of prefixes.

Only local labels that i am missing is for some of the directly connected interfaces. Like for ex i can see local label generated for loop 0 which is on the same router but not for physical interfaces.

 

Also i see that there are mpls interfaces when i issue the command sh mpls interfaces

 

Router>sh mpls inter

Router>sh mpls interfaces

Interface              IP            Tunnel   BGP Static Operational

GigabitEthernet1/5     Yes (ldp)     No       No  No     Yes        

GigabitEthernet1/10    Yes (ldp)     No       No  No     Yes        

TenGigabitEthernet2/1  Yes (ldp)     No       No  No     Yes        

TenGigabitEthernet2/3  Yes (ldp)     No       No  No     Yes        

GigabitEthernet3/7     Yes (ldp)     No       No  No     Yes        

GigabitEthernet3/8     Yes (ldp)     No       No  No     Yes        

GigabitEthernet4/46    Yes (ldp)     No       No  No     Yes        

GigabitEthernet4/47    Yes (ldp)     No       No  No     Yes        

Port-channel13         Yes (ldp)     No       No  No     Yes        

Vlan2502               Yes (ldp)     No       No  No     Yes        

Vlan2001               Yes (ldp)     No       No  No     Yes   

 

sh mpls ldp nei is also looking good.

 

Thanks

Vikas.