
我有一個 Debian (squeeze) 桌面,我需要使用 D-Link 150 USB 無線網路適配器。到目前為止我已經這樣做了:
$ lsusb
...
Bus 001 Device 006: ID 2001:3c18 D-Link Corp.
...
在google上尋找解決方案後,發現需要安裝以下套件:
firmware-ralink_0.28+squeeze1_all.deb
我已經安裝了它,但 Debian 不想找到適配器。當我運行時lsmod
,我找不到我應該找到的內容:rt2870sta
...所以我手動加載它:modprobe rt2870sta
...當我lsmod
現在運行時有這些新行:
Module Size Used by
rt2870 360987 0
crc_ccitt 1323 1 rt2870sta
但ifconfig
沒有顯示任何新介面。
你能為我指出正確的方向嗎?
當我插入 USB 裝置時,dmesg
顯示以下內容:
[ 4514.452959] usb 2-1.3: new high speed USB device using ehci_hcd and address 3
[ 4514.570222] usb 2-1.3: New USB device found, idVendor=2001, idProduct=3c19
[ 4514.570250] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4514.570256] usb 2-1.3: Product: 11n Adapter
[ 4514.570280] usb 2-1.3: Manufacturer: Ralink
[ 4514.570284] usb 2-1.3: SerialNumber: 1.0
[ 4514.570701] usb 2-1.3: configuration #1 chosen from 1 choice
更多數據。
我查了一下ifconfig
,debian沒有偵測到任何無線適配器:
# ifconfig
eth0 ...
lo ...
的內容/etc/network/interfaces
是:
auto lo
iface lo inet loopback
allow-hotplug eth0
#NetworkManager#iface eth0 inet dhcp
我希望這些額外的數據有幫助
更多數據
運行後iwconfig
,ifconfig -a
我得到以下輸出:
# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
pan0 no wireless extensions.
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:27:0e:24:c1:4d
inet addr:192.168.1.225 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::227:eff:fe24:c14d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1003590 errors:0 dropped:3149 overruns:0 frame:0
TX packets:485162 errors:857 dropped:0 overruns:0 carrier:857
collisions:22136 txqueuelen:1000
RX bytes:1302629169 (1.2 GiB) TX bytes:31914674 (30.4 MiB)
Interrupt:20 Memory:e3200000-e3220000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:56406 errors:0 dropped:0 overruns:0 frame:0
TX packets:56406 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:10194174 (9.7 MiB) TX bytes:10194174 (9.7 MiB)
pan0 Link encap:Ethernet HWaddr 2a:c0:d2:a1:be:fa
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
(如您所見,我已連接到有線網絡eth0
,但我想擺脫電纜;))
我認為(儘管我不確定)這pan0
與無線適配器有關。現在,如果這是正確的,剩下的就是知道如何配置它了。
答案1
Debian 有相對完善的文件。
http://wiki.debian.org/WiFi
http://wiki.debian.org/WiFi/HowToUse
安裝 wpa_supplicant 並新增您的網路。