Ubuntu 8.10 Not Saving Static Ip Settings

Back to MainPage.  Back to LinuxStuff.

As I've got a small home network, with statically configured port-forwarding settings, I find it convenient to use a static IP address for my desktop.

Unfortunately, everytime I reboot, my network settings are forgotten, and the default, DHCP driven automatic network configuration takes over.

The solution is to use a text editor, instead of the GUI.  Edit the file /etc/network/interfaces.  Add your settings, following the syntax below:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 192.168.0.91
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1

Note that you'll need to know your gateway address, the IP address you're assigning and the netmask.

The entry "lo" above should be present in your interfaces file before and after you edit this file.

After modifying this file, Intrepid Ibex shouldn't require reconfiguration on each boot.

Back to MainPage.  Back to LinuxStuff.

Subscribe to RSS




Share on Facebook