Forcing static address in 12.04

Karl Auer kauer at biplane.com.au
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 192.168.1.99
>    netmask 255.255.255.0
>    gateway 192.168.1.1
>    dns-nameservers 192.168.1.35

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 biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

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