
무선 네트워크를 공유하려고 합니다(wlan0
다음 튜토리얼을 따릅니다.https://linuxalfi.wordpress.com/2011/11/08/connectify-for-linux-with-single-wireless-interface/
문제는: Hostapd가 시작된 경우 wpa_supplicant를 사용하여 네트워크에 내 네트워크에 연결할 수 없다는 것입니다. 반면에 네트워크에 연결하면 Hostapd를 시작할 수 없습니다. 이 두 개의 hostapd와 wpa_supplicant는 함께 시작할 수 없습니다.
Hostapd를 시작하려고 하면 다음과 같은 오류가 발생합니다.
root@me:~# hostapd /etc/hostapd.conf Configuration file: /etc/hostapd.conf Using interface new1 with hwaddr 84:4b:f5:4c:89:ab and ssid "Linux-Hotspot" Failed to set beacon parameters new1: Unable to setup interface.
Hostapd가 시작된 경우 wpa_supplicant를 사용하면 다음 오류가 생성됩니다.
Successfully initialized wpa_supplicant new0: CTRL-EVENT-SCAN-STARTED new0: SME: Trying to authenticate with ac:86:74:26:54:72 (SSID='Ktx My Dinh' freq=2432 MHz) new0: SME: Authentication request to the driver failed new0: CTRL-EVENT-SCAN-STARTED
그리고 여기iw list
root@me:~$ sudo iw list Wiphy phy0 max # scan SSIDs: 4 max scan IEs length: 2257 bytes Retry short limit: 7 Retry long limit: 4 Coverage class: 0 (up to 0m) Device supports RSN-IBSS. Device supports AP-side u-APSD. Device supports T-DLS. Supported Ciphers: * WEP40 (00-0f-ac:1) * WEP104 (00-0f-ac:5) * TKIP (00-0f-ac:2) * CCMP (00-0f-ac:4) * CMAC (00-0f-ac:6) Available Antennas: TX 0x1 RX 0x3 Configured Antennas: TX 0x1 RX 0x3 Supported interface modes: * IBSS * managed * AP * AP/VLAN * WDS * monitor * mesh point * P2P-client * P2P-GO
이 문제를 해결하려면 어떻게 해야 합니까? 미리 감사드립니다.
답변1
iw 목록 출력의 하단에서 다음과 같은 내용을 확인하세요.
valid interface combinations:
* #{ managed } <= 1, #{ P2P-device } <= 1, #{ P2P-client, P2P-GO } <= 1,
total <= 3, #channels <= 2
* #{ managed } <= 1, #{ AP } <= 1, #{ P2P-client } <= 1, #{ P2P-device } <= 1,
total <= 4, #channels <= 1
(이것은 내 Raspberry Pi 3가 wlan0에 대해 표시하는 것입니다.) 이 장치는 두 인터페이스(관리 및 AP) 사이의 단일 채널만 지원합니다.
지정된 채널이 연결하려는 네트워크의 채널과 일치하도록 Hostapd.conf를 변경해 보십시오.