您尚未登录。

#1 2011-10-10 22:29:55

xw_y_am
四叶草
注册时间: 2011-10-03
帖子: 131
个人网站

菜鸟求助如何建立网络热点。。。

小弟不才,热爱Gnome3的环境。网络问题在小弟新建一个用户之后终于解决,但是现在只能连结外网。
系统设置无线连接里的“用作热点”功能,点击后等待约1分钟,系统提示启用网络连接失败。
系统日志如下:

Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) starting connection 'Hotspot'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> (wlan0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0/wireless): access point 'Hotspot' has security, but secrets are required.
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> (wlan0): device state change: config -> need-auth (reason 'none') [50 60 0]
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> (wlan0): device state change: need-auth -> prepare (reason 'none') [60 40 0]
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting...
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> (wlan0): device state change: prepare -> config (reason 'none') [40 50 0]
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0/wireless): connection 'Hotspot' has security, and secrets exist.  No new secrets needed.
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'ssid' value 'xwyam'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'mode' value '1'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'frequency' value '2422'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'key_mgmt' value 'NONE'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'auth_alg' value 'OPEN'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'wep_key0' value '<omitted>'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: added 'wep_tx_keyidx' value '0'
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> Config: set interface ap_scan to 2
Oct 10 22:28:10 xwyam NetworkManager[900]: <info> (wlan0): supplicant interface state: disconnected -> associating
Oct 10 22:28:10 xwyam kernel: [ 2061.896266] wlan0: Trigger new scan to find an IBSS to join
Oct 10 22:28:15 xwyam kernel: [ 2067.063552] wlan0: Trigger new scan to find an IBSS to join
Oct 10 22:28:18 xwyam kernel: [ 2070.291115] wlan0: Creating new IBSS network, BSSID 62:81:04:c3:5c:33
Oct 10 22:28:18 xwyam kernel: [ 2070.320039] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
Oct 10 22:28:18 xwyam kernel: [ 2070.320451] iwlagn 0000:03:00.0: Unable to find TIM Element in beacon
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> (wlan0): supplicant interface state: associating -> completed
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful.  Connected to wireless network 'xwyam'.
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started...
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> (wlan0): device state change: config -> ip-config (reason 'none') [50 70 0]
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) scheduled...
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) started...
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled...
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 4 of 5 (IP4 Configure Get) complete.
Oct 10 22:28:18 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started...
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Policy set 'school net' (eth0) as default for IPv4 routing and DNS.
Oct 10 22:28:19 xwyam NetworkManager[900]: <warn> Failed to add route Netlink Error (errno = File exists)
Oct 10 22:28:19 xwyam NetworkManager[900]: <error> [1318256899.873946] [nm-system.c:1039] nm_system_replace_default_ip6_route(): (eth0): failed to set IPv6 default route: -1
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Policy set 'school net' (eth0) as default for IPv6 routing and DNS.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 53 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 53 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol tcp --destination-port 67 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert INPUT --in-interface wlan0 --protocol udp --destination-port 67 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --jump REJECT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert FORWARD --out-interface wlan0 --jump REJECT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert FORWARD --in-interface wlan0 --out-interface wlan0 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan0 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --insert FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan0 --match state --state ESTABLISHED,RELATED --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table nat --insert POSTROUTING --source 10.42.43.0/255.255.255.0 ! --destination 10.42.43.0/255.255.255.0 --jump MASQUERADE
Oct 10 22:28:19 xwyam NetworkManager[900]: <error> [1318256899.911842] [nm-device.c:2534] start_sharing(): (wlan0/wlan0): failed to start dnsmasq: Could not find dnsmasq binary.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table nat --delete POSTROUTING --source 10.42.43.0/255.255.255.0 ! --destination 10.42.43.0/255.255.255.0 --jump MASQUERADE
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete FORWARD --destination 10.42.43.0/255.255.255.0 --out-interface wlan0 --match state --state ESTABLISHED,RELATED --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete FORWARD --source 10.42.43.0/255.255.255.0 --in-interface wlan0 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete FORWARD --in-interface wlan0 --out-interface wlan0 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete FORWARD --out-interface wlan0 --jump REJECT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete FORWARD --in-interface wlan0 --jump REJECT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol udp --destination-port 67 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol tcp --destination-port 67 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol udp --destination-port 53 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Executing: /usr/sbin/iptables --table filter --delete INPUT --in-interface wlan0 --protocol tcp --destination-port 53 --jump ACCEPT
Oct 10 22:28:19 xwyam NetworkManager[900]: <warn> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) start sharing failed.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> (wlan0): device state change: ip-config -> failed (reason 'sharing-start-failed') [70 120 18]
Oct 10 22:28:19 xwyam NetworkManager[900]: <warn> Activation (wlan0) failed for access point (xwyam)
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Marking connection 'Hotspot' invalid.
Oct 10 22:28:19 xwyam NetworkManager[900]: <warn> Activation (wlan0) failed.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> (wlan0): device state change: failed -> disconnected (reason 'none') [120 30 0]
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> (wlan0): deactivating device (reason 'none') [0]
Oct 10 22:28:19 xwyam kernel: [ 2071.411530] iwlagn 0000:03:00.0: REPLY_REMOVE_STA failed
Oct 10 22:28:19 xwyam kernel: [ 2071.411536] iwlagn 0000:03:00.0: failed to remove IBSS station 00:00:00:00:00:00
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Policy set 'school net' (eth0) as default for IPv4 routing and DNS.
Oct 10 22:28:19 xwyam NetworkManager[900]: <warn> Failed to add route Netlink Error (errno = File exists)
Oct 10 22:28:19 xwyam NetworkManager[900]: <error> [1318256899.979519] [nm-system.c:1039] nm_system_replace_default_ip6_route(): (eth0): failed to set IPv6 default route: -1
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Policy set 'school net' (eth0) as default for IPv6 routing and DNS.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Policy set 'school net' (eth0) as default for IPv4 routing and DNS.
Oct 10 22:28:19 xwyam NetworkManager[900]: <warn> Failed to add route Netlink Error (errno = File exists)
Oct 10 22:28:19 xwyam NetworkManager[900]: <error> [1318256899.979748] [nm-system.c:1039] nm_system_replace_default_ip6_route(): (eth0): failed to set IPv6 default route: -1
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> Policy set 'school net' (eth0) as default for IPv6 routing and DNS.
Oct 10 22:28:19 xwyam NetworkManager[900]: <info> (wlan0): supplicant interface state: completed -> disconnected

