主机名配置
#cat /etc/host
127.0.0.1 localhost.localdomain localhost
192.168.100.8
#>/etc/resolv.conf
IP配置
vi /etc/sysconfig/network-scripts/ifcfg-eth*
# ifdown eth0 #关闭网络
# ifup eth0 #启动网络
或者 service Network restart
查看路由
netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0