Set Fixed IP Address on Ubuntu

August 13th, 2009

Warning: This post is 14 years old. Some of this information may be out of date.

I often find that I need to fix an IP address using Ubuntu Server and then have to search for the correct format for /etc/network/interfaces.  For record, here it is:

auto lo
iface lo inet loopback

iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3

auto eth0