You have installed CentOS and now you’d like to either change the IP address or add additional LAN cards (NIC). 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.
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
[or]
# ip addr add 192.168.0.10 dev eth0

4 Comments » 
