linux修改完DNS后,进行重启
[root@test logs]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
UUID=25f9c322-4990-4b46-bb4c-00f15fc82502
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=00:50:56:94:5F:3F
IPADDR=172.16.10.28
PREFIX=24
GATEWAY=172.16.10.1
DNS1=114.114.114.114
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
--重启网卡
service network restart
标签:network,重启,172.16,DNS,linux,yes,eth0 From: https://blog.51cto.com/u_16071779/6190720