[求助]TL-WN310G(TP-Link 无线网卡)在ubuntu下不能识别
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 15
- 注册时间: 2007-09-05 21:44
[求助]TL-WN310G(TP-Link 无线网卡)在ubuntu下不能识别
估计是没有支持的驱动,请问大虾们怎么解决阿,刚买的网卡不能上网,急死人了~~~~~~sos
-
- 帖子: 183
- 注册时间: 2007-09-27 15:37
- speme
- 帖子: 723
- 注册时间: 2005-10-02 8:22
- 联系:
-
- 帖子: 183
- 注册时间: 2007-09-27 15:37
原理一样,其实ubuntu和fc差别也不大。
你运行如下命令:
apt-get install madwifi-tools
然后照他的命令执行:
编译安装成功之后,首先加载madwifi内核
view plainprint?
1. #modprobe ath_pci
#modprobe ath_pci
搜寻AP
view plainprint?
1. #modprobe wlan_scan_sta
#modprobe wlan_scan_sta
由于madwifi的默认安装的网卡名字是ath0,所以我们用下列命令激活
view plainprint?
1. [root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0 up
2. [root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0
3. ath0 Link encap:Ethernet HWaddr 00:14:78:75:DD:**
4. inet addr:192.168.1.100 Bcast:255.255.255.255 Mask:255.255.255.0
5. inet6 addr: fe80::214:78ff:fe75:dd4b/64 Scope:Link
6. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
7. RX packets:3 errors:278 dropped:0 overruns:0 frame:278
8. TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
9. collisions:0 txqueuelen:200
10. RX bytes:1222 (1.1 KiB) TX bytes:1220 (1.1 KiB)
11. Interrupt:10 Memory:d01a0000-d01b0000
[root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0 up [root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0 ath0 Link encap:Ethernet HWaddr 00:14:78:75:DD:** inet addr:192.168.1.100 Bcast:255.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::214:78ff:fe75:dd4b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:278 dropped:0 overruns:0 frame:278 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:200 RX bytes:1222 (1.1 KiB) TX bytes:1220 (1.1 KiB) Interrupt:10 Memory:d01a0000-d01b0000
当你看到以上的信息的时候,恭喜你,你的网卡已经激活了。
下面,为了能电脑默认加载无线网卡可将下面的代码添加到/etc/rc.local,
view plainprint?
1. #这里的引号中的LEOLINK是AP的名称
2. iwconfig ath0 essid "LEOLINK"
3. #这里的password指的是你连接AP的密码,如果你没有密码,那就请设置空或者注释下面的一行
4. #iwconfig ath0 key s:password
5. #配置无线网卡IP及掩码
6. ifconfig ath0 192.168.1.123 netmask 255.255.255.0 up
7. #添加缺省路由(网关)
8. route add default gw 192.168.1.1
#这里的引号中的LEOLINK是AP的名称 iwconfig ath0 essid "LEOLINK" #这里的password指的是你连接AP的密码,如果你没有密码,那就请设置空或者注释下面的一行 #iwconfig ath0 key s:password #配置无线网卡IP及掩码 ifconfig ath0 192.168.1.123 netmask 255.255.255.0 up #添加缺省路由(网关) route add default gw 192.168.1.1
你运行如下命令:
apt-get install madwifi-tools
然后照他的命令执行:
编译安装成功之后,首先加载madwifi内核
view plainprint?
1. #modprobe ath_pci
#modprobe ath_pci
搜寻AP
view plainprint?
1. #modprobe wlan_scan_sta
#modprobe wlan_scan_sta
由于madwifi的默认安装的网卡名字是ath0,所以我们用下列命令激活
view plainprint?
1. [root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0 up
2. [root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0
3. ath0 Link encap:Ethernet HWaddr 00:14:78:75:DD:**
4. inet addr:192.168.1.100 Bcast:255.255.255.255 Mask:255.255.255.0
5. inet6 addr: fe80::214:78ff:fe75:dd4b/64 Scope:Link
6. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
7. RX packets:3 errors:278 dropped:0 overruns:0 frame:278
8. TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
9. collisions:0 txqueuelen:200
10. RX bytes:1222 (1.1 KiB) TX bytes:1220 (1.1 KiB)
11. Interrupt:10 Memory:d01a0000-d01b0000
[root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0 up [root@localhost madwifi-ng-r1486-20070401]# ifconfig ath0 ath0 Link encap:Ethernet HWaddr 00:14:78:75:DD:** inet addr:192.168.1.100 Bcast:255.255.255.255 Mask:255.255.255.0 inet6 addr: fe80::214:78ff:fe75:dd4b/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3 errors:278 dropped:0 overruns:0 frame:278 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:200 RX bytes:1222 (1.1 KiB) TX bytes:1220 (1.1 KiB) Interrupt:10 Memory:d01a0000-d01b0000
当你看到以上的信息的时候,恭喜你,你的网卡已经激活了。
下面,为了能电脑默认加载无线网卡可将下面的代码添加到/etc/rc.local,
view plainprint?
1. #这里的引号中的LEOLINK是AP的名称
2. iwconfig ath0 essid "LEOLINK"
3. #这里的password指的是你连接AP的密码,如果你没有密码,那就请设置空或者注释下面的一行
4. #iwconfig ath0 key s:password
5. #配置无线网卡IP及掩码
6. ifconfig ath0 192.168.1.123 netmask 255.255.255.0 up
7. #添加缺省路由(网关)
8. route add default gw 192.168.1.1
#这里的引号中的LEOLINK是AP的名称 iwconfig ath0 essid "LEOLINK" #这里的password指的是你连接AP的密码,如果你没有密码,那就请设置空或者注释下面的一行 #iwconfig ath0 key s:password #配置无线网卡IP及掩码 ifconfig ath0 192.168.1.123 netmask 255.255.255.0 up #添加缺省路由(网关) route add default gw 192.168.1.1
-
- 帖子: 15
- 注册时间: 2007-09-05 21:44
-
- 帖子: 47
- 注册时间: 2007-05-16 18:27
晕~
楼主无线网卡不能用,怎么下载啊?buhuan 写了:重试几下呢?
-
- 帖子: 1
- 注册时间: 2007-10-18 16:18
发现不行阿,软件安上去后插卡,执行modprobe ath_pci没反应
# dmesg
pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
wifi%d: unable to attach hardware: 'No hardware present or device not yet supported' (HAL status 1)
# lspci -vv
02:00.0 Ethernet controller: Atheros Communications, Inc. Unknown device 001d (rev 01)
Subsystem: Atheros Communications, Inc. Unknown device 1055
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 34000000 (32-bit, non-prefetchable)
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-
# dmesg
pccard: CardBus card inserted into slot 0
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
ACPI: PCI Interrupt 0000:02:00.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
wifi%d: unable to attach hardware: 'No hardware present or device not yet supported' (HAL status 1)
# lspci -vv
02:00.0 Ethernet controller: Atheros Communications, Inc. Unknown device 001d (rev 01)
Subsystem: Atheros Communications, Inc. Unknown device 1055
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
Interrupt: pin A routed to IRQ 11
Region 0: Memory at 34000000 (32-bit, non-prefetchable)
Capabilities: [44] Power Management version 2
Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 PME-Enable- DSel=0 DScale=2 PME-