Here I am following the bare metal method and will edit the main network configuration files for providing the network information. The main network configuration file of any Ubuntu based distribution is the "/etc/network/interfaces" file. Just open the file in your favourite editor and start configuring it as follows.
Configuring DHCP addressing for your network interface card in Ubuntu.
# sudo vi /etc/network/interfaces
# The primary network interface - use DHCP to assign network address
iface eth0 inet dhcp
Configuring Static IP addressing for your network interface card in Ubuntu.
# The primary network interface
iface eth0 inet static
Here the network information I provided is for your information only. You should chance the details as per your network requirements.
Restarting the Network service in Ubuntu 10.04 LTS
Also after editing these network information you should restart the networking service of you Ubuntu 10.04 LTS Server/Desktop.
# /etc/init.d/networking restart
Also do not forget that the new Ubuntu 10.04 LTS distribution allows you use the
So you can also use the following command to restart the networking service in Ubuntu 10.04 LTS.
# service networking restart