I want to add two more loopback interfaces.
I used the following command:
ifconfig lo: 127.0.0.2 netmask 255.0.0.0 up
and type in ifconfig
, i can see the loopback address was added.
But if i want to add one more interface… (for example 127.0.0.3) the previous interface (127.0.0.2) was overwritten.
Also when i look in /etc/network/interfaces
i see no entry.
How can i add multiple loopback interfaces permanently?
Best Answer
It depends what you want
lo
orlo:
which is an interface alias.works. If you want to have more IP's on
lo
useworks too. If you want to remove it, use:
See also IP-Aliasing Linux Networking-HOWTO