分页: 1 / 1

[求助]TL-WN310G(TP-Link 无线网卡)在ubuntu下不能识别

发表于 : 2007-10-09 21:09
kuhuo4321
估计是没有支持的驱动,请问大虾们怎么解决阿,刚买的网卡不能上网,急死人了~~~~~~sos

发表于 : 2007-10-09 21:47
buhuan
楼主别急,你的网卡和我的一样,肯定能用,等下给你找贴

发表于 : 2007-10-09 21:49
buhuan
http://www.icnote.com/read.php?22

我也是照着这个帖子实现支持我的网卡的,现在用起来一点问题都没有

发表于 : 2007-10-09 22:57
speme
问个问题,有人用过USB的无线网卡没?在ubuntu下能驱动么?

发表于 : 2007-10-10 9:38
kuhuo4321
楼上的大哥,你给的网站都打不开阿,这该怎么办呢

发表于 : 2007-10-10 9:41
kuhuo4321
终于打开了,但是这个上面介绍是说得FC6上的,而我用的是ubuntu,好像都不一样啊

发表于 : 2007-10-10 9:49
buhuan
原理一样,其实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

发表于 : 2007-10-10 19:04
kuhuo4321
谢谢楼上的,这么热心。我今天按照你说的试了,但是第一步就卡不住了,郁闷。我用 sudo apt-get install madwifi-tools 的时候发现根本不能下载,最后提示连接超时,但是下载别的东西都可以的。不知道为什么???

发表于 : 2007-10-10 19:30
buhuan
重试几下呢?

晕~

发表于 : 2007-10-12 11:49
lingyunyuan
buhuan 写了:重试几下呢?
楼主无线网卡不能用,怎么下载啊?

Re: 晕~

发表于 : 2007-10-12 12:27
buhuan
lingyunyuan 写了:
buhuan 写了:重试几下呢?
楼主无线网卡不能用,怎么下载啊?

最后提示连接超时,但是下载别的东西都可以的

楼主应该是连了网卡的

发表于 : 2007-10-18 16:20
parc
发现不行阿,软件安上去后插卡,执行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-

发表于 : 2007-10-18 16:37
buhuan
楼上的,装了madwifi没?