Frequently Asked Questions

How do I set up additional IPs on Debian like releases
Last Updated 2 years ago

Content of the \etc\networking\interfaces file

auto {device}
iface lo inet loopback
iface eth0 inet static
address {ip}
netmask 255.255.255.255
broadcast {ip}
post-up route add GATEWAY_VM dev {dev}
post-up route add default gw GATEWAY_VM
pre-down route del GATEWAY_VM dev {dev}
pre-down route del default gw GATEWAY_VM

For Debian prior to v5, nameservers are set in /etc/resolv.conf

nameserver 8.8.8.8

For Debian v6 and later, nameservers are set in /etc/networking/interfaces

dns-nameservers 8.8.8.8


Please Wait!

Please wait... it will take a second!