在Ubuntu中使用ad hoc网络无法访问Internet


2

我在桌面上(Ubuntu 12.04)设置了一个wifi热点,并能够使用笔记本电脑(也是Ubuntu 12.04)连接到它。

我的桌面使用以太网电缆连接到Internet,我可以从桌面访问Internet,但不能从笔记本电脑访问Internet。

另外,我可以从笔记本电脑成功ping到路由器,但仍然无法上网。

请指出如何解决此问题。

桌面路由表。

$ / sbin / route -n

内核IP路由表

目标网关Genmask标志度量标准引用使用Iface
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth1
10.42.0.0 0.0.0.0 255.255.255.0 U 2 0 0 wlan1
169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 1 0 0 eth1

您能在笔记本电脑上检查DNS和网关设置吗?我认为台式机会将它们(DHCP)分配给您的笔记本电脑。
— AndreaCi 2013年

笔记本电脑DNS:10.42.0.1,网关:10.42.0.1。10.42.0.1是台式机中我的wifi卡的IP地址。
— 托马斯

Answers:


1

路由只是问题的一部分。请在ubuntu https://help.ubuntu.com/community/Internet/ConnectionSharing上查看有关Internet连接共享的此文档, 这将需要DNSMasq和某些IPTables配置,或者您可以通过NetworkManager gui进行配置。请注意,根据文档,适用于Adhoc无线的ICS不支持WPA,因此您必须依靠WEP。


不过,Ubuntu 12.10支持WPA。
— BatchyX 2013年

好吧 希望有一天有人会更新文档。
— 弗兰克·托马斯
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.