求大神审阅。。。。 :em70  :em70

离线

#2 2011-10-20 19:22:04

xw_y_am
四叶草
注册时间: 2011-10-03
帖子: 131
个人网站

Re: 菜鸟求助如何建立网络热点。。。

不了个是吧。。。这个区10天没人来了。。。 :em20  :em20
唉,那就在发贴10天以后自沙个意思意思吧。。。 :em19  :em19

离线

#3 2011-10-20 20:53:32

phoenixlzx
晩ご飯だよー
注册时间: 2011-08-19
帖子: 1,789
个人网站

Re: 菜鸟求助如何建立网络热点。。。

表示KDE可以直接开启无线热点功能.....

离线

#4 2011-10-21 09:27:31

views63
会员
注册时间: 2011-08-20
帖子: 18

Re: 菜鸟求助如何建立网络热点。。。

我的 gentoo 也一直无法解决,当初用 arch在 kernel 2.6.36 之前还可以,更新后也不行了。用 ubuntu 等发行版可以,不懂怎么解决 :em19

离线

#5 2011-10-21 15:39:38

xw_y_am
四叶草
注册时间: 2011-10-03
帖子: 131
个人网站

Re: 菜鸟求助如何建立网络热点。。。

phoenixlzx 说:

表示KDE可以直接开启无线热点功能.....

表示KDE的网络管理没有MD5认证,否则就用KDE了。

离线

#6 2011-10-21 16:07:36

views63
会员
注册时间: 2011-08-20
帖子: 18

Re: 菜鸟求助如何建立网络热点。。。

views63 说:

我的 gentoo 也一直无法解决,当初用 arch在 kernel 2.6.36 之前还可以,更新后也不行了。用 ubuntu 等发行版可以,不懂怎么解决 :em19

今天为解决 networkmanager 手动设置 IP 保存选项不可用,添加 USE net-misc/networkmanager  connection-sharing 自动安装 iptables 后解决 :em06 可选项不可用依然存在 :em19

离线

#7 2011-10-21 16:38:48

everyx
会员
所在地: 安徽安庆
注册时间: 2011-08-27
帖子: 47

Re: 菜鸟求助如何建立网络热点。。。

你的网卡支持创建无线热点吗?有些旧电脑就不行,比如说我的网卡 :em19

离线

#8 2011-10-21 17:41:10

xw_y_am
四叶草
注册时间: 2011-10-03
帖子: 131
个人网站

Re: 菜鸟求助如何建立网络热点。。。

everyx 说:

你的网卡支持创建无线热点吗?有些旧电脑就不行,比如说我的网卡 :em19

必须支持,以前用小U的时候各种热点。。。。

离线

#9 2012-02-18 23:57:38

felixonmars
Arch Linux Developer
所在地: Wuhan, Hubei, China
注册时间: 2011-08-21
帖子: 148
个人网站

Re: 菜鸟求助如何建立网络热点。。。

建议采用hostapd建立热点, 相当稳定而且兼容性好.
参考资料: https://wiki.archlinux.org/index.php/So … _implement


Felix Yan
Twitter: @felixonmars
Web: http://felixc.at
tongue

离线

页脚