cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5756
Views
13
Helpful
4
Replies

Loopback Interface

littlegiglow
Level 1
Level 1

What is the purpose of the loopback interface?

4 Replies 4

Richard Burts
Hall of Fame
Hall of Fame

Sherman

A loopback interface is a virtual interface that can be configured on a router. When we say it is a virtual interface this means that it logically exists but it does not exist physically (there is no physical interface and no cable to plug into it). One important aspect of the loopback interface is that it removes physical dependencies - you can not unplug a cable and have the interface go down (unless the cable was the power cable for the router).

The loopback interface can have many uses. Some routing protocols have the concept of a routerID and we frequently want a loopback interface address to be the RID (because it is more stable than any physical interface). We frequently want to use a loopback interface addresses for management purposes. We may want to source our SNMP messages from the loopback. If we want to ping an interface on the router to determine whether the router is up or not it is good to ping the loopback interface. If you want to telnet to the router you do not have to be concerned whether you are accessing it by its serial interface, its Ethernet interface, or any other interface if you telnet to the loopback interface address. If you are using AAA and an ACS server for authentication it is good to source the authentication packets using the loopback interface. Some protocols need to specify peer addresses (BGP, and GRE tunnels and IPSec are examples that come to mind) and it may be advantageous to use the loopback interface address as the peer address.

There are more uses for loopback interfaces but this gets the discussion started.

HTH

Rick

HTH

Rick

great post.

williamsdo
Level 3
Level 3

To add to the previous post a loopback interface is usefull when you are using tunnels between sites. you can have your tunnel source the loopback interface, another good thing is you can configuer more than one loopback interface on your routers thsi overcomes physical hardware restrictions. HTH

interface Loopback0

ip address 10.10.13.35 255.255.255.255

interface Tunnel0

ip address 2.222.254.135 255.255.255.0

no ip redirects

ip nhrp map 2.222.254.1 10.10.222.22

ip nhrp network-id 10

tunnel source Loopback0

tunnel mode gre multipoint

tunnel key 1

littlegiglow
Level 1
Level 1

Gotcha. I understand now. Thank you guys for taking the time to respond, your responses were very helpful.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: