nmcli

Posted eiguleo

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nmcli相关的知识,希望对你有一定的参考价值。

 

 

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的主要内容,如果未能解决你的问题,请参考以下文章