Andrew McCombe


Full Stack Web Developer

Set Fixed IP Address on Ubuntu

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