首页 > Web开发 > 详细

CentOS7 Network Setting

时间:2019-07-21 23:37:47      阅读:206      评论:0      收藏:0      [点我收藏+]

#display devices
[root@localhost ~]# nmcli d

#set ipv4 address
[root@localhost ~]# nmcli c modify eth0 ipv4.address 192.168.100/24

#ip default gateway
[root@localhost ~]# nmcli c modify eth0 ipv4.gateway 192.168.1.1

#set static for static setting (it‘s "auto" for DHCP)
[root@localhost ~]# nmcli c modify eth0 ipv4.method manual

#restart the interface and reload the setting
[root@localhost ~]# nmcli c down enp0s3; nmcli c up enp0s3

#show setting
[root@localhost ~]# nmcli d show enp0s3

#show status
[root@localhost ~]# ip add show

CentOS7 Network Setting

原文:https://www.cnblogs.com/cnxiaol/p/11222971.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!