Here are the default contents of /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
For eth0 with dhcp:
For eth0 static:
link: http://www.iasptk.com/ubuntu/20202-ubuntu-server-networking-configuration-dhcp-address-static-ip-address-second-ip-address-or-virtual-ip-address
Mine looks like:
Following the Debian network configuration page, if you're just using DHCP then all you need is something like:
Here are the default contents of
/etc/network/interfaces
: