having 2 ip's on a debian 7 box
- by David
I just installed Debian Wheezy on my homeserver. I want to assign 2 ip's to it on the same network interface, 1 static ip (eth0) and 1 dynamic ip (eth0:1). I know it doesn't make much sense but I need it to test something.
I edited my /etc/network/interfaces to be like this:
auto lo eth0 eth0:1
iface lo inet loopback
iface eth0 inet static
…