Nmcli: Difference between revisions
From DWIKI
m (→Links) |
mNo edit summary |
||
Line 1: | Line 1: | ||
=Examples= | =Examples= | ||
==Show connection names== | |||
nmcli connection show | |||
First field is connection name, eg "System eth0" | |||
=Links= | =Links= | ||
*[https://people.freedesktop.org/~lkundrak/nm-docs/nmcli-examples.html nmcli examples] | *[https://people.freedesktop.org/~lkundrak/nm-docs/nmcli-examples.html nmcli examples] | ||
Line 7: | Line 12: | ||
==Set nameservers== | ==Set nameservers== | ||
nmcli con mod ens01 ipv4.dns "127.0.0.1 192.168.12.6 62.212.131.101" | nmcli con mod ens01 ipv4.dns "127.0.0.1 192.168.12.6 62.212.131.101" | ||
==Disable ipv6== | |||
For example when getting errors about '''do-add-ip6-address''' | |||
nmcli device modify eth0 ipv6.method "disabled" |
Latest revision as of 12:40, 3 October 2023
Examples
Show connection names
nmcli connection show
First field is connection name, eg "System eth0"
Links
Set nameservers
nmcli con mod ens01 ipv4.dns "127.0.0.1 192.168.12.6 62.212.131.101"
Disable ipv6
For example when getting errors about do-add-ip6-address
nmcli device modify eth0 ipv6.method "disabled"