静态IP配置
vim /etc/sysconfig/network-script/ifcfg-eno1
修改BOOTPROTO=static和ONBOOT=yes
设置DNS
vim /etc/resolv.conf
加入两行
nameserver 223.5.5.5
nameserver 8.8.8.8
保存后
重启网络
systemctl restart network
vim /etc/sysconfig/network-script/ifcfg-eno1
修改BOOTPROTO=static和ONBOOT=yes
vim /etc/resolv.conf
加入两行
nameserver 223.5.5.5
nameserver 8.8.8.8
保存后
systemctl restart network
本文标题:CentOS网络配置-静态IP和DNS
本文链接:https://www.haomeiwen.com/subject/uwolbqtx.html
网友评论