Warning: mkdir() [function.mkdir]: Permission denied in /home/fromg/public_html/z-enclave.com/wp-content/plugins/enable-latex/core.class.php on line 460

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

Centos, Linux, Operating System

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.

Leave Comment

(required)

(required)