Show IP Address
#ifconfig
ens33: ( ethernet network service ) 33 is ID number.
lo : loopback network .
Configure IP Address
#vi /etc/sysconfig/network-scripts/ifcfg-eth33
BOOTPROTO=static
IPADDR=192.168.1.2
NETWORK=255.255.255.0
GATEWAY=192.168.1.1
#vi /etc/resolv.conf
Nameserver 8.8.8.8
#ping google.com
#nslookup (yum -y install bind-utils)
Configure/Verify local DNS Name
#vi /etc/hosts
192.168.1.2 centos.test.local
#ping centos.test.local
Configure/Verify Hostname
#hostname centos
#hostname
Restart Service
#service network restart
EmoticonEmoticon