Forcing static address in 12.04

Karl Auer kauer at
Mon Jun 8 01:07:32 UTC 2015

On Mon, 2015-06-08 at 10:47 +1000, Karl Auer wrote:
> On Sun, 2015-06-07 at 15:30 -0700, rikona wrote:
> > I had to replace a failed router in the lan, and needed to temporarily
> > set a 12.04 box to dhcp. It had a fixed IP since installation. After
> > the router was configured, I tried to set it back to fixed, but can't.
> In /etc/network/interfaces, put something like this:
> auto eth0
> iface eth0 inet static
>    address
>    netmask
>    gateway
>    dns-nameservers

In case it wasn't obvious, you should use values in there that make
sense for your network. The above values are just examples.

Regards, K.

Karl Auer (kauer at

GPG fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
Old fingerprint: EC67 61E2 C2F6 EB55 884B E129 072B 0AF0 72AA 9882

More information about the ubuntu-users mailing list