summaryrefslogtreecommitdiff
path: root/vimwiki/Network Manager from CLI.md
blob: 902cfdfbd887851f0ef9910cc2895a0b4d301964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[Full](Full) article go [here:](https://arstechnica.com/civis/viewtopic.php?t=1163023)

* To see the status of a connection:

	`# nmcli con status id 'Wired connection 1'`

* To bring down the interface and disconnect:

	`# nmcli con down id 'Wired connection 1'`
	`# nmcli dev disconnect iface eth0`

* to bring it back up:

	`# nmcli con up id 'Wired connection 1'``


* To get syntax reminders:

	`# nmcli help`
	`# nmcli con help`
	`# nmcli dev help`

* Import OpenVPN config from CLI

	`# sudo nmcli connection import type openvpn file OpenVPNFile-config.ovpn`

* To see a list of wireless APs

 	`# sudo nmcli device wifi rescan`
	`# sudo nmcli device wifi list`

* To conncect to wireless AP

	`# sudo nmcli device wifi connect {SSID-Name} password {password}`

* If Network manager is running but having problems connecting to wireless AP,
  stop the nm-watcher service.  This script is taken from the nm-examples man
  page and checks to make sure that the ethernet connection goes down when a
  wifi connection is sought.