debian add another loopback address

Tagged as linux, networking, loopback, debian

Written on 2017-01-04 15:40

Add to /etc/network/interfaces:

auto lo:1
iface lo:1 inet static
address 127.0.0.2
netmask 255.0.0.0

then

ifup lo:1

and an ip a should show you the new ip being live.


Unless otherwise credited all material Creative Commons License by sjas