Ubuntu configure network
http://www.ubuntugeek.com/ubuntu-networking-configuration-using-command-line.html
Configs are here:
/etc/network/interfacesDHCP
auto eth0
iface eth0 inet dhcpStatic
auto eth0
iface eth0 inet static
address 192.168.7.101
gateway 192.168.7.1
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255Static second IP on the same interface
auto eth0:1
iface eth0:1 inet static
address 192.168.7.102
gateway 192.168.7.1
netmask 255.255.255.0
network 192.168.7.0
broadcast 192.168.7.255Apply settings
sudo /etc/init.d/networking restartHostname
sudo /bin/hostname newnameDNS
sudo nano /etc/resolv.confin config:
search example.com
nameserver 192.168.7.1