nmcli: add more server examples (#3816)

This commit is contained in:
Lukáš Zapletal
2020-03-06 18:10:05 +01:00
committed by GitHub
parent 2f24ed9b74
commit e54c562361
3 changed files with 50 additions and 16 deletions

View File

@@ -2,26 +2,18 @@
> A command line tool for controlling NetworkManager.
- List all NetworkManager connections (shows name, uuid, type and device):
- Check the nmcli version:
`nmcli connection`
`nmcli --version`
- Print the available Wi-Fi access points:
- Call general help:
`nmcli device wifi`
`nmcli --help`
- Connect to the Wi-Fi network with a specified name and password:
- Call help on a command:
`nmcli device wifi connect {{name}} password {{password}}`
`nmcli {{command}} --help`
- Activate a connection by specifying an uuid:
- Execute an `nmcli` command:
`nmcli connection up uuid {{uuid}}`
- Deactivate a connection:
`nmcli connection down uuid {{uuid}}`
- Print statuses of network interfaces:
`nmcli device status`
`nmcli {{command}}`