Centos - Linux network settings Command lines
- ifconfig -a
- vi /etc/sysconfig/network-scripts/ifcfg-eth0
DHCPCLASS=
IPADDR=192.168.1.100
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=STATIC
- vi /etc/sysconfig/network
Ensure GATEWAY=192.168.1.1 has been set
- vi /etc/resolv.conf
nameserver 8.8.8.
nameserver 8.8.4.4
- /etc/init.d/network restart
No comments