/etc/sysconfig/network-scripts/ifcfg-eth0文件做如下修改

DEVICE=eth0
HWADDR=08:00:27:46:1D:E1
TYPE=Ethernet
UUID=f9567453-da1e-497b-a493-a44292ec8ad6
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static
IPADDR=192.168.1.197
GATEWAY=192.168.1.1
NETMASK=255.255.255.0
DNS1=114.114.114.114
 
注: DNS1需要大写,小写不起作用
posted on 2017-02-15 10:20  shen1hua  阅读(152)  评论(0编辑  收藏  举报