linux修改完DNS后,进行重启

SuSe 2016-12-06

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

相关推荐

oLeiShen / 0评论 2020-05-26