← 返回命令列表

Linux command

NetworkManager 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show connection status

nmcli general status

List connections

nmcli connection show

Connect to WiFi

nmcli device wifi connect "[SSID]" password "[password]"

Show WiFi networks

nmcli device wifi list

Bring up connection

nmcli connection up [connection_name]

Create static connection

nmcli connection add type ethernet con-name [myeth] ifname [eth0] ip4 [192.168.1.10/24] gw4 [192.168.1.1]

说明

NetworkManager is a daemon that manages network connections. It provides automatic network detection and configuration, handling wired, wireless, mobile broadband, and VPN connections. NetworkManager is controlled via nmcli, nmtui, or GUI applets.

参数

--debug
Debug mode.
--log-level _level_
Logging level.
--log-domains _domains_
Logging domains.
--pid-file _file_
PID file location.

FAQ

What is the NetworkManager command used for?

NetworkManager is a daemon that manages network connections. It provides automatic network detection and configuration, handling wired, wireless, mobile broadband, and VPN connections. NetworkManager is controlled via nmcli, nmtui, or GUI applets.

How do I run a basic NetworkManager example?

Run `nmcli general status` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --debug do in NetworkManager?

Debug mode.