From Fedora Project Wiki
Description
This test case cover Network Manager configuration via nmcli.
Setup
Have LAN connection available, preferably with IPv4/IPv6 dualstack support.
How to test
- Run
nmcli nm status
to get actual Network Manager state. Disable and re-enable wireless using GUI and hardware switch. - Disable and re-enable wireless using
nmcli nm wlan off
andnmcli nm wlan on
. - Run
nmcli con list
to get informations about connections. - Activate connection using:
nmcli con up id "NAME
and deactivate using:nmcli con down id "NAME
- Run
nmcli dev status
to show current interfaces status and compare it withip link
. Try disconnect and reconnect interfaces in random. - Get list of available wireless networks
nmcli dev wifi list
- Connect to open, WEP or WPA-PSK wireless network using:
nmcli dev wifi connect 'SSID' password 'password' wep-key-type key
and disconnect using:nmcli dev disconnect iface wlan0
Expected Results
nmcli nm status
should inform about actual Network Manager state. "WIFI" should reflect GUI status and "WIFI-HARDWARE" hardware status.- Check if wireless is disabled and re-enabled using
ip link
andiwconfig
commands. nmcli con list
should show correct "NAME and "TYPE", compare it with your desktop GUI.- Connection can be activated and deactivated properly.
- "nmcli" and "ip" interfaces state should match. "nmcli" should inform correctly about interfaces state.
- Compare results with
iwlist scan
command. "nmcli" should provide same informations. - You can successfully connect and disconnect from wireless network.