After installing Ubuntu 9.10 - without the GUI (X11), I needed to configure the network settings - IP, DNS etc.

To configure network settings you need to edit the /etc/network/interfaces file.

From a command prompt, type:

sudo bash

Enter the account password.

Edit the /etc/network/interfaces file. Type:

vi /etc/network/interfaces

A normal DHCP setting will look like:

# The primary network interface - use DHCP to find our address
auto eth0
iface eth0 inet dhcp

To change to a static address, re-configure the file:

# The primary network interface

auto eth0
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0
network 192.168.3.0
broadcast 192.168.3.255

After entering all the details you need to restart networking services using the following command:

/etc/init.d/networking restart

To set up DNS:

Add the hostname and IP addresses to the file /etc/hosts

To save the file, hit ESC, then type:

:wq!

Leave a Reply

You must be logged in to post a comment.