目次
文書の過去の版を表示しています。
WiFi - 無線LAN
mncli dev wifi
パスワードを調べる🤔
$ nmcli dev wifi show-password
SSID: TomoyanWiFi-anal-gate セキュリティー: WPA3 パスワード: あなるごうもんやきそば😅 █████████████████████████████████████ ██ ▄▄▄▄▄ █▄▀ ▀ ▄▄ ▀▀▄▀█▀▄ ▄█ ▄▄▄▄▄ ██ ██ █ █ █ █▀▀ ▀▄▄ ██▀▀▄██ █ █ ██ ██ █▄▄▄█ █▄█▀ ▄█▄▀█ ▀▄██ ███ █▄▄▄█ ██ ██▄▄▄▄▄▄▄█▄█ █ ▀▄▀▄█▄█▄█▄▀ █▄▄▄▄▄▄▄██ ██▄▄▄▄██▄▀▄█ ▄ ▄██ ▄ ▄▄▄ ▀█▄▀█▄▄▄▀ ██ ██ ▄▀▄ █▄▀▄ ▄▄█ ▄▄▀▀ █ ▀▄ ▄█ ▄ ▄█▄██ ███▄▀▄▀▀▄▀█▄▄▀ ▄███▀▄█▀█▄▄▄▄█ ▄▄▄█ ██ ██▀█▀▄█▀▄▀▀▄█ █ █ █ ▀▀▄▄ ██▀ █▄█▀█▀██ ██ ████▄▄▄▀ ▄█▄ ▀█▀▄██ █▀▄ ▄ ▀█ ▄██ ██▄ ▀ ▀▀▄ ▀▀ ▀█▀▀▀▄▄▄ ▀█▄▀ ▄ ██ ▀██ ██ █▄ ▀▄▄▄▄███ ▀█ ▄ ██▀▄█▄█▀ █ ▀▄▄██ ███▀▀▄ █▄▀▀██▀▀▄▀▄█▀▀▄▄ ▀ █▄▄ ▀▄▄ ██ ██▄█▄▄▄▄▄▄ ▄▄ ▄▀█▄█▀▄█▀█▄█ ▄▄▄ ▄ ▀██ ██ ▄▄▄▄▄ ██ █▀ █▄▄ ▀▀▄▄ ▀ █▄█ ▀▀▀███ ██ █ █ █▀▄ ▀▄▀▄█▀▄▀█ █▀ ▄▄▄ ▄█ ▄██ ██ █▄▄▄█ █ █████▄▀▄▄ ▀ ▀ █▀▄▀▀ ▄▄▀██ ██▄▄▄▄▄▄▄█▄▄▄▄▄███▄▄▄██▄▄▄█▄▄██▄▄████ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
wireless-tools (各 Linux ディストリビューションとも廃止予定)
iwconfig, iwlist… コマンドのインストール。
Fedora 〜35 (Fedora 36 で wireless-tools は廃止されました😢)
$ sudo dnf install wireless-tools
Fedora 36〜 (廃止されても無理やり使ってみませんか❓🤤)
$ sudo dnf install https://kojipkgs.fedoraproject.org/packages/wireless-tools/29/28.fc35/x86_64/wireless-tools-29-28.fc35.x86_64.rpm
メタデータの期限切れの最終確認: 1:35:00 時間前の 2022年08月28日 20時35分47秒 に実施しました。 wireless-tools-29-28.fc35.x86_64.rpm 41 kB/s | 108 kB 00:02 依存関係が解決しました。 ============================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ============================================================================================================== インストール: wireless-tools x86_64 1:29-28.fc35 @commandline 108 k トランザクションの概要 ============================================================================================================== インストール 1 パッケージ 合計サイズ: 108 k インストール後のサイズ: 275 k これでよろしいですか? [y/N]: y パッケージのダウンロード: トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : wireless-tools-1:29-28.fc35.x86_64 1/1 scriptletの実行中: wireless-tools-1:29-28.fc35.x86_64 1/1 検証 : wireless-tools-1:29-28.fc35.x86_64 1/1 インストール済み: wireless-tools-1:29-28.fc35.x86_64 完了しました!
DietPi
$ sudo apt install wireless-tools
※ iwconfig, iwlist, iwspy, iwpriv, ifrename, iwevent, iwgetid
コマンドがインストールされる。
Wireless Tools for Linux
WiFi 情報取得
WiFi のデバイス名 wlp2s0
を調べる
$ nmcli dev
DEVICE TYPE STATE CONNECTION wlp2s0 wifi 接続済み TomoyanWRT-dw5G enp3s0 ethernet 利用不可 -- lo loopback 管理無し --
近隣 WiFi の使用 Channel などを調べたいとき😉
iw コマンド版🤤 - 基本的には iw コマンドを推奨!
$ sudo iw dev wlp2s0 scan | egrep '^BSS |(signal|last seen|freq|SSID|DS Parameter set|primary channel|Country|Manufacturer|Model|Serial|(Group|Pairwise) ciphers?|Authentication):'
BSS 94:83:c4:e0:e6:12(on wlp2s0) -- associated freq: 5260 signal: -41.00 dBm last seen: 95 ms ago SSID: TomoyanWRT-dw5G * Group cipher: CCMP * Pairwise ciphers: CCMP * primary channel: 52 BSS 94:83:c4:e0:e6:11(on wlp2s0) freq: 2412 signal: -43.00 dBm last seen: 4695 ms ago SSID: TomoyanWRT-dw24G DS Parameter set: channel 1 * Group cipher: CCMP * Pairwise ciphers: CCMP * primary channel: 1 BSS 94:83:c4:1c:29:51(on wlp2s0) freq: 2437 signal: -24.00 dBm last seen: 4464 ms ago SSID: TomoyanWRT-ow24G DS Parameter set: channel 6 Country: JP Environment: Indoor/Outdoor * Group cipher: CCMP * Pairwise ciphers: CCMP BSS 34:76:c5:db:f2:74(on wlp2s0) freq: 2412 signal: -83.00 dBm last seen: 4682 ms ago SSID: IODATA-dbf274-2G DS Parameter set: channel 1 * primary channel: 1 * Group cipher: CCMP * Pairwise ciphers: CCMP Country: JP Environment: Indoor/Outdoor * Manufacturer: Ralink Technology, Corp. * Model: Ralink Wireless Access Point BSS 98:f1:99:52:b2:02(on wlp2s0) freq: 2422 signal: -74.00 dBm last seen: 4624 ms ago SSID: aterm-4e8a6a-g DS Parameter set: channel 3 Country: JP Environment: Indoor/Outdoor * Group cipher: CCMP * Pairwise ciphers: CCMP * primary channel: 3 * Group cipher: CCMP * Pairwise ciphers: CCMP BSS 00:24:a5:d8:e7:d6(on wlp2s0) freq: 2412 signal: -82.00 dBm last seen: 4678 ms ago SSID: 0024A5D8E7D6 DS Parameter set: channel 1 * Group cipher: TKIP * Pairwise ciphers: CCMP TKIP * Group cipher: TKIP * Pairwise ciphers: CCMP TKIP * primary channel: 1 * Manufacturer: - * Model: WZR-HP-G301NH BSS 02:24:a5:d8:e7:d6(on wlp2s0) freq: 2412 signal: -84.00 dBm last seen: 4664 ms ago SSID: 0024A5D8E7D6-1 DS Parameter set: channel 1 * Group cipher: CCMP * Pairwise ciphers: CCMP * primary channel: 1 BSS 34:3d:c4:43:07:00(on wlp2s0) freq: 2462 signal: -85.00 dBm last seen: 4248 ms ago SSID: 2.4G-070E DS Parameter set: channel 11 * Group cipher: TKIP * Pairwise ciphers: CCMP TKIP * primary channel: 11 * Group cipher: TKIP * Pairwise ciphers: CCMP TKIP BSS 36:3d:c4:43:07:02(on wlp2s0) freq: 2462 signal: -84.00 dBm last seen: 4247 ms ago SSID: Buffalo-G-070E_2 DS Parameter set: channel 11 BSS 94:83:c4:1c:29:56(on wlp2s0) freq: 5180 signal: -82.00 dBm last seen: 3779 ms ago SSID: TomoyanWRT-ow5G DS Parameter set: channel 36 * Group cipher: CCMP * Pairwise ciphers: CCMP BSS 98:f1:99:52:b2:03(on wlp2s0) freq: 5180 signal: -84.00 dBm last seen: 3777 ms ago SSID: aterm-4e8a6a-a DS Parameter set: channel 36 Country: JP Environment: Indoor/Outdoor * Group cipher: CCMP * Pairwise ciphers: CCMP * primary channel: 36 * Group cipher: CCMP * Pairwise ciphers: CCMP * Manufacturer: NEC Platforms, Ltd. * Model:
iwlist コマンド版🤤
$ sudo iwlist wlp2s0 scanning | egrep 'Cell |(Address|Channel|Frequency|Quality|Signal level|Encryption|Last beacon|ESSID):?'
Cell 01 - Address: 94:83:C4:E0:E6:12 Channel:52 Frequency:5.26 GHz (Channel 52) Quality=70/70 Signal level=-36 dBm Encryption key:on ESSID:"TomoyanWRT-dw5G" Extra: Last beacon: 157ms ago Cell 02 - Address: 94:83:C4:E0:E6:11 Channel:1 Frequency:2.412 GHz (Channel 1) Quality=70/70 Signal level=-33 dBm Encryption key:on ESSID:"TomoyanWRT-dw24G" Extra: Last beacon: 4716ms ago Cell 03 - Address: 94:83:C4:1C:29:56 Channel:36 Frequency:5.18 GHz (Channel 36) Quality=26/70 Signal level=-84 dBm Encryption key:on ESSID:"TomoyanWRT-ow5G" Extra: Last beacon: 3795ms ago Cell 04 - Address: 98:F1:99:F2:B2:03 Channel:36 Frequency:5.18 GHz (Channel 36) Quality=25/70 Signal level=-85 dBm Encryption key:on ESSID:"aterm-4e8a6a-a" Extra: Last beacon: 3793ms ago Cell 05 - Address: 94:83:C4:F0:7B:01 Channel:11 Frequency:2.462 GHz (Channel 11) Quality=70/70 Signal level=-29 dBm Encryption key:on ESSID:"OrangeWRT-ow24G" Extra: Last beacon: 4302ms ago
参考文献
iw (Linux) - Wikipedia
How do I scan for Wireless Access Points? - Ask Ubuntu
'iwlist' -> interface doesn't support scanning (Ubuntu LTS 10.04)
Linux Mint で無線LANが無効から戻らない | 1Q77
linux - why does "iw wlan0 scan" results in errors "Network is down (-100)" or "device or resource busy (-16)" - Super User
https://flying-foozy.hatenablog.com/entry/20110208/1297165646
Changes/RemoveWirelessExtensions - Fedora Project Wiki
Issue #774: F36 Change: Remove Wire Extensions Support - release-notes - Pagure.io
第371回 無線LANの電波環境を視覚化・改善しよう | gihyo.jp
Changes/RemoveWirelessExtensions - Fedora Project Wiki
Overview - rpms/wireless-tools - src.fedoraproject.org
wireless-tools-29-28.fc35 | Build Info | koji