Wifi: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
<source lang="bash"> |
<source lang="bash"> |
||
sudo iwlist scan |
sudo iwlist scan |
||
sudo iw dev wlan0 scan |
sudo iw dev wlan0 scan # wlan0 or wlp1s0 or ... |
||
</source> |
</source> |
||
* <tt>[[Linux Commands#rfkill|rfkill]]</tt>, show state of RF SW/HW kill switch (WiFi / BT / ...) |
* <tt>[[Linux Commands#rfkill|rfkill]]</tt>, show state of RF SW/HW kill switch (WiFi / BT / ...) |
||
<source lang="bash">rfkill list all</source> |
<source lang="bash">rfkill list all</source> |
||
If using Network Manager: |
|||
<source lang="bash"> |
|||
nmcli connection show |
|||
# NAME UUID TYPE DEVICE |
|||
# testing 1eba2547-2cc2-4785-9288-f205aa6f533d wifi wlp1s0 |
|||
nmcli connection show "testing" |
|||
nmcli -f GENERAL,WIFI-PROPERTIES dev show wlp1s0 |
|||
</source> |
|||
== Utilities == |
|||
=== Wavemon === |
|||
See [[Linux commands]]. |
|||
== Troubleshoot wifi == |
== Troubleshoot wifi == |
||
Line 18: | Line 32: | ||
lsusb # if wifi usb device |
lsusb # if wifi usb device |
||
lspci # if wifi pci device |
lspci # if wifi pci device |
||
lspci | egrep -i 'wifi|wlan|wireless' |
|||
# Check if device has an interface |
# Check if device has an interface |
||
Line 25: | Line 40: | ||
ifconfig |
ifconfig |
||
# Check signal quality |
|||
sudo iwconfig wlp1s0|grep -i quality |
|||
# Link Quality=52/70 Signal level=-58 dBm |
|||
nmcli dev wifi |
|||
# IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY |
|||
# testing Infra 13 270 Mbit/s 70 ▂▄▆_ WPA2 |
|||
watch -n 1 cat /proc/net/wireless |
|||
# Inter-| sta-| Quality | Discarded packets | Missed | WE |
|||
# face | tus | link level noise | nwid crypt frag retry misc | beacon | 22 |
|||
# wlp1s0: 0000 52. -58. -256 0 0 0 0 182 0 |
|||
</source> |
</source> |
||
Revision as of 16:48, 10 June 2019
Commands
- iwconfig, get information or configure a wireless network interface
sudo iwconfig # Get information
sudo iwconfig wlan0 # Configure
- iwlist, get more detailed wireless information from a wireless interface
sudo iwlist scan
sudo iw dev wlan0 scan # wlan0 or wlp1s0 or ...
- rfkill, show state of RF SW/HW kill switch (WiFi / BT / ...)
rfkill list all
If using Network Manager:
nmcli connection show
# NAME UUID TYPE DEVICE
# testing 1eba2547-2cc2-4785-9288-f205aa6f533d wifi wlp1s0
nmcli connection show "testing"
nmcli -f GENERAL,WIFI-PROPERTIES dev show wlp1s0
Utilities
Wavemon
See Linux commands.
Troubleshoot wifi
# Check device
lsusb # if wifi usb device
lspci # if wifi pci device
lspci | egrep -i 'wifi|wlan|wireless'
# Check if device has an interface
iwconfig
# Check status interfaces
ifconfig
# Check signal quality
sudo iwconfig wlp1s0|grep -i quality
# Link Quality=52/70 Signal level=-58 dBm
nmcli dev wifi
# IN-USE SSID MODE CHAN RATE SIGNAL BARS SECURITY
# testing Infra 13 270 Mbit/s 70 ▂▄▆_ WPA2
watch -n 1 cat /proc/net/wireless
# Inter-| sta-| Quality | Discarded packets | Missed | WE
# face | tus | link level noise | nwid crypt frag retry misc | beacon | 22
# wlp1s0: 0000 52. -58. -256 0 0 0 0 182 0
Wifi is either controlled by NetworkManager or via the command line.
- NetworkManager
- Command file
- See file /etc/network/interfaces. See man page
man interfaces
- For WPA, see file /etc/wpa_supplicant/wpa_supplicant.conf.
- Miscellaneous
|
|
- See Common Issues