记录一下我的CentOS网络配置,以方便下次配置
vi /etc/sysconfig/network-scripts/ifcfg-eth1
 
DEVICE=eth0
BOOTPROTO=static
BROADCAST=255.255.255.255
IPADDR=10.17.202.7
NETMASK=255.255.254.0
TYPE=Ethernet
GATEWAY=10.17.203.254
ONBOOT=yes
HWADDR=08:00:27:3f:76:e2
 
配置DNS
vi /etc/resolv.conf
nameserver 8.8.8.8    #google dns
nameserver 208.67.222.222 #open dns
nameserver 208.67.220.220 #open dns