centos(redhat):
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static [DHCP]
BROADCAST=192.168.10.255
HWADDR=00:0C:29:57:89:CB
IPADDR=192.168.10.89
NETMASK=255.255.255.0
NETWORK=192.168.10.0
ONBOOT=yes
DNS1=192.168.1.1
ubuntu:
/etc/network/interfaces
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.10.77
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 192.168.10.1