network interface configuration in CentOS

network config files are located in

/etc/sysconfig/network-scripts/

cat /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=”eth0″
BOOTPROTO=”none”
IPADDR=”192.168.0.2″
NETMASK=”255.255.255.0″
GATEWAY=”192.168.0.1″
HWADDR=”51:57:00:cd:a8:23″
NM_CONTROLLED=”yes”
ONBOOT=”yes”
TYPE=”Ethernet”
UUID=”xxxxxx-xxxx-xxxx-xxx-xxxxxxx”

Leave a Reply

Your email address will not be published. Required fields are marked *