首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ap-hotspot工作,但没有任何东西可以连接。

ap-hotspot工作,但没有任何东西可以连接。
EN

Ask Ubuntu用户
提问于 2014-04-01 18:57:52
回答 2查看 9.2K关注 0票数 9

我一直在寻找关于这个问题的永远,我没有找到任何人与我独特的情况。我试着用Ubuntu建立一个wifi热点。我可以通过Windows 7实现这一点,但是我的笔记本电脑没有Win7,所以我尝试在我的笔记本电脑上创建相同的设置。

我使用的适配器是ALFA AWUS036NHR V.2。据我所知,这些驱动程序是预装在Ubuntu中的,因为它能够连接到网络。

我在网络上设置了每个不同指令的ap热点。

我正在使用命令

代码语言:javascript
复制
sudo ap-hotspot config

sudo ap-hotspot start

我所有的设备都可以看到网络,但是android会出现身份验证错误,iphone会不断收到“错误的密码”,而raspberry pi将进入"4路握手(站)“断开/重新连接循环。

当我在Windows 7上进行这段摘录时,我不得不手动强制适配器使用不同的驱动程序,直到我找到一个作为热点的驱动程序。我担心这可能也是这里的问题,但我甚至不能让我的系统安装驱动程序从alfa.com.tw网站。我正在使用一个新的Ubuntu12.04安装在惠普Elitebook 8530笔记本电脑上。下面是ap- the调试的输出。

代码语言:javascript
复制
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

我在这方面很新,所以我不知道出了什么问题,但似乎有很多事情要做。如果需要进一步的信息,请告诉我。

EN

回答 2

Ask Ubuntu用户

发布于 2014-07-27 13:29:31

您需要在/etc/sysctl.conf中取消对以下行的注释:

代码语言:javascript
复制
net.ipv4.ip_forward=1

然后重新启动,一切都会正常的。

票数 0
EN

Ask Ubuntu用户

发布于 2014-04-01 19:29:33

您可以使用内置的Ubuntu热点功能。只需进入网络,进入无线,然后点击开始使用热点。对我来说,连接Win笔记本电脑,android设备,掌上设备是可行的。

还可以从网络连接和编辑网络类型更改各种其他设置。

票数 -1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/442079

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档