LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nmcli-networking

controls the overall networking state managed by NetworkManager

TLDR

Show the networking status of NetworkManager
$ nmcli networking
copy
Enable or disable networking and all interfaces managed by NetworkManager
$ nmcli networking [on|off]
copy
Show the last known connectivity state
$ nmcli networking connectivity
copy
Show the current connectivity state (performs a check)
$ nmcli networking connectivity check
copy

SYNOPSIS

nmcli networking [command]

DESCRIPTION

nmcli networking controls the overall networking state managed by NetworkManager. It provides a master switch to enable or disable all network interfaces at once.The connectivity states are:- full: Connected with full internet access- limited: Connected to a network but no internet (captive portal, firewall)- portal: Behind a captive portal requiring login- none: No network connectionThe connectivity check actively probes connectivity by accessing a known URL, while without "check" it reports the cached state from the last probe.

PARAMETERS

on

Enable networking and all NetworkManager-managed interfaces
off
Disable networking and deactivate all connections
connectivity
Show connectivity state without performing a check
connectivity check
Perform a connectivity check and show the result

CAVEATS

Disabling networking affects all NetworkManager-managed connections but not interfaces managed by other tools. The connectivity check depends on network accessibility to connectivity check servers (configurable in NetworkManager.conf). Some networks block these probes.

SEE ALSO

Copied to clipboard
Kai