IP estática en Red-Hat (CentOS) y basados en/o Debian

Red-Hat, Centos, Fedora (Basados en Red-Hat)

CentOS – configurar ethernet con ip estática

How to Configure Static IP Address on CentOS 6.2 Linux Server

[root@centos6 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=”eth0″
HWADDR=”00:0C:29:67:51:B1″
NM_CONTROLLED=”yes”
ONBOOT=”yes”
IPADDR=192.168.1.44
BOOTPRO=static
NETMASK=255.255.255.0

[root@centos6 ~]# vi /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=centos6.2
GATEWAY=192.168.1.1

/etc/network/interfaces.conf

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

# Bridge network interface for VM networks
auto br100
iface br100 inet static
address 192.168.100.1
netmask 255.255.255.0
bridge_stp off
bridge_fd 0

Debian, Ubuntu, LinuxMint, etc… Basados en Debian.
/etc/network/interfaces

iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.254