Warning |
---|
This article was written a long time ago. It should be improved to match the tone of the rest of the website. Update this article with recent work done on secondary IP. |
These instructions are for Ubuntu Desktop. Servers by default do not use DHCP.
...
Now I don't know how to get the rest on Ubuntu quite yet (now I do) so I go to a Windows machine on the same network and type,
...
Panel |
---|
# This file describes the network interfaces available on your system # The loopback network interface # The primary network interface # |
Code Block | ||
---|---|---|
| ||
# 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 static
address 192.168.0.50
netmask 255.255.255.0
gateway 192.168.0.1
# I believe this entry is only necessary if your /etc/resolv.conf is empty and not working in an internal home network for example. Still need to validate next time I build a home Ubuntu system. My server system does not appear to need this.
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.
...