其他分享
首页 > 其他分享> > nmcli

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

标签:1.1,nmcli,ipv4,dns,13.2,con
来源: https://www.cnblogs.com/eiguleo/p/11406429.html