Nmcli: Difference between revisions

From DWIKI
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
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://www.tecmint.com/configure-network-connections-using-nmcli-tool-in-linux/
*https://www.tecmint.com/configure-network-connections-using-nmcli-tool-in-linux/


Line 6: 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"