AP- 핫스팟은 작동하지만 아무것도 연결할 수 없습니다 (스테이션)”연결 끊기 /

이 문제와 관련하여 영원히 검색해 왔으며 고유 한 환경을 가진 사람을 찾지 못했습니다. 우분투를 사용하여 와이파이 핫스팟을 설정하려고합니다. Windows 7을 통해이 작업을 수행 할 수 있었지만 랩톱에는 Win7이 없으므로 랩톱에서 동일한 설정을 만들려고합니다.

사용중인 어댑터는 ALFA AWUS036NHR V.2입니다. 내가 알 수있는 한 드라이버는 네트워크에 연결할 수 있기 때문에 우분투에 사전 설치되어 있습니다.

웹 주변의 다양한 지침에 따라 ap-hotspot을 설정했습니다.

나는 명령을 사용하고 있습니다

sudo ap-hotspot config

sudo ap-hotspot start

내 모든 기기에서 네트워크를 볼 수 있지만, 안드로이드에 인증 오류가 발생하고, 아이폰에 “잘못된 비밀번호”가 계속 표시되고 라즈베리 파이가 “4 방향 핸드 셰이크 (스테이션)”연결 끊기 / 재 연결 루프에 들어갑니다.

Windows 7 에서이 운동을 수행 할 때 핫스팟으로 작동하는 드라이버를 찾을 때까지 어댑터가 다른 드라이버를 사용하도록 수동으로 강제해야했습니다. 나는 이것이 여기에서도 문제가 될지 걱정하지만, alfa.com.tw 웹 사이트에서 드라이버를 설치하기 위해 시스템을 가져올 수도 없습니다. HP Elitebook 8530 랩탑에서 새로운 Ubuntu 12.04 설치를 사용하고 있습니다. 아래는 ap-hotspot 디버그의 출력입니다

sudo ap-hotspot debug
Starting Wireless Hotspot...
* Stopping DNS forwarder and DHCP server dnsmasq
* (not running)
update-rc.d: warning: hostapd start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: hostapd stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
Disabling system startup links for /etc/init.d/hostapd ...
Removing any system startup links for /etc/init.d/hostapd ...
/etc/rc0.d/K20hostapd
/etc/rc1.d/K20hostapd
/etc/rc2.d/K80hostapd
/etc/rc3.d/K80hostapd
/etc/rc4.d/K80hostapd
/etc/rc5.d/K80hostapd
/etc/rc6.d/K20hostapd
Adding system startup for /etc/init.d/hostapd ...
/etc/rc0.d/K20hostapd -> ../init.d/hostapd
/etc/rc1.d/K20hostapd -> ../init.d/hostapd
/etc/rc6.d/K20hostapd -> ../init.d/hostapd
/etc/rc2.d/K80hostapd -> ../init.d/hostapd
/etc/rc3.d/K80hostapd -> ../init.d/hostapd
/etc/rc4.d/K80hostapd -> ../init.d/hostapd
/etc/rc5.d/K80hostapd -> ../init.d/hostapd
update-rc.d: warning: dnsmasq start runlevel arguments (none) do not match LSB Default-Start values (2 3 4 5)
update-rc.d: warning: dnsmasq stop runlevel arguments (none) do not match LSB Default-Stop values (0 1 6)
Disabling system startup links for /etc/init.d/dnsmasq ...
Removing any system startup links for /etc/init.d/dnsmasq ...
/etc/rc0.d/K85dnsmasq
/etc/rc1.d/K85dnsmasq
/etc/rc2.d/K85dnsmasq
/etc/rc3.d/K85dnsmasq
/etc/rc4.d/K85dnsmasq
/etc/rc5.d/K85dnsmasq
/etc/rc6.d/K85dnsmasq
Adding system startup for /etc/init.d/dnsmasq ...
/etc/rc0.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc1.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc6.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc2.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc3.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc4.d/K85dnsmasq -> ../init.d/dnsmasq
/etc/rc5.d/K85dnsmasq -> ../init.d/dnsmasq
* Restarting DNS forwarder and DHCP server configuration syntax check
...fail!
net.ipv4.ip_forward = 1
Wireless Hotspot active

나는 이것에 대해 상당히 새롭기 때문에 무엇이 잘못되었는지 확실하지 않지만 매우 많은 것으로 보입니다. 추가 정보가 필요하면 알려주십시오.



답변

짧은 대답 : 아마도 다른 dnsmasq실행 인스턴스가있을 것입니다 . 따라서 모든 인스턴스를 종료하십시오.

편집 1 (안드레아에게 감사) :

$ sudo killall dnsmasq

원래 답변 :

$ sudo netstat -taunp | grep -w LISTEN | grep dnsmasq | awk '{print $7}' | sed -r "s/([0-9]+).*/\1/" | xargs kill -9

핫스팟을 다시 시작하십시오.

$ sudo ap-hotspot debug

Starting Wireless Hotspot...
* Stopping DNS forwarder and DHCP server dnsmasq
* (not running)

[...]

* Restarting DNS forwarder and DHCP server dnsmasq
...done.
net.ipv4.ip_forward = 1
Wireless Hotspot active


답변

다음 줄을 주석 해제해야합니다 /etc/sysctl.conf.

net.ipv4.ip_forward=1

그런 다음 재부팅하면 모든 것이 잘 작동합니다.


답변

Ubuntu의 내장 핫스팟 기능을 사용할 수 있습니다. 네트워크 및 무선으로 이동하여 핫스팟으로 사용 시작을 클릭하십시오. 그것은 Win 노트북, 안드로이드 장치, 손바닥 장치를 연결하는 데 효과적입니다.

네트워크 연결 및 네트워크 유형 편집에서 다양한 기타 설정을 변경할 수도 있습니다

인터넷 설정


답변