Centos Ethernet Configuration Part #1
Problem statement
Configure ethernet interface eth0 with static IP address=192.168.20.100 and default gateway IP=192.168.20.1
Solution/Steps
STEP #1
Edit /etc/sysconfig/network-scripts/ifcfg-eth0 so it reads as follows
BOOTPROTO=none
DEVICE=eth0
IPADDR=192.168.20.100
NETMASK=255.255.255.0
GATEWAY=192.168.20.1
ONBOOT=yes
STEP #2
Activate your changes by executing the scripts that follow
ifdown eth0; ifup eth0
I hope this helps. Regards – Z
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.



