pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

PepoLinuxで無線LANにチャレンジー2 見事に無線LAN接続に成功しましたとさ。PING OK!(^o^)丿

2012-03-17 13:34:24 | Linux

ログからzd1211rwのfirmware fileがないとの事で

fedora15からfirmwareを仕込んできて

[root@~]# ls /lib/firmware/zd1211
zd1211_ub zd1211_uphm zd1211_ur zd1211b_uph zd1211b_uphr
zd1211_uph zd1211_uphr zd1211b_ub zd1211b_uphm zd1211b_ur

ESSIDを設定
[root@~]# iwconfig wlan0 essid himitu

WEPkeyを設定
[root@~]# iwconfig wlan0 iwconfig wlan0 enc 01234567890123456789012345

dhclientでIPを取得
[root@~]# dhclient wlan0

Internet Systems Consortium DHCP Client V3.0.5-RedHat
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory
SIOCSIFFLAGS: Connection timed out
Listening on LPF/wlan0/00:16:01:b3:c3:21
Sending on LPF/wlan0/00:16:01:b3:c3:21
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 (xid=0x40dd3b68)
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16 (xid=0x40dd3b68)
DHCPOFFER from 192.168.2.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 (xid=0x40dd3b68)
DHCPACK from 192.168.2.1 (xid=0x40dd3b68)
/sbin/dhclient-script: configuration for wlan0 not found. Continuing with defaults.
/etc/sysconfig/network-scripts/network-functions: line 78: wlan0: No such file or directory
bound to 192.168.2.2 -- renewal in 32596 seconds.

[root@~]# iwconfig wlan0
Warning: Driver for device wlan0 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken...

wlan0 IEEE 802.11bg ESSID:"himitu"
Mode:Managed Frequency:2.462 GHz Access Point: Not-Associated
Tx-Power=0 dBm
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:0123-4567-8901-2345-6789-0123-45
Power Management:on

[root@~]# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:16:01:B3:C3:21
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::216:1ff:feb3:c321/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:275 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:26072 (25.4 KiB) TX bytes:936 (936.0 b)

fedora15 からping
[root@fedora15 pepolinux]# ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_req=1 ttl=64 time=31.9 ms
64 bytes from 192.168.2.2: icmp_req=2 ttl=64 time=4.09 ms
64 bytes from 192.168.2.2: icmp_req=3 ttl=64 time=2.83 ms
64 bytes from 192.168.2.2: icmp_req=4 ttl=64 time=4.56 ms
64 bytes from 192.168.2.2: icmp_req=5 ttl=64 time=1.73 ms
64 bytes from 192.168.2.2: icmp_req=6 ttl=64 time=2.56 ms
64 bytes from 192.168.2.2: icmp_req=7 ttl=64 time=6.44 ms
64 bytes from 192.168.2.2: icmp_req=8 ttl=64 time=3.36 ms
^C
--- 192.168.2.2 ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7019ms
rtt min/avg/max/mdev = 1.739/7.197/31.968/9.458 ms

近頃有名な外人タレントのローラちゃんをまねて

ping OK! (^o^)丿

見事に無線LAN接続に成功しましたとさ

pepo


PepoLinuxで無線LANにチャレンジ(^o^)丿

2012-03-17 12:16:33 | Linux

さて、以前からPepoLinuxで無線LANと思っていたが

[root@~]# tail /var/log/messages

Mar 17 13:21:54 (none) kernel: usb 2-1: Product: USB2.0 WLAN
Mar 17 13:21:54 (none) kernel: usb 2-1: Manufacturer: Buffalo
Mar 17 13:21:54 (none) kernel: usb 2-1: reset high-speed USB device number 3 using ehci_hcd
Mar 17 13:21:54 (none) kernel: zd1211rw 2-1:1.0: phy1
[root@~]# iwconfig

lo no wireless extensions.

eth1 no wireless extensions.

Warning: Driver for device wlan0 has been compiled with version 22
of Wireless Extension, while this program supports up to version 20.
Some things may be broken...

wlan0 IEEE 802.11bg ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

eth0 no wireless extensions.

といかにも、無線LANが認識しているようなログメッセージと結果

しかしiwconfigで設定するとerrorとなる
[root@~]# iwconfig wlan0 channel 11
Error for wireless request "Set Frequency" (8B04) :
SET failed on device wlan0 ; Network is down.

でlogを確認するとなんや、zd1211rwのfirmware fileがないとおっしゃとる

Mar 17 13:24:42 (none) kernel: usb 2-1: Could not load firmware file zd1211/zd1211b_ub. Error number -2
Mar 17 13:24:42 (none) kernel: zd1211rw 2-1:1.0: couldn't load firmware. Error number -2
Mar 17 13:24:42 (none) firmware_helper[10901]: Loading of /lib/firmware/zd1211/zd1211b_ub for (unknown) driver failed: No such file or directory

pepo