wpa_supplicant를 사용하여 Wi-Fi 핫스팟에 연결할 수 없는 이유는 무엇입니까?

wpa_supplicant를 사용하여 Wi-Fi 핫스팟에 연결할 수 없는 이유는 무엇입니까?

모바일 서비스를 사용하는 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

어떤 이유로 시스템은 두 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 위키에서 제안하는 명령 형식은 다소 다릅니다.기존 및/또는 프로세스를 중지한 wpa_supplicant후 다음 dhcpcd을 실행해 보세요.NetworkManagernetctl

sudo wpa_supplicant -D nl80211,wext -i wlp5s0 -c <(wpa_passphrase "moto g pure" "mypassword")

이 구문은 포함된 명령의 출력을 기반으로 임시 파일을 생성하고 <( ... )기본 명령을 실행하기 전에 명령줄의 구성을 임시 파일 이름으로 바꿉니다.<( ... )

관련 정보