Troubleshooting notes · VPN and tunnels
MPLS LDP neighbor not forming: unreachable LDP router ID
LDP discovery works in both directions but show mpls ldp neighbor stays empty. The TCP session goes to the LDP router ID, and that address isn't routed. Plus why a traceroute can look healthy with a broken LSP. Real output from Cisco IOS XE 17.18.
The symptom
MPLS is enabled on the core, but PE2 has no LDP neighbours. The strange part: discovery shows hellos in both directions.
PE2# show mpls ldp discovery detail | include Ident|Src|Transport|xmit
Ethernet0/0 (ldp): xmit/recv
Hello interval: 5000 ms; Transport IP addr: 10.44.44.44
Src IP addr: 10.0.34.1; Transport IP addr: 3.3.3.3
PE2# show mpls ldp neighbor
PE2#
Why it happens
LDP finds neighbours with UDP hellos on the link, but then opens a TCP session to the neighbour's transport address. By default that's the LDP router ID. PE2 was forced to use Loopback1 (10.44.44.44) as its LDP router ID, and that loopback isn't advertised in OSPF. P2 can't reach it, so the TCP session never forms, even though the hellos arrive.
The fix
Use a router ID the neighbours can route to. Here that's Loopback0, which is in OSPF:
PE2(config)# mpls ldp router-id Loopback0 force
Advertising Loopback1 in the IGP would also work.
Check it
Within half a minute both sessions are operational:
P2# show mpls ldp neighbor | include Peer|State
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0
State: Oper; Msgs sent/rcvd: 12/12; Downstream
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 3.3.3.3:0
State: Oper; Msgs sent/rcvd: 10/11; Downstream
A trap: the traceroute looks fine either way
In the same lab, P2's link to PE2 also had no mpls ip. PE1's traceroute looked exactly like a healthy LSP, before and after that fix:
PE1# traceroute 4.4.4.4 source loopback0 numeric
1 10.0.12.2 [MPLS: Label 17 Exp 0] 13 msec 1 msec 0 msec
2 10.0.23.2 [MPLS: Label 16 Exp 0] 6 msec 0 msec 0 msec
3 10.0.34.2 3 msec * 1 msec
With penultimate hop popping, the last label is removed at P2 anyway. The difference only shows in P2's forwarding table:
Before: P2# show mpls forwarding-table 4.4.4.4
16 No Label 4.4.4.4/32 672 Et0/1 10.0.34.2
After: 16 Pop Label 4.4.4.4/32 672 Et0/1 10.0.34.2
No Label means there's no binding from the downstream neighbour, so the packet leaves as plain IP. Pop Label means the neighbour asked for the label to be removed. For plain IP the two behave the same, but L3VPN traffic, which carries two labels, breaks with No Label.
Practise this fault
This fault is in ENARSI Lab 27 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.