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

[[email protected] ~]# nmcli connection show con-huzh-n3 | grep ipv4ipv4.method: manualipv4.dns: 1.1.13.2ipv4.dns-search:ipv4.addresses: { ip = 1.1.13.6/24, gw = 1.1.13.2 }ipv4.routes:ipv4.ignore-auto-routes: noipv4.ignore-auto-dns: noipv4.dhcp-client-id: --ipv4.dhcp-send-hostname: yesipv4.dhcp-hostname: --ipv4.never-default: noipv4.may-fail: yes

相关文章
相关标签/搜索