Kic*_*869 9 wireless networking
我一直在寻找这个问题,但没有找到任何与我情况相同的人。我正在尝试使用 Ubuntu 设置 wifi 热点。我能够通过 Windows 7 执行此操作,但是我的笔记本电脑没有 Win7,因此我尝试在我的笔记本电脑上创建相同的设置。
我使用的适配器是 ALFA AWUS036NHR V.2。据我所知,驱动程序已预装在 Ubuntu 中,因为它能够连接到网络。
我根据网络上的各种说明设置了 ap-hotspot。
我正在使用命令
sudo ap-hotspot config
sudo ap-hotspot start
Run Code Online (Sandbox Code Playgroud)
我的所有设备都可以看到网络,但是 android 出现身份验证错误,iphone 不断收到“错误的密码”,而 raspberry pi 正在进行“4 次握手(站)”断开/重新连接循环。
当我在 Windows 7 上完成这个练习时,我不得不手动强制适配器使用不同的驱动程序,直到我找到一个可以用作热点的驱动程序。我担心这也可能是这里的问题,但是我什至无法让我的系统从 alfa.com.tw 网站安装驱动程序。我在 HP Elitebook 8530 笔记本电脑上安装了全新的 Ubuntu 12.04。下面是 ap-hotspot debug 的输出
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
Run Code Online (Sandbox Code Playgroud)
我对此很陌生,所以我不确定出了什么问题,但似乎有很多事情。如果需要任何进一步的信息,请告诉我。
小智 0
您需要取消注释以下行/etc/sysctl.conf
:
net.ipv4.ip_forward=1
Run Code Online (Sandbox Code Playgroud)
然后重新启动,一切都会正常工作。
ave*_*faq -1
您可以使用Ubuntu内置的热点功能。只需进入网络并进入无线,然后单击开始用作热点。它适用于我连接 Win 笔记本电脑、Android 设备、掌上设备。
您还可以通过网络连接更改各种其他设置并编辑网络类型