Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

LER / LSR

Direct answer

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.

When to use this

Use it to tell where labels are pushed, swapped and popped in an MPLS path.

First 30 seconds

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.

Operational verification

ingress LER push → LSR swap → penultimate pop → egress LER IP lookup

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandshow mpls interfaces
Scope / prerequisiteUse it to tell where labels are pushed, swapped and popped in an MPLS path.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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-ttl hiding the core in traceroutes (intended or confusing).
Evidence references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • show mpls forwarding-table — push/swap/pop actions
  • show ip cef vrf <vrf> <prefix> detail — label push at the edge
ReferenceWhat it is1 section · depth on demand

Roles

RoleAlso calledDoes
Ingress LERPE (ingress)Classifies into a FEC, pushes labels
LSRP routerSwaps labels, no customer routes
Penultimate LSRPops the outer label (PHP)
Egress LERPE (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

HopRoleLabel stack after the hopLookup used
CE → PE1—(plain IP)—
PE1Ingress LER[18 transport][24 VPN] + IPVRF routing table, then BGP next hop's LSP
P1LSR[22][24] + IPLFIB on the top label only
P2Penultimate LSR[24] + IPLFIB; pops transport label (PHP)
PE2Egress 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

RequirementLER (PE)LSR (P)
IGP with all PE loopbacks as /32yesyes
LDP or segment routing on core linksyesyes
VRFs and MP-BGP VPNv4/VPNv6yesno
Customer-facing routing (PE–CE)yesno

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.

MTU

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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Roles

RoleAction
Ingress LER (PE)Pushes labels onto IP packets
LSR (P)Swaps labels
Penultimate hopPops 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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3031

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%
Confirmation

Confirm action

Continue?