How to set up static IP for Centos (Redhat) server
1, use setup command:
setup
then edit network configuration
2, or manual configuration:
cd /etc/sysconfig/network-scripts
vi ifcfg-eth0
edit the file
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
HWADDR=00:22:19:58:c2:f4
TYPE=Ethernet
NETMASK=255.255.255.248
IPADDR=xxx.xxx.xxx.xxx
GATEWAY=xxx.xxx.xxx.xxx
3, Edit DNS server information
vi /etc/resolv.conf
search com
nameserver 205.134.190.4
nameserver 205.134.162.20
