Loopback Interface
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 06:15 PM - edited 03-05-2019 08:21 PM
What is the purpose of the loopback interface?
- Labels:
-
LAN Switching
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 07:05 PM
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
Rick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2008 01:10 PM
great post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2008 08:18 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2008 05:11 PM
Gotcha. I understand now. Thank you guys for taking the time to respond, your responses were very helpful.
