Home > CentOS > Configure Network Interface Card on CentOS

DHCP:

vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=dhcp
ONBOOT=yes

/etc/init.d/network restart

Static IP:

vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=none
ONBOOT=yes
IPADDR=192.168.1.10
NETWORK=192.168.1.0
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

/etc/init.d/network restart



Flag Counter