Pcornel
Networking · Routing › MPLS Fundamentals

Label

Cheat sheet · https://pcornel.dk/topic.php?topic=2641

Back to the Topic

Answer

An MPLS label is a 20-bit value in a 4-byte shim header between Layer 2 and IP; it is locally significant to each router and tells the next router how to forward the packet.

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 forwarding-table — local labels
  • show mpls label range — label space
  • Reserved labels 0–15 (3 = implicit null, 0 = explicit null) — meaning

Commands

show mpls forwarding-table

Verify in this order

label allocated locally → advertised → used by upstream neighbour

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=2641

Confirmation

Confirm action

Continue?