Set Debian / Ubuntu network interfaces file to DHCP or Static IP address
Posted on December 19th, 2007 by linux
To set DHCP or Static IP address edit your /etc/network/interfaces file.
eth0 network interface DYNAMIC / DHCP IP address configuration:
auto eth0
iface eth0 inet dhcp
eth0 network interface STATIC IP address configuration:auto eth0
iface eth0 inet static
address 10.1.1.2
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.255.255.255
gateway 10.1.1.1
Filed under: Administration, Linux, Networks