Download a free OSPF and MPLS LDP PDF. 47 pages of service provider best practices, with copy-paste config templates for IOS, IOS-XE and IOS-XR. Covers OSPF tuning, LDP session protection, IGP sync, BFD, NSF/NSR and SNMP. Instant, no cost.
Here’s the short version. This is a free 47-page PDF written by a working service provider network engineer, not a vendor marketing team. Every recommendation comes with the actual configuration, and most come in all three flavours: IOS, IOS-XE and IOS-XR side by side. If you’re building an MPLS core, prepping for CCNP Service Provider, or you inherited a network someone else tuned badly, this is the reference you keep open in a second tab.
One file. One free download. Every config template, ready to paste.
What this PDF is
It’s a design and operations reference, not a textbook. The structure follows how you’d actually build a core: get the IGP right, get the label protocol right, add redundancy, add management, then lock it down.
The part most guides skip is the “why”. This one explains why loopbacks should be /32 and passive, why Ethernet core links should be point-to-point instead of broadcast, and what breaks when LDP and the IGP fall out of sync. Then it gives you the command.
Every section closes with a numbered recommendations list. Those lists alone are worth the download. They read like a change-request checklist.
OSPF Neighbor States, From Down to Full
OSPF doesn’t go from zero to routing in one step. Two routers climb through eight states before they’re fully adjacent, and most real-world OSPF problems show up as a neighbor stuck partway through this list, per Cisco’s own OSPF neighbor states guide.

| State | What’s happening |
|---|---|
| Down | No hello received from the neighbor yet |
| Attempt | Hello sent to a manually configured neighbor, no reply yet (NBMA only) |
| Init | A hello was received, but it doesn’t list this router yet |
| 2-Way | Both routers see each other in their hello packets, bidirectional |
| ExStart | Routers negotiate master/slave and the starting sequence number |
| Exchange | Database Description packets swap, summarizing each router’s LSAs |
| Loading | Link-State Request packets pull the full LSAs still missing |
| Full | Fully adjacent, databases match, SPF runs |
Stuck in ExStart or Exchange almost always means an MTU mismatch between the two interfaces. Stuck in Init usually means the hello is only making it one direction, check for an ACL or a mismatched hello/dead timer before anything else.
What’s inside
- OSPF process design – area 0 layout, /32 loopbacks generated internally, passive interfaces, and log-adjacency-changes as a troubleshooting habit
- Router-id and reference bandwidth – why you pin the router-id manually, and the auto-cost reference-bandwidth value that keeps 1G/10G/100G costs sane
- Point-to-point network type – killing DR/BDR election on Ethernet core links to cut Type 2 LSAs and speed up adjacency
- SPF and LSA throttle timers – the full timers throttle spf, timers throttle lsa, lsa arrival and pacing flood set, with the IOS-XR syntax difference called out
- OSPF authentication – MD5 message-digest at the area level, both platforms
- Max-metric on startup and flood reduction – stopping a rebooting router from black-holing traffic, plus DoNotAge LSAs
- LDP fundamentals – label protocol selection, per-interface enablement, and why the router-id must be a logical interface
- LDP session protection – Basic vs Extended Discovery, targeted hellos, and keeping label bindings alive through a link flap
- LDP and IGP synchronization – the two packet-loss scenarios it prevents, and the one-line fix
- Label advertisement and allocation – advertise-label, host-route allocation, and the warning about breaking services with it
- TTL propagation – hiding the MPLS core from customer traceroutes while keeping your own troubleshooting intact
- High availability at three levels – SSO, NSF/Graceful Restart and NSR at the device level; BFD, carrier-delay and RIB purge at the link level; HSRP, VRRP and LLDP at the service level
- BFD in depth – asynchronous vs echo mode, the timer negotiation, and per-interface OSPF BFD config
- Network management – full SNMP trap lists for IOS and IOS-XR (OSPF, LDP, L3VPN, BFD, entity redundancy) and a syslog structure that survives a reboot
- Device hardening – 16 services to disable or pin down, VTY access lists, SSHv2, AAA accounting, NTP authentication and Management Plane Protection
- Miscellaneous operational wins – login and exec banners, a single management loopback as source interface for everything, duplicate-IP conflict policy, and TCP path MTU discovery
Config blocks are shown for IOS / IOS-XE / IOS-XR throughout. Where the syntax diverges, both versions are printed.
Why OSPF and MPLS LDP Have to Agree
OSPF and LDP solve two different problems, and the PDF’s own LDP-IGP synchronization section exists because of what happens when they disagree.
OSPF builds the routing table, the shortest path to every destination inside the AS. LDP rides on top of that path and hands out a label for each hop, so routers can forward by a short label lookup instead of a full IP lookup. The label-switched path LDP builds only works if it follows the exact path OSPF has already calculated.
The failure mode is specific: a link comes back up, OSPF reconverges and starts forwarding over it immediately, but LDP hasn’t finished exchanging labels on that link yet. Traffic gets routed over a path with no label binding, and packets drop until LDP catches up. The fix is one line, mpls ldp sync, which tells OSPF to hold a link’s cost artificially high until LDP confirms it has a working session.
Go deeper
This PDF gets your core designed right. The CCIE Enterprise Infrastructure Lab Workbook gives you 120 EVE-NG labs to actually build and break OSPF, MPLS and the rest of the blueprint until it’s second nature.See the CCIE Enterprise Workbook →
High Availability at Three Levels
Keeping an MPLS core up isn’t one feature, it’s three layers working together: device, link and service.

| Level | What protects it | What it’s for |
|---|---|---|
| Device | SSO, NSF/Graceful Restart, NSR | Keeps forwarding during a route processor failover or software restart |
| Link | BFD, carrier-delay, RIB purge | Detects a dead link in milliseconds instead of waiting on IGP timers |
| Service | HSRP, VRRP, LLDP | Keeps the first-hop and topology visibility intact for the services riding on top |
Most outages trace back to only one of these three being configured. BFD without NSR still drops traffic during a route processor switchover. NSR without BFD still takes seconds to notice a dead link. The PDF treats all three as one checklist, not three separate features.
Hiding the Core: TTL Propagation
One operational detail the PDF covers that most guides skip: should a customer’s traceroute see your core routers?

By default, MPLS copies the IP TTL into the label, so a customer traceroute can show every P router in your core, hop by hop. Turning no mpls ip propagate-ttl forwarded on at the edge keeps the label TTL internal and makes the whole core look like a single hop from the customer’s side. Your own troubleshooting traceroutes, run from inside the core, still see every hop normally, since the command only hides TTL for forwarded (transit) traffic.
Who it’s for
- Service provider and carrier engineers designing or standardising an MPLS core
- CCNP Service Provider (SPCOR 350-501) candidates – the exam covers OSPF, MPLS with LDP, VPN services and high availability directly (Cisco Press)
- CCNP Enterprise ENARSI (300-410) students – MPLS operations, LSR, LDP, label switching and LSP sit in the VPN Technologies domain, worth 20% of the exam
- Enterprise engineers running MPLS in a large campus or WAN core
- Anyone who inherited a network and needs a baseline to audit the running config against
This one’s advanced. If OSPF areas and label switching are new to you, start with the free BGP PDF or the free EIGRP cheat sheet first.
No questions yet. Ask the first one.