centos7 设置静态Ip及dns

首先cd /etc/sysconfig/network-scripts/

底下那四行改下~

如果BOOTPROTO=static没改也请改下

然后systemctl restart network.service 重启网络服务

这个重启和centos6不一样

然后我这差不多就行了

不知道您哪行不行

猜你喜欢

转载自java-doom.iteye.com/blog/2400834