モバイルサービスを使用しているAndroid携帯電話で「Wi-Fiホットスポット」をオンにしましたが、コンピュータがWi-Fiに接続できないのはなぜですか?ありがとうございます。
$ wpa_passphrase "moto g pure" "mypassword" | sudo wpa_supplicant -D nl80211,wext -i wlp5s0 -c
Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: Could not set interface 'p2p-dev-wlp5s0' UP
nl80211: deinit ifname=p2p-dev-wlp5s0 disabled_11b_rates=0
p2p-dev-wlp5s0: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
WPA: No PMK set for PTK derivation
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Authentication request to the driver failed
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=c8:a7:0a:b0:a2:06 reason=3 locally_generated=1
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=3 locally_generated=1
nl80211: deinit ifname=wlp5s0 disabled_11b_rates=0
wlp5s0: CTRL-EVENT-TERMINATING
答え1
nl80211: kernel reports: Match already configured
これは、ワイヤレスインターフェイスを制御するために競合する複数のネットワーク構成サブシステムがある可能性があることを示しています。アーチフォーラムの議論のように。
wpa_supplicant
スタンドアロンモードで使用する予定の場合、NetworkManagerやnetctlなどの他のものも同じインターフェイスを管理することはできません。またはを使用している場合は、他のプロセスを開始する前に、以前の試行の以前のプロセスが実際に終了していることをwpa_supplicant
確認してください。wpa_supplicant
DHCPクライアントを使用している場合dhcpcd
(Raspberry Pi OSがデフォルトで使用している場合)、ネットワークdhcpcd
インターフェイスを自動的に検出し、wpa_supplicant
ワイヤレスインターフェイスを自動的に起動するように設定できます。
nl80211: Could not set interface 'p2p-dev-wlp5s0' UP
nl80211: deinit ifname=p2p-dev-wlp5s0 disabled_11b_rates=0
p2p-dev-wlp5s0: Failed to initialize driver interface
P2P: Failed to enable P2P Device interface
何らかの理由で、システムは2つのWiFiクライアントがホットスポット/アクセスポイントなしで互いに直接通信するp2pモードでインターフェイスを設定しようとします。
wlp5s0: SME: Trying to authenticate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='moto g pure' freq=2437 MHz)
wlp5s0: Associated with xx:xx:xx:xx:xx:xx
wlp5s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
wlp5s0: WPA: Key negotiation completed with xx:xx:xx:xx:xx:xx [PTK=CCMP GTK=CCMP]
wlp5s0: CTRL-EVENT-CONNECTED - Connection to xx:xx:xx:xx:xx:xx completed [id=0 id_str=]
これは、認証された接続が正常に確立されたことを示します。
wlp5s0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=1 locally_generated=1
wlp5s0: No network configuration found for the current AP
...しかし、コンピュータは接続をどのように行うべきかわからないので、自動的に切断することを決定します(接続切断がローカルで作成されたと表示されます)。静的IPアドレスを設定する必要がありますか、DHCPを試す必要がありますか、それともIPv6専用接続である必要がありますか?
ネットワークSSIDとWPAパスワードを定義するwpa_passphrase "moto g pure" "mypassword"
最小フラグメントを作成します。wpa_supplicant.conf
ただし、出力をパイプする試みは、対応するオプションが必要なため機能しない可能性がありwpa_supplicant -c
ます-c
構成ファイルのパス名。
Arch wikiが提案するコマンド形式は多少異なります。既存および/またはプロセスを停止しwpa_supplicant
たら、次dhcpcd
を実行してみてください。NetworkManager
netctl
sudo wpa_supplicant -D nl80211,wext -i wlp5s0 -c <(wpa_passphrase "moto g pure" "mypassword")
この構文は、含まれているコマンドの出力に基づいて一時ファイルを生成し、<( ... )
基本コマンドを実行する前にコマンドラインの構成を一時ファイル名に置き換えます。<( ... )