Routers - what is a loopback interface
A loopback interface is a virtual interface that can be created on any Layer 3 device such as a router, L3 switch, or firewall. It can be assigned an IP address just like any physical interface, and can be configured with most features that physical interfaces can be configured with.
It is useful in multiple features and operations including:
- To define the router ID for multiple routing protocols such as OSPF and EIGRP
- The source and destination in the formation of BGP peers
- The Label Switch Router ID (LSR ID) when configuring LDP in MPLS
- An IP address that can be used for management of a network device.
It differs from other virtual interfaces such as an SVI on a L3 switch which corresponds to a VLAN, or a subinterface on a router, which corresponds to a physical interface. These virtual entities can be used as default gateways and can also be used to route traffic. Loopbacks cannot.
Links to this page:
- BGP peering redundancy using loopbacks
- IOS - using ftp or tftp source-interface command
- MPLS - LDP source interface
- MPLS - what is seamless MPLS
- MPLS LSR ID
- MPLS Layer 3 VPN communication between CE routers
- OSPF DR BDR election process
- OSPF IP Unnumbered
- OSPF advertising loopback network
- OSPF router ID in an IPv6 environment
- OSPF router ID
- Routing - what is recursive routing
- SNMP - Index shuffling
- Security - bogons