码迷,mamicode.com
首页 > 其他好文 > 详细

nmcli

时间:2019-08-25 00:36:09      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:connect   method   sse   show   eth   local   dns   ddr   gre   

 

 

nmcli connection add type ethernet autoconnect yes con-name con-huzh-n3 ifname eno16777728 ip4 1.1.13.6/24 gw4 1.1.13.2

nmcli connection modify con-huzh-n3 ipv4.method manual ipv4.ignore-auto-dns yes ipv4.dns 1.1.13.2

[root@localhost ~]# nmcli connection show con-huzh-n3 | grep ipv4
ipv4.method: manual
ipv4.dns: 1.1.13.2
ipv4.dns-search:
ipv4.addresses: { ip = 1.1.13.6/24, gw = 1.1.13.2 }
ipv4.routes:
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.never-default: no
ipv4.may-fail: yes

nmcli

标签:connect   method   sse   show   eth   local   dns   ddr   gre   

原文地址:https://www.cnblogs.com/eiguleo/p/11406429.html

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