E04Concept + Lab11:45In production

Loopbacks, router IDs, and why SPs live by them

In production now

Subscribe and you'll get it the day it goes live. A new episode every week.

Subscribe on YouTube

About this episode

Why do service providers hang everything (router IDs, BGP sessions, LDP, MPLS tunnels, management) on one tiny /32 loopback? We show what goes wrong when a router's identity lives on a physical link, how router IDs are chosen automatically (and why that's dangerous), then configure a loopback on PE1 in FRR and watch it survive a link failure.

What you'll learn

  • Explain why an address on a physical interface is a poor identity for a router: when the link goes down, the connected route and the address go with it.
  • Describe what a loopback interface is, why it stays up, and how the IGP keeps it reachable over any surviving path.
  • Justify the SP convention of one /32 loopback per router, and list the jobs it does: router ID, iBGP update-source and next hop, LDP identity and transport address, MPLS LSP endpoint, management.
  • Explain how a router ID is chosen automatically (configured → highest loopback → highest interface address) in FRR and classic Cisco IOS, and why SPs always set it by hand.
  • Configure and verify a /32 loopback in FRR vtysh, prove it survives a link shutdown that removes a connected route, and save with write memory (integrated config).

Cheat sheet

  • Interface address = link identity. Link down → connected route withdrawn → address unreachable → everything built on it fails.
  • Loopback = router identity. Virtual, always up (unless admin-shut); the IGP keeps it reachable over any surviving path.
  • One /32 per router. No neighbours, no waste, most specific route possible. Ping Telecom: 10.255.0.X/32, X = router number (P1 .1, PE1 .11, RR .100).
  • Six jobs: router ID (BGP, LDP; IS-IS System ID usually derived from it) · iBGP update-source · BGP next hop · LDP router ID + transport address · MPLS LSP endpoint · management (SSH/SNMP/syslog/monitoring).
  • Automatic router ID (general rule): configured → highest loopback address → highest other interface address. Details vary by vendor/protocol; FRR's zebra chooses and hands it to the daemons; classic IOS considers only interfaces that are up.
  • SP rule: set router IDs by hand, per protocol, to the loopback. FRR: bgp router-id 10.255.0.11 (under router bgp), router-id 10.255.0.11 (under mpls ldp).
  • FRR config: configure terminal → interface lo → ip address 10.255.0.11/32 → end. Applies instantly.
  • Verify: show interface lo · show interface brief · show ip route connected · show ip route <prefix>.
  • Save: write memory → one integrated /etc/frr/frr.conf (because of service integrated-vtysh-config). In the lab it's Lab/configs/active/<router>.conf on your host.
  • IOS-XR: interface Loopback0 · ipv4 address 10.255.0.11 255.255.255.255 · commit (no write memory).
Technicians in Hyderabad open a fibre splice tray to find a fault in an optical cable.

Stuck on a lab? Book a trainer.

Screen-share your lab with a Ping Academy trainer and fix it together. From ₹999, times in IST.