How to change IP address on Linux server

1. IP
/etc/sysconfig/network-scripts/ifcfg-eth0

2. DNS
/etc/resolv.conf
/etc/hosts

3. Router
/etc/sysconfig/network

4. Restart the network
/etc/rc.d/init.d/network restart

Tags: Server Linux ip