码迷,mamicode.com
首页 > 系统相关 > 详细

linux里配置静态ip

时间:2019-08-02 10:33:56      阅读:104      评论:0      收藏:0      [点我收藏+]

标签:sysconfig   配置   通用   localhost   linux   static   roo   lin   work   

[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 刷新一下

linux里配置静态ip

标签:sysconfig   配置   通用   localhost   linux   static   roo   lin   work   

原文地址:https://www.cnblogs.com/zhiyuan-yu/p/11286913.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!