linux里配置静态ip

[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-ens32(网卡)

BOOTPROTO=static

删除UUID

ONBOOT=yes

IPADDR=__.__.__.__

NETMASK=__.__.__.__

GATEWAY=__.__.__.__

DNS1=__.__.__.__202.106.0.20 北京通用

保存退出

[root@localhost ~]# systemctl restart network 刷新一下

posted @ 2019-08-02 10:07  IT民工9527  阅读(111)  评论(0编辑  收藏  举报