How to configure network interfaces in CentOS (static ip) 
//edit interface configuration file
sudo vim /etc/sysconfig/network-scripts/ifcfg-eth0

//set settings
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:05:29:E0:4F:3D
IPADDR=10.0.1.10
NETMASK=255.255.255.0
GATEWAY=10.0.1.1
DNS1=4.2.2.2
DNS2=4.2.2.1
ONBOOT=yes
TYPE=Ethernet


Comments
Comments are not available for this entry.
2024 By Angel Cool