Hi folks I,m trying to build an ubuntu server using 12.04lts but are having problems after I finish installing unbuntu ,looking at sites on how to install it then ask you to set up a static ip sddress,see eg. below but when i put in vi /etc/network/interfaces,it only brings up iface eth0 inet dhcp no address or anything so when I try to put it in manual I cannot save it,this is my first attempt trying to set up a server but its getting to be a pain ,when I log into with my password I can seen a dhcp address but when I try to log int putty it will not access it ,also when I,m installing unbuntu do I need an Ethernet cable connected at that stage or not,hope someone will try to help me move on ta
Configure The Network
Because the Ubuntu installer has configured our system to get its network settings via DHCP, we have to change that now because a server should have a static IP address. Edit /etc/network/interfaces and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100):
vi /etc/network/interfaces
# 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.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1