How can i use loopback (lo) interface and what's its purpose?

When i changed ip of lo to with subnet the receiving packets lengths increased why this happens thanks in advance

Wait! What? Why?

The loopback interface is needed so two programs on the same device can connect to each other, using the networking infrastructure. And the loopback interface has a specific IP address and mask, there absolutely is no need to tinker with it.


You shouldn't remove the existing addresses on lo. But it's possible to add more addresses. An advantage with using private IPv4 or global IPv6 addresses assigned to lo is that they are always available in contrast to IP addresses assigned to external interfaces which might be down.

1 Like