Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: While working on my home server noticed I needed dns-nameservers to be able to resolve dns entries.

...

Panel

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
# iface eth0 inet dhcp
iface eth0 inet static
address 192.168.0.50
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1 # Required as of Ubuntu 13.04 (in my testing, but I read 12.04 and up requires this)

If you have not already, make sure are running from the console for this step. Otherwise you will be disconnected and have to connect again with the new ip address.

...

After you know things are working you may want to uninstall the dhcp package as . I have read (but not verified) that after a certain amount of time it will take control and you will end up with a dhcp assigned ip.

...

Some instructions mention you need network and broadcast, but they are automatically calculated from the address and netmask values. In fact adding the wrong ones can prevent things from working so I recommend leaving them out.
I have also seen
If you have more than one dns server use the format, dns-nameservers 208.78.97.155 208.75.87.250 (of course using your own numbers) being used but my dns seems to work just fine.

Questions for the You Reader

...