This tutorial is intended for system administrators wanting to either change the IP address or add additional LAN cards (NIC) on their CentOS 5 system. There are a couple of ways to configure the network card using the command line but only some commands will take immediate effect on kernel. If you are doing this remotely remember that you will lose connectivity or if your configuration on your network is incorrect be unable to connect.
Configure network with immediate effect
Using a single command line to configure the network
# ifconfig eth0 192.168.0.10 netmask 255.255.255.0
# ip addr add 192.168.0.10 dev eth0