Networking · Routing
MPLS Fundamentals
Cheat sheet · https://pcornel.dk/topic.php?topic=2640
Answer
MPLS forwards packets through locally significant labels that map a FEC to push, swap, pop or deliver actions.
Remember
- Labels are locally significant and normally change hop by hop
- LERs impose/remove labels; LSRs swap labels
- LDP commonly follows IGP reachability, so router-ID/transport reachability must work first
- LIB/control-plane bindings and LFIB/data-plane actions are separate
- Penultimate-hop popping is normal; MPLS VPN requires additional VRF/MP-BGP state.
First checks
show mpls interfaces— interfaces with MPLS enabledshow mpls ldp neighbor— LDP sessionsshow mpls forwarding-table— LFIB labels
Commands
show mpls forwarding-table- Local state
show mpls ldp neighbortraceroute
Verify in this order
IGP routes → LDP labels → LFIB → label-switched path end to end
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2640