Use it to tell where labels are pushed, swapped and popped in an MPLS path.
LER / LSR
A Label Edge Router (LER) pushes labels on packets entering the MPLS network and pops them on exit; Label Switch Routers (LSRs) in the core only swap labels.
1. LERs (PE) push or pop labels at the edge; LSRs (P) swap labels in the core.
2. An ingress LER imposes labels on IP packets.
3. Egress LER removes them (or PHP does at the penultimate hop).
4. P routers need no customer routes.
5. Verify the action per hop.
ingress LER push → LSR swap → penultimate pop → egress LER IP lookup
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mpls interfacesVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Commands Verify boundary
show mpls interfaces
show mpls forwarding-table
show mpls ldp neighbor
Step 2 Common MPLS problems Narrow the fault
- LDP not enabled on an interface in the path (
mpls ip). - LDP router ID not reachable (should be a loopback advertised in the IGP).
- MTU: labels add 4 bytes each; VPNs need at least 8 bytes extra.
no mpls ip propagate-ttlhiding the core in traceroutes (intended or confusing).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- 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.
show mpls forwarding-table— push/swap/pop actionsshow ip cef vrf <vrf> <prefix> detail— label push at the edge
ReferenceWhat it is1 section · depth on demand
Roles
| Role | Also called | Does |
|---|---|---|
| Ingress LER | PE (ingress) | Classifies into a FEC, pushes labels |
| LSR | P router | Swaps labels, no customer routes |
| Penultimate LSR | Pops the outer label (PHP) | |
| Egress LER | PE (egress) | Pops/looks up the VPN label, forwards to the customer |
P routers do not need customer or internet routes, only IGP routes to PE loopbacks and labels.
ReferenceWhy it matters1 section · depth on demand
How it works
An LER (Label Edge Router, PE) sits at the edge of the MPLS domain: it classifies incoming IP packets into a FEC and pushes a label (ingress), or pops the last label and forwards IP (egress). An LSR (P router) in the core only swaps labels using its LFIB. With PHP the router before the egress LER pops the label so the LER does one lookup.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Label operations per role in an L3VPN packet
| Hop | Role | Label stack after the hop | Lookup used |
|---|---|---|---|
| CE → PE1 | — | (plain IP) | — |
| PE1 | Ingress LER | [18 transport][24 VPN] + IP | VRF routing table, then BGP next hop's LSP |
| P1 | LSR | [22][24] + IP | LFIB on the top label only |
| P2 | Penultimate LSR | [24] + IP | LFIB; pops transport label (PHP) |
| PE2 | Egress LER | (plain IP) | VPN label 24 selects the VRF, then IP lookup |
| PE2 → CE | — | (plain IP) | — |
A P router never looks at the VPN label or the customer IP header; that is why the core can run without BGP and without customer routes (BGP-free core).
What each role must have
| Requirement | LER (PE) | LSR (P) |
|---|---|---|
| IGP with all PE loopbacks as /32 | yes | yes |
| LDP or segment routing on core links | yes | yes |
| VRFs and MP-BGP VPNv4/VPNv6 | yes | no |
| Customer-facing routing (PE–CE) | yes | no |
TTL and traceroute
By default IOS copies the IP TTL into the label, so a customer traceroute shows P routers. no mpls ip propagate-ttl forwarded hides the core from customer traffic while traceroutes started on the PE itself still show every hop.
Each label adds 4 bytes. A two-label VPN packet with a 1500-byte payload needs 1508 bytes on core links; with TE or fast reroute a third label adds 4 more. Set the core interface MTU (and mpls mtu where needed) above 1500 instead of letting large packets drop silently.
Quick role check
show mpls interfaces (LDP enabled per interface), show bgp vpnv4 unicast all summary (only PEs should have VPNv4 sessions) and show mpls forwarding-table (P routers show only loopback prefixes).
Roles
| Role | Action |
|---|---|
| Ingress LER (PE) | Pushes labels onto IP packets |
| LSR (P) | Swaps labels |
| Penultimate hop | Pops the top label (PHP) |
| Egress LER (PE) | Forwards IP or VPN label lookup |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → MPLS Fundamentals → LER / LSR. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%