cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
542
Views
0
Helpful
5
Replies

Loopback

skhirbash
Level 1
Level 1

Can someone please explain to me the purpose of using a loopback ip when configuring a router?

Thanks in advance,

SK

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Loopbacks can be used for a number of things such as management of the router itself.

The thing about a loopback interface is that unlike a physical interface it cannot go down unless of course the router itself goes down. So you often use loopbacks as the source address of the router in routing protocols, tacacs queries etc. because it is a stable interface.

And you might need to readdress some fo your physcial interfaces from time to time. If you use the loopback for managing the router and this resolves in your DNS you wouldn't not need to update your DNS.

HTH

Jon

Richard Burts
Hall of Fame
Hall of Fame

SK

There are a number of advantages possible with the use of a loopback interface. The loopback interface is a virtual interface which can be configured with an IP address. One of the advantages is that the loopback interface is not tied to or dependent on a physical interface. So the loopback interface will stay up no matter what happens to physical interfaces (unless someone enters a shutdown command on the loopback interface or the router itself goes down).

One of the practical aspects to consider is that if we have a router and we have 2 data paths through the network to get to it. If we attempt to access the router using one of the interface addresses, and that interface happens to be down, then we can not access the router. But if the router has a loopback interface and if the loopback is advertised over both physical interfaces then we can access by either interface that happens to be up.

Another aspect may be in the configuration of the router to use aaa to authenticate to an ACS server. The ACS server can configure only a single address to identify the router. If the router has 2 interfaces that could be used to get to the ACS server then it becomes ambiguous which address will be the source address of the packet to ACS. This creates a problem because if ACS receives a packet and the source address of the packet is not one of the addresses configured on the server then the server will reject the packet. So configuring a loopback will allow us to use the loopback as the source address of the ACS packet. So no matter which interface is used to send the packet it will always have the expected source address.

Loopback addresses are frequently used as router ID for routing protocols. This is based on the better stability of the loopback interface as compared with physical interfaces.

There are some other things we could talk about but this should be enough to get us started.

HTH

Rick

HTH

Rick

Can i use the same loopback ip address, such as 1.1.1.1 255.255.255.0, on every router that I have, currently 20, or should i use an ip from each differnet subnet ip scope, such as 172.16.50.0 255.255.0.0?

Thanks,

sK

SK

You would not want to use the same IP address on multiple routers because this would create ambiguity about which router was which. One interesting aspect of loopback interfaces is that frequently they are configured with /32 masks (255.255.255.255) so you could take one of your subnets and use it to create addresses for loopback interfaces.

HTH

Rick

HTH

Rick

Great!

Thanks for all of your help.

SK

Review Cisco Networking products for a $25 gift card