Assign fix IP to an ethernet interface on Ubuntu
Edit /etc/network/interfaces, and do it like this below:
Make sure, you have all interfaces listed and automatically started:
auto lo eth0 eth1
iface lo inet loopback
First uncomment the DHCP, if it was active for eth0:
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
Now you can enter the fixed values for eth0:
#custom
iface eth0 inet static
address 10.1.1.233
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.254
If you have more interfaces, type all in as abowe.
iface eth1 inet static
address 80.xx.xx.xx
netmask 255.255.255.0
broadcast 80.xx.xx.254
network 80.xx.xx.0