Linux WiFi Command Line Tools

Praktische Befehle und Tools auf der Kommandozeile für Wireless-Netzwerke

Pakete nachinstallieren

apt update && apt install network-manager iw wireless-tools wavemon horst

Grafische Werkzeuge

apt install linssid

Hardware anzeigen

lspci -k
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
        Subsystem: Intel Corporation WM3945ABG MOW2
        Kernel driver in use: iwl3945
        Kernel modules: iwl3945
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller (rev 20)
        Subsystem: Uniwill Computer Corp 88E8053 PCI-E Gigabit Ethernet Controller
        Kernel driver in use: sky2
        Kernel modules: sky2
lshw -C network
  *-network
       description: Ethernet interface
       product: 88E8053 PCI-E Gigabit Ethernet Controller
       vendor: Marvell Technology Group Ltd.
       physical id: 0
       bus info: pci@0000:04:00.0
       logical name: enp4s0
       version: 20
       serial: 00:00:00:00:00:00
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm vpd msi pciexpress bus_master cap_list rom ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=sky2 driverversion=1.30 duplex=full ip=192.168.0.10 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:24 memory:febfc000-febfffff ioport:e800(size=256) memory:febc0000-febdffff
  *-network
       description: Wireless interface
       product: PRO/Wireless 3945ABG [Golan] Network Connection
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlp3s0
       version: 02
       serial: 00:00:00:00:00:00
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwl3945 driverversion=4.19.0-13-686-pae firmware=15.32.2.9 ip=10.10.10.100 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:26 memory:feaff000-feafffff
  *-network:0
       description: Wireless interface
       physical id: 1
       bus info: usb@3:1
       logical name: wlx333333333333
       serial: 00:00:00:00:00:00
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192cu driverversion=4.19.0-13-686-pae firmware=N/A link=no multicast=yes wireless=IEEE 802.11

Interfaces

ifconfig
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.10  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::0000:0000:0000:0000  prefixlen 64  scopeid 0x20<link>
        ether 00:00:00:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 260153  bytes 28200980 (26.8 MiB)
        RX errors 0  dropped 3  overruns 0  frame 0
        TX packets 255945  bytes 177473672 (169.2 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 16

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Lokale Schleife)
        RX packets 952  bytes 76834 (75.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 952  bytes 76834 (75.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.10.100  netmask 255.255.192.0  broadcast 10.10.10.255
        inet6 fe80::000:0000:0000:0000  prefixlen 64  scopeid 0x20<link>
        ether 00:00:00:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 4620  bytes 3765179 (3.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5248  bytes 679580 (663.6 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx333333333333: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 00:00:00:00:00:00  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
nmcli
enp4s0: verbunden to Kabelgebundene Verbindung 1
        "Marvell 88E8053"
        ethernet (sky2), 00:00:00:00:00:00, hw, mtu 1500
        ip4-Vorgabe
        inet4 192.168.0.10/24
        route4 0.0.0.0/0
        route4 192.168.0.0/24
        inet6 fe80::0000:0000:0000:0000/64
        route6 fe80::/64
        route6 ff00::/8

wlp3s0: verbunden to UPC Wi-Free
        "Intel PRO/Wireless 3945ABG"
        wifi (iwl3945), 00:00:00:00:00:00, hw, mtu 1500
        inet4 10.10.10.100/18
        route4 0.0.0.0/0
        route4 10.10.10.0/18
        inet6 fe80::0000:0000:0000:0000/64
        route6 fe80::/64
        route6 ff00::/8

wlx333333333333: nicht verbunden
        "Edimax EW-7811Un"
        1 Verbindung verfügbar
        wifi (rtl8192cu), 00:00:00:00:00:00, hw, mtu 1500

lo: nicht verwaltet
        "lo"
        loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536

DNS configuration:
        servers: 192.168.0.20 192.168.0.30
        interface: enp4s0

        servers: 195.34.133.21 212.186.211.21
        interface: wlp3s0
nmcli device show
nmcli device show <interface>
nmcli device show wlp3s0
GENERAL.DEVICE:                         wlp3s0
GENERAL.TYPE:                           wifi
GENERAL.HWADDR:                         01:02:03:04:05:06
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (verbunden)
GENERAL.CONNECTION:                     UPC Wi-Free
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/8
IP4.ADDRESS[1]:                         10.10.10.100/18
IP4.GATEWAY:                            10.10.10.1
IP4.ROUTE[1]:                           dst = 0.0.0.0/0, nh = 10.43.0.1, mt = 600
IP4.ROUTE[2]:                           dst = 10.10.10.0/18, nh = 0.0.0.0, mt = 600
IP4.DNS[1]:                             195.34.133.21
IP4.DNS[2]:                             212.186.211.21
IP6.ADDRESS[1]:                         fe80::000:0000:0000:0000/64
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 600
IP6.ROUTE[2]:                           dst = ff00::/8, nh = ::, mt = 256, table=255
nmcli -f GENERAL,WIFI-PROPERTIES dev show <interface>
nmcli -f GENERAL,WIFI-PROPERTIES dev show wlp3s0
GENERAL.DEVICE:                         wlp3s0
GENERAL.TYPE:                           wifi
GENERAL.NM-TYPE:                        NMDeviceWifi
GENERAL.VENDOR:                         Intel Corporation
GENERAL.PRODUCT:                        PRO/Wireless 3945ABG [Golan] Network Connection (WM3945ABG MOW2)
GENERAL.DRIVER:                         iwl3945
GENERAL.DRIVER-VERSION:                 4.19.0-13-686-pae
GENERAL.FIRMWARE-VERSION:               N/A
GENERAL.HWADDR:                         01:02:03:04:05:06
GENERAL.MTU:                            1500
GENERAL.STATE:                          100 (verbunden)
GENERAL.REASON:                         0 (Kein Grund angegeben)
GENERAL.UDI:                            /sys/devices/pci0000:00/0000:00:1c.2/0000:03:00.0/net/wlp3s0
GENERAL.IP-IFACE:                       wlp3s0
GENERAL.IS-SOFTWARE:                    nein
GENERAL.NM-MANAGED:                     ja
GENERAL.AUTOCONNECT:                    ja
GENERAL.FIRMWARE-MISSING:               nein
GENERAL.NM-PLUGIN-MISSING:              nein
GENERAL.PHYS-PORT-ID:                   --
GENERAL.CONNECTION:                     UPC Wi-Free
GENERAL.CON-UUID:                       00000000-0000-0000-0000-000000000000
GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/8
GENERAL.METERED:                        nein (geraten)
WIFI-PROPERTIES.WEP:                    ja
WIFI-PROPERTIES.WPA:                    ja
WIFI-PROPERTIES.WPA2:                   ja
WIFI-PROPERTIES.TKIP:                   ja
WIFI-PROPERTIES.CCMP:                   ja
WIFI-PROPERTIES.AP:                     nein
WIFI-PROPERTIES.ADHOC:                  ja
WIFI-PROPERTIES.2GHZ:                   ja
WIFI-PROPERTIES.5GHZ:                   ja
iw dev
phy#3
        Interface wlx333333333333
                ifindex 7
                wdev 0x300000001
                addr 01:02:03:04:05:06
                type managed
                txpower 20.00 dBm
phy#0
        Interface wlp3s0
                ifindex 4
                wdev 0x1
                addr 06:05:04:03:02:01
                ssid UPC Wi-Free
                type managed
                channel 11 (2462 MHz), width: 20 MHz (no HT), center1: 2462 MHz
                txpower 15.00 dBm

Interne WLAN-Adapter

Die fix im Laptop eingebauten WLAN-Adapter

lspci | egrep -i --color 'intel|broadcom'
lspci | egrep -i --color 'wifi|wlan|wireless'
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)

Hersteller- und Produktcode

lspci -n -s 03:00.0
03:00.0 0280: 8086:4222 (rev 02)

0280 … Netzwerkkarte
8086:4222 … Intel

Chipset

lspci -vv -s 03:00.0
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
        Subsystem: Intel Corporation WM3945ABG MOW2
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 32 bytes
        Interrupt: pin A routed to IRQ 26
        Region 0: Memory at feaff000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: [c8] Power Management version 2
                Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 0000000000000000  Data: 0000
        Capabilities: [e0] Express (v1) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <512ns, L1 unlimited
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE- FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
                        MaxPayload 128 bytes, MaxReadReq 128 bytes
                DevSta: CorrErr- UncorrErr+ FatalErr- UnsuppReq+ AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <128ns, L1 <64us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Capabilities: [100 v1] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                AERCap: First Error Pointer: 14, GenCap- CGenEn- ChkCap- ChkEn-
        Capabilities: [140 v1] Device Serial Number 00-01-02-03-04-05-06-07
        Kernel driver in use: iwl3945
        Kernel modules: iwl3945

Kerneltreiber

modinfo iwl3945
filename:       /lib/modules/4.19.0-13-686-pae/kernel/drivers/net/wireless/intel/iwlegacy/iwl3945.ko
firmware:       iwlwifi-3945-2.ucode
license:        GPL
author:         Copyright(c) 2003-2011 Intel Corporation <[email protected]>
version:        in-tree:s
description:    Intel(R) PRO/Wireless 3945ABG/BG Network Connection driver for Linux
srcversion:     00000000000000000000000
alias:          pci:v00000000000000000sv*sd*bc*sc*i*
alias:          pci:v00000000000000000sv*sd*bc*sc*i*
alias:          pci:v00000000000000000sv*sd00000000bc*sc*i*
alias:          pci:v00000000000000000sv*sd00000000bc*sc*i*
alias:          pci:v00000000000000000sv*sd00000000bc*sc*i*
alias:          pci:v00000000000000000sv*sd00000000bc*sc*i*
depends:        iwlegacy,mac80211,cfg80211
retpoline:      Y
intree:         Y
name:           iwl3945
vermagic:       4.19.0-13-686-pae SMP mod_unload modversions 686
sig_id:         PKCS#7
signer:         Debian Secure Boot CA
sig_key:        B5:5E:B3:B9
sig_hashalgo:   sha256
signature:      AE:C7:3C:61:58:CA:EF:7F:8E:F3:FE:0A:E1:17:2A:EC:D4:FA:72:1F:
                DC:27:6C:7C:C7:ED:D8:72:50:E8:AC:7D:B7:CA:03:CA:67:9B:D0:E1:
                B7:68:AE:62:03:E4:EA:FF:97:D1:DD:8F:38:D1:B5:B3:70:D0:44:2D:
                20:75:28:88:42:16:78:73:7A:92:2C:40:69:87:F0:66:35:44:EB:51:
                D8:8C:48:0D:4F:31:44:63:40:5A:1A:F1:F9:11:14:D2:F2:C8:49:57:
                71:5E:61:A3:9C:A0:DC:15:E8:03:19:30:88:C7:47:64:31:30:F7:C2:
                A9:93:BA:CC:EB:A3:B2:29:B3:01:7C:52:17:E4:4D:13:FC:48:0A:42:
                37:61:8D:C6:37:71:C8:B0:CA:89:3A:81:29:94:77:5E:31:5D:E4:FA:
                63:09:2D:1F:90:8A:B2:32:70:BA:AB:FB:6F:D6:FA:44:5E:FF:73:40:
                BF:80:60:87:BE:1B:F3:C8:1F:E6:F5:42:86:B0:71:9F:8D:26:4F:A9:
                D9:D5:40:75:D1:04:99:F2:85:A4:BD:D8:1F:8D:EB:86:1E:84:10:4B:
                03:E6:EA:11:26:B3:E0:03:9D:23:7D:01:F7:98:57:B6:8B:33:61:90:
                B5:EA:A1:24:46:D6:EA:6A:AB:AA:42:BF:D3:96:1B:C3
parm:           antenna:select antenna (1=Main, 2=Aux, default 0 [both]) (int)
parm:           swcrypto:using software crypto (default 1 [software]) (int)
parm:           disable_hw_scan:disable hardware scanning (default 1) (int)
parm:           fw_restart:restart firmware in case of error (int)

USB WLAN-Adapter

lsusb | egrep -i --color 'wifi|wlan|wireless'
Bus 003 Device 005: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter

WLAN Interfaces

iwconfig
wlx333333333333  IEEE 802.11  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:off

wlp3s0    IEEE 802.11  ESSID:"UPC Wi-Free"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 01:02:03:04:05:06
          Bit Rate=24 Mb/s   Tx-Power=15 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=31/70  Signal level=-79 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:1   Missed beacon:0

lo        no wireless extensions.

enp4s0    no wireless extensions.
iw dev
phy#3
        Interface wlx333333333333
                ifindex 7
                wdev 0x300000001
                addr 07:08:09:0a:0b:0c
                type managed
                txpower 20.00 dBm
phy#0
        Interface wlp3s0
                ifindex 4
                wdev 0x1
                addr 01:02:03:04:05:06
                ssid UPC Wi-Free
                type managed
                channel 11 (2462 MHz), width: 20 MHz (no HT), center1: 2462 MHz
                txpower 15.00 dBm
iw phy
Wiphy phy3
        max # scan SSIDs: 4
        max scan IEs length: 2257 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        RTS threshold: 2347
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports RSN-IBSS.
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP-128 (00-0f-ac:4)
                * CCMP-256 (00-0f-ac:10)
                * GCMP-128 (00-0f-ac:8)
                * GCMP-256 (00-0f-ac:9)
                * CMAC (00-0f-ac:6)
                * CMAC-256 (00-0f-ac:13)
                * GMAC-128 (00-0f-ac:11)
                * GMAC-256 (00-0f-ac:12)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * AP/VLAN
                 * monitor
                 * mesh point
                 * P2P-client
                 * P2P-GO
        Band 1:
                Capabilities: 0x186e
                        HT20/HT40
                        SM Power Save disabled
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 7935 bytes
                        DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT Max RX data rate: 150 Mbps
                HT TX/RX MCS rate indexes supported: 0-7, 32
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps
                        * 5.5 Mbps
                        * 11.0 Mbps
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * new_station
                 * new_mpath
                 * set_mesh_config
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * join_mesh
                 * remain_on_channel
                 * set_tx_bitrate_mask
                 * frame
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * probe_client
                 * set_noack_map
                 * register_beacons
                 * start_p2p_device
                 * set_mcast_rate
                 * connect
                 * disconnect
                 * set_qos_map
                 * set_multicast_to_unicast
        Supported TX frame types:
                 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0x40 0xb0 0xc0 0xd0
                 * managed: 0x40 0xd0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * mesh point: 0xb0 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * P2P-device: 0x40 0xd0
        software interface modes (can always be added):
                 * AP/VLAN
                 * monitor
        interface combinations are not supported
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports SAE with AUTHENTICATE command
        Device supports low priority scan.
        Device supports scan flush.
        Device supports AP scan.
        Device supports per-vif TX power setting
        Driver supports full state transitions for AP/GO clients
        Driver supports a userspace MPM
        Device supports configuring vdev MAC-addr on create.
        Supported extended features:
                * [ RRM ]: RRM
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
Wiphy phy0
        max # scan SSIDs: 4
        max scan IEs length: 2285 bytes
        max # sched scan SSIDs: 0
        max # match sets: 0
        max # scan plans: 1
        max scan plan interval: -1
        max scan plan iterations: 0
        Retry short limit: 7
        Retry long limit: 4
        Coverage class: 0 (up to 0m)
        Device supports RSN-IBSS.
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP-128 (00-0f-ac:4)
                * CCMP-256 (00-0f-ac:10)
                * GCMP-128 (00-0f-ac:8)
                * GCMP-256 (00-0f-ac:9)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                 * IBSS
                 * managed
                 * monitor
        Band 1:
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps (short preamble supported)
                        * 5.5 Mbps (short preamble supported)
                        * 11.0 Mbps (short preamble supported)
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 2412 MHz [1] (15.0 dBm)
                        * 2417 MHz [2] (15.0 dBm)
                        * 2422 MHz [3] (15.0 dBm)
                        * 2427 MHz [4] (15.0 dBm)
                        * 2432 MHz [5] (15.0 dBm)
                        * 2437 MHz [6] (15.0 dBm)
                        * 2442 MHz [7] (15.0 dBm)
                        * 2447 MHz [8] (15.0 dBm)
                        * 2452 MHz [9] (15.0 dBm)
                        * 2457 MHz [10] (15.0 dBm)
                        * 2462 MHz [11] (15.0 dBm)
                        * 2467 MHz [12] (15.0 dBm) (no IR)
                        * 2472 MHz [13] (15.0 dBm) (no IR)
        Band 2:
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
                Frequencies:
                        * 5170 MHz [34] (15.0 dBm) (no IR)
                        * 5180 MHz [36] (15.0 dBm)
                        * 5190 MHz [38] (15.0 dBm) (no IR)
                        * 5200 MHz [40] (15.0 dBm)
                        * 5210 MHz [42] (15.0 dBm) (no IR)
                        * 5220 MHz [44] (15.0 dBm)
                        * 5230 MHz [46] (15.0 dBm) (no IR)
                        * 5240 MHz [48] (15.0 dBm)
                        * 5260 MHz [52] (15.0 dBm) (no IR, radar detection)
                        * 5280 MHz [56] (15.0 dBm) (no IR, radar detection)
                        * 5300 MHz [60] (15.0 dBm) (no IR, radar detection)
                        * 5320 MHz [64] (15.0 dBm) (no IR, radar detection)
                        * 5500 MHz [100] (16.0 dBm) (no IR, radar detection)
                        * 5520 MHz [104] (16.0 dBm) (no IR, radar detection)
                        * 5540 MHz [108] (16.0 dBm) (no IR, radar detection)
                        * 5560 MHz [112] (16.0 dBm) (no IR, radar detection)
                        * 5580 MHz [116] (16.0 dBm) (no IR, radar detection)
                        * 5600 MHz [120] (16.0 dBm) (no IR, radar detection)
                        * 5620 MHz [124] (16.0 dBm) (no IR, radar detection)
                        * 5640 MHz [128] (16.0 dBm) (no IR, radar detection)
                        * 5660 MHz [132] (16.0 dBm) (no IR, radar detection)
                        * 5680 MHz [136] (16.0 dBm) (no IR, radar detection)
                        * 5700 MHz [140] (16.0 dBm) (no IR, radar detection)
        Supported commands:
                 * new_interface
                 * set_interface
                 * new_key
                 * start_ap
                 * new_station
                 * new_mpath
                 * set_mesh_config
                 * set_bss
                 * authenticate
                 * associate
                 * deauthenticate
                 * disassociate
                 * join_ibss
                 * join_mesh
                 * set_tx_bitrate_mask
                 * frame
                 * frame_wait_cancel
                 * set_wiphy_netns
                 * set_channel
                 * set_wds_peer
                 * probe_client
                 * set_noack_map
                 * register_beacons
                 * start_p2p_device
                 * set_mcast_rate
                 * connect
                 * disconnect
                 * set_qos_map
                 * set_multicast_to_unicast
        Supported TX frame types:
                 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                 * IBSS: 0x40 0xb0 0xc0 0xd0
                 * managed: 0x40 0xd0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * mesh point: 0xb0 0xc0 0xd0
                 * P2P-client: 0x40 0xd0
                 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * P2P-device: 0x40 0xd0
        software interface modes (can always be added):
                 * monitor
        interface combinations are not supported
        HT Capability overrides:
                 * MCS: ff ff ff ff ff ff ff ff ff ff
                 * maximum A-MSDU length
                 * supported channel width
                 * short GI for 40 MHz
                 * max A-MPDU length exponent
                 * min MPDU start spacing
        Device supports TX status socket option.
        Device supports HT-IBSS.
        Device supports SAE with AUTHENTICATE command
        Device supports low priority scan.
        Device supports scan flush.
        Device supports AP scan.
        Device supports per-vif TX power setting
        Driver supports full state transitions for AP/GO clients
        Driver supports a userspace MPM
        Device supports configuring vdev MAC-addr on create.
        Supported extended features:
                * [ RRM ]: RRM
                * [ FILS_STA ]: STA FILS (Fast Initial Link Setup)
                * [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
                * [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211

Verfügbare Netzwerke

nmcli dev wifi
IN-USE  SSID              MODE   CHAN  RATE        SIGNAL  BARS  SECURITY
        Mein-WLAN         Infra  1     130 Mbit/s  100     ▂▄▆█  WPA2
*       UPC Wi-Free       Infra  11    130 Mbit/s  43      ▂▄__  WPA2 802.1X
        A1-123456         Infra  6     195 Mbit/s  40      ▂▄__  WPA2
        UPC-guest1234567  Infra  11    130 Mbit/s  39      ▂▄__  WPA1 WPA2
        UPC7654321        Infra  1     130 Mbit/s  22      ▂___  WPA1 WPA2
        LTE               Infra  11    195 Mbit/s  19      ▂___  WPA2

Kanäle

iwlist chan
wlx333333333333  13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
wlp3s0    32 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz
          Channel 34 : 5.17 GHz
          Channel 36 : 5.18 GHz
          Channel 38 : 5.19 GHz
          Channel 40 : 5.2 GHz
          Channel 42 : 5.21 GHz
          Channel 44 : 5.22 GHz
          Channel 46 : 5.23 GHz
          Channel 48 : 5.24 GHz
          Channel 52 : 5.26 GHz
          Channel 56 : 5.28 GHz
          Channel 60 : 5.3 GHz
          Channel 64 : 5.32 GHz
          Channel 100 : 5.5 GHz
          Channel 104 : 5.52 GHz
          Channel 108 : 5.54 GHz
          Channel 112 : 5.56 GHz
          Channel 116 : 5.58 GHz
          Channel 120 : 5.6 GHz
          Channel 124 : 5.62 GHz
          Current Frequency=2.462 GHz (Channel 11)

lo        no frequency information.

enp4s0    no frequency information.

WLAN Sniffer

WiFi Netzwerke scannen

iwlist <interface> scanning
iwlist wlp3s0 scanning
wlp3s0  Scan completed :
          Cell 04 - Address: 01:02:03:04:05:06
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=38/70  Signal level=-72 dBm
                    Encryption key:on
                    ESSID:"UPC Wi-Free"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000000000000000
                    Extra: Last beacon: 72ms ago
                    IE: Unknown: 00000000000000000000000000
                    IE: Unknown: 00000000000000000000
                    IE: Unknown: 000000
                    IE: Unknown: 000000
                    IE: Unknown: 000000000000
                    IE: Unknown: 0000000000000000
                    IE: Unknown: 00000000000000000000000000000000000000000000000000000000
                    IE: Unknown: 000000000000000000000000000000000000000000000000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : 802.1x
                    IE: Unknown: 00000000000000000000
                    IE: Unknown: 00000000000000
                    IE: Unknown: 0000000000000000000000000000000000000000000000000000
                    IE: Unknown: 0000000000000000
                    IE: Unknown: 000000000000000000
iw dev <interface> scan
iw dev wlp3s0 scan
BSS 00:00:00:00:00:00(on wlp3s0) -- associated
        TSF: 3602285031247 usec (18d, 14:11:25)
        freq: 2462
        beacon interval: 100 TUs
        capability: ESS Privacy ShortSlotTime (0x0411)
        signal: -77.00 dBm
        last seen: 140 ms ago
        Information elements from Probe Response frame:
        SSID: UPC Wi-Free
        Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
        DS Parameter set: channel 11
        ERP: Barker_Preamble_Mode
        Extended supported rates: 6.0 12.0 24.0 48.0
        Country: EU     Environment: Indoor/Outdoor
                Channels [1 - 13] @ 20 dBm
        HT capabilities:
                Capabilities: 0x1ac
                        HT20
                        SM Power Save disabled
                        RX HT20 SGI
                        TX STBC
                        RX STBC 1-stream
                        Max AMSDU length: 3839 bytes
                        No DSSS/CCK HT40
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 4 usec (0x05)
                HT RX MCS rate indexes supported: 0-15
                HT TX MCS rate indexes are undefined
        HT operation:
                 * primary channel: 11
                 * secondary channel offset: no secondary
                 * STA channel width: 20 MHz
                 * RIFS: 0
                 * HT protection: non-HT mixed
                 * non-GF present: 1
                 * OBSS non-GF present: 0
                 * dual beacon: 0
                 * dual CTS protection: 0
                 * STBC beacon: 0
                 * L-SIG TXOP Prot: 0
                 * PCO active: 0
                 * PCO phase: 0
        RSN:     * Version: 1
                 * Group cipher: TKIP
                 * Pairwise ciphers: CCMP TKIP
                 * Authentication suites: IEEE 802.1X
                 * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
        Extended capabilities:
                 * HT Information Exchange Supported
        BSS Load:
                 * station count: 2
                 * channel utilisation: 75/255
                 * available admission capacity: 31250 [*32us]
        WMM:     * Parameter version 1
                 * BE: CW 15-1023, AIFSN 3
                 * BK: CW 15-1023, AIFSN 7
                 * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
                 * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
        Country: EU     Environment: Indoor/Outdoor
                Channels [1 - 13] @ 16 dBm

Grafisches Tool: LinSSID

Verbindungen

nmcli connection show
nmcli connection show "UPC Wi-Free"

WLAN Konfiguration für UPC Wi-Free mit Linux

connection.id:                          UPC Wi-Free
connection.uuid:                        00000000-0000-0000-0000-000000000000
connection.stable-id:                   --
connection.type:                        802-11-wireless
connection.interface-name:              --
connection.autoconnect:                 ja
connection.autoconnect-priority:        0
connection.autoconnect-retries:         -1 (default)
connection.multi-connect:               0 (default)
connection.auth-retries:                -1
connection.timestamp:                   0000000000
connection.read-only:                   nein
connection.permissions:                 --
connection.zone:                        --
connection.master:                      --
connection.slave-type:                  --
connection.autoconnect-slaves:          -1 (default)
connection.secondaries:                 --
connection.gateway-ping-timeout:        0
connection.metered:                     unbekannt
connection.lldp:                        default
connection.mdns:                        -1 (default)
connection.llmnr:                       -1 (default)
802-1x.eap:                             peap
802-1x.identity:                        [email protected]
802-1x.anonymous-identity:              --
802-1x.pac-file:                        --
802-1x.ca-cert:                         --
802-1x.ca-cert-password:                <hidden>
802-1x.ca-cert-password-flags:          0 (keine)
802-1x.ca-path:                         --
802-1x.subject-match:                   --
802-1x.altsubject-matches:              --
802-1x.domain-suffix-match:             --
802-1x.client-cert:                     --
802-1x.client-cert-password:            <hidden>
802-1x.client-cert-password-flags:      0 (keine)
802-1x.phase1-peapver:                  --
802-1x.phase1-peaplabel:                --
802-1x.phase1-fast-provisioning:        --
802-1x.phase1-auth-flags:               0x0 (none)
802-1x.phase2-auth:                     mschapv2
802-1x.phase2-autheap:                  --
802-1x.phase2-ca-cert:                  --
802-1x.phase2-ca-cert-password:         <hidden>
802-1x.phase2-ca-cert-password-flags:   0 (keine)
802-1x.phase2-ca-path:                  --
802-1x.phase2-subject-match:            --
802-1x.phase2-altsubject-matches:       --
802-1x.phase2-domain-suffix-match:      --
802-1x.phase2-client-cert:              --
802-1x.phase2-client-cert-password:     <hidden>
802-1x.phase2-client-cert-password-flags:0 (keine)
802-1x.password:                        <hidden>
802-1x.password-flags:                  0 (keine)
802-1x.password-raw:                    <hidden>
802-1x.password-raw-flags:              0 (keine)
802-1x.private-key:                     --
802-1x.private-key-password:            <hidden>
802-1x.private-key-password-flags:      0 (keine)

Verbindungsstatus

Verbindung, Übertragungsrate und Signalstärke anzeigen

iw dev <interface> link
iw dev wlp3s0 link
Connected to 01:02:03:04:05:06 (on wlp3s0)
        SSID: UPC Wi-Free
        freq: 2462
        RX: 55744 bytes (478 packets)
        TX: 725 bytes (6 packets)
        signal: -79 dBm
        rx bitrate: 1.0 MBit/s
        tx bitrate: 24.0 MBit/s

        bss flags:      short-slot-time
        dtim period:    1
        beacon int:     100
iw dev <interface> station dump
iw dev wlp3s0 station dump
Station 01:02:03:04:05:06 (on wlp3s0)
        inactive time:  3632 ms
        rx bytes:       11391
        rx packets:     99
        tx bytes:       787
        tx packets:     7
        tx retries:     4
        tx failed:      0
        beacon loss:    54
        beacon rx:      46
        rx drop misc:   1
        signal:         -78 dBm
        signal avg:     -78 dBm
        beacon signal avg:      -78 dBm
        tx bitrate:     24.0 MBit/s
        rx bitrate:     1.0 MBit/s
        authorized:     yes
        authenticated:  yes
        associated:     yes
        preamble:       long
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
        DTIM period:    1
        beacon interval:100
        short slot time:yes
        connected time: 4 seconds

Signalstärke

iwconfig <interface> | grep -i --color quality
iwconfig wlp3s0 | grep -i --color quality
Link Quality=29/70  Signal level=-81 dBm
cat /proc/net/wireless
Inter-| sta-|   Quality        |   Discarded packets               | Missed | WE
 face | tus | link level noise |  nwid  crypt   frag  retry   misc | beacon | 22
wlp3s0: 0000   30.  -80.  -256        0      0      0      0      1        0

Power Management

Ist das Power Management aktiviert, kann die WLAN-Verbindung gedrosselt oder unterbrochen werden.

iw dev <interface> get power_save
iw dev wlp3s0 get power_save
Power save: off

Power Management ein- und ausschalten

iw dev wlp3s0 set power_save on
iw dev wlp3s0 set power_save off

Regionseinstellung

Die Regionseinstellung beinflusst die maximale Sendeleistung der jeweiligen Region.

iw reg get
global
country 00: DFS-UNSET
        (2402 - 2472 @ 40), (N/A, 20), (N/A)
        (2457 - 2482 @ 20), (N/A, 20), (N/A), AUTO-BW, NO-IR
        (2474 - 2494 @ 20), (N/A, 20), (N/A), NO-OFDM, NO-IR
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW, NO-IR
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW, NO-IR
        (5490 - 5730 @ 160), (N/A, 20), (0 ms), DFS, NO-IR
        (5735 - 5835 @ 80), (N/A, 20), (N/A), NO-IR
        (57240 - 63720 @ 2160), (N/A, 0), (N/A)

Country 00 … World (globale Einstellung), ansonsten 2-Zeichen Ländercode nach ISO 3166-1

Regionseinstellung ändern

iw reg set DE

Sendeleistung

Die maximale TX-Power in dBm (Sendeleistung in Dezibel Milliwatt) ist durch gesetzliche Vorgaben der jeweiligen Region festgelegt.

iwconfig | egrep -i --color 'ieee|power'
lo        no wireless extensions.

enp4s0    no wireless extensions.

wlx333333333333  IEEE 802.11  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          Power Management:off
wlp3s0    IEEE 802.11  ESSID:"UPC Wi-Free"
          Bit Rate=24 Mb/s   Tx-Power=15 dBm
          Power Management:off

Sendeleistung einstellen, falls von der Hardware untestützt

iw dev wlp3s0 set txpower fixed 20

fixed … fest eingestellter Wert
auto … automatische Auswahl bis zum möglichen Maximalwert
limit … Begrenzung auf einen Maximalwert

Echtzeitmonitoring

iwevent
iw event

WLAN Analyzer

horst
horst -i <interface>

Signalstärke

watch -n 1 cat /proc/net/wireless
wavemon -i <interface>

Grafisches Tool: LinSSID

Siehe auch