08-03-2021 01:23 AM
I have read that they are used for router id election or to check if the router is active. If the router has all its interfaces turned off what do I need to ping the router interfaces? the interfaces are all off ..... Besides these reasons, are there any others? The Cisco books are not very clear aside from the election of the ospf router id
Solved! Go to Solution.
08-03-2021 08:23 AM
Primary reason for using a loopback interface, it's always up (unless you configured it to be shutdown).
Reason it's often used for a router ID, it doesn't change the router's ID as does a physical interface that goes down. I.e. improves stability for the routing protocol.
As to using as a ping target (or for management), assuming routing is configured correctly, the device can be reached if any physical interface provides connectivity, whereas if you used a physical interface, and that interface goes down, you would need to select another interface that's reachable and "up". BTW, this also works using a loopback as the device's source interface for various protocols, e.g. telneting from the device.
08-03-2021 08:23 AM
Primary reason for using a loopback interface, it's always up (unless you configured it to be shutdown).
Reason it's often used for a router ID, it doesn't change the router's ID as does a physical interface that goes down. I.e. improves stability for the routing protocol.
As to using as a ping target (or for management), assuming routing is configured correctly, the device can be reached if any physical interface provides connectivity, whereas if you used a physical interface, and that interface goes down, you would need to select another interface that's reachable and "up". BTW, this also works using a loopback as the device's source interface for various protocols, e.g. telneting from the device.
08-03-2021 02:17 PM
If a physical interface goes down with the loopback interface can I access the device without selecting another physical interface?What if all the physical interfaces go down?That is, if I telnet to the router at a loopback interface, on which router interface does the traffic physically cross the router?
08-03-2021 03:11 PM
If all physical interfaces go down, you cannot access the device (except perhaps via a console or aux port).
If there's any physical interface working, yes (maybe) you can continue to access the device using a loopback interface. Again, this requires a path to the device. (BTW, in fact, while connecting to a loopback, if the current physical interface drops, which your traffic is transiting on, you might not even notice the interface drop. [NB: this is just theory, I've first hand experience.])
Normally, using a loopback interface, the traffic goes via the "best" physical interface (currently active, and reachable).
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide