I would like to connect to a wireless example network (lets assume no encryption, in order to make explanations easier) via command-line.
I use to perform this procedure:
$ nmcli con
NAME UUID TYPE TIME Wireless-1 28d6c265-xxxx-4e83-907f-ecb5ab3ac37c 802-11-wireless Thu Wired-Network 30d29da3-xxxx-4ea2-94ff-0edac8954ff7 802-3-ethernet Sun
So, I try with:
$ nmcli con up uuid 28d6c265-xxxx-4e83-907f-ecb5ab3ac37c
But this method starts DHCP autoconfig, and I would like to manually config my network (for auditing matters), perform
If I shutdown
network-manager service, both wireless connection routines and DHCP are disabled.
How could I connect (associate) to a Wireless network without IP autoconfig routines start?
- Command-line methods are preferred. GUI accepted.
- In my example there is no encryption (WPA nor WEP). I don't know if the procedure depends on this feature.
- I use to work with Ubuntu 16.04, Kali (recent as for June 2017), Raspbyan, Ubuntu Mate and Mint. If possible, generic answer for most Linux distros are preferred.
- No need for
nmcliexplicitly. Any other tool could be used, but GPL open source preferred when possible.