Set Fixed IP Address on Ubuntu

August 13, 2009

Image for Set Fixed IP Address on Ubuntu from unsplash.com

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