古いノートにCentOS導入

CentOS 5.10インストール

2013/10/27
CentOS6.4をインストールしようとしたのだが、俺のノートのPentium MはPAE(Physical Address Extension)とやらに非対応らしくCentOS 6系はインストールできないらしい。
諦めてCentOS 5系の最新版5.10をインストールした。


無線LANファームウェアインストール

2013/10/28
dmesgにて
[root@localhost wireless2200BG]# dmesg | grep ipw
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.2kmprq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: ipw2200-bss.fw request_firmware failed: Reason -2
ipw2200: Unable to load firmware: -2
ipw2200: failed to register network device
ipw2200: probe of 0000:02:04.0 failed with error -5
などという表示がでていたため、ファームウェアをインストールすることに。

インテルから辿って行ったページhttp://ipw2200.sourceforge.net/firmware.phpからダウンロードしようとしたが、リンク切れっぽかったのでhttp://packages.atrpms.net/dist/common/ipw2200-firmware/からダウンロードしてインストール。
[root@localhost wireless2200BG]# rpm -ivh http://dl.atrpms.net/all/ipw2200-firmware-3.0-9.0.1.noarch.rpm
http://dl.atrpms.net/all/ipw2200-firmware-3.0-9.0.1.noarch.rpm を取得中
警告: /var/tmp/rpm-xfer.Wvzl4a: ヘッダ V4 DSA signature: NOKEY, key ID 66534c2b
準備中...                ########################################### [100%]
  1:ipw2200-firmware       ########################################### [100%]

再起動後、dmesgが変わったことを確認。
[root@localhost network-scripts]# dmesg | grep ipw
ipw2200: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.2.2kmprq
ipw2200: Copyright(c) 2003-2006 Intel Corporation
ipw2200: Detected Intel PRO/Wireless 2200BG Network Connection
ipw2200: Detected geography ZZR (14 802.11bg channels, 0 802.11a channels)

/lib/firmwareにipw2200関連のファイルがコピーされているようだ。
[root@localhost ~]# ls /lib/firmware/
LICENSE.ipw2200-fw  ipw2200-ibss.fw	microcode.dat
ipw2200-bss.fw	    ipw2200-sniffer.fw

modprobe.confにエイリアスを追加。
[root@localhost network-scripts]# cat /etc/modprobe.conf
alias eth0 e100
alias eth1 ipw2200

eth1の起動に失敗。。。
[root@localhost network-scripts]# ifup eth1
eth1 のIP情報を検出中...失敗しました; リンクがありません。ケーブルを確認してみては?
まだ何か設定が足りていない模様
と思いきや、eth0とかと同様にifcfg-eth1ファイルを編集してあげたら起動できた。

あとは、SSIDとかその辺りの設定をしてあげれば繋がるのだろうと思っておくことにする。


CUIでの無線LAN設定(WEP)

2013/10/29
iwlistでキャッチできるSSID一覧が取れる
[root@localhost network-scripts]# iwlist wlan0 scan
wlan0     Scan completed :
         Cell 06 - Address: yy:yy:yy:yy:yy:yy
                   ESSID:"aterm-xxx"
                   Protocol:IEEE 802.11bg
                   Mode:Master
                   Frequency:2.447 GHz (Channel 8)
                   Encryption key:on
                   Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                             9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                             48 Mb/s; 54 Mb/s
                   Quality=85/100  Signal level=-43 dBm  
                   Extra: Last beacon: 58ms ago

一時的な設定にはiwconfig
[root@localhost network-scripts]# iwconfig wlan0 essid aterm-xxx key s:password
keyに英文字を使用する場合は、「s:」で始めなければならないことに注意。

恒久的な設定はファイルに書き込む。とりあえず、DHCP設定。
[root@localhost network-scripts]# cat ifcfg-wlan0 
DEVICE=wlan0
TYPE=Wireless
ESSID=aterm-xxx
BOOTPROTO=dhcp
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes

DHCPでIPは割り当てられている様子
[root@localhost ~]# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
         inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:64 errors:0 dropped:0 overruns:0 frame:0
         TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:134182 (131.0 KiB)  TX bytes:1080 (1.0 KiB)
         Interrupt:11 Base address:0xa000 Memory:e0200000-e0200fff 
[root@localhost network-scripts]# iwconfig wlan0
wlan0     IEEE 802.11g  ESSID:"aterm-xxx"  Nickname:"localhost.localdomain"
         Mode:Managed  Frequency:2.447 GHz  Access Point: yy:yy:yy:yy:yy:yy   
         Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
         RTS thr:off   Fragment thr:off
         Encryption key:zzz   Security mode:open
         Power Management:off
         Link Quality=84/100  Signal level=-42 dBm  Noise level=-86 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:9
[root@localhost network-scripts]# dhclient -d 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/

Listening on LPF/wlan0/aa:aa:aa:aa:aa:aa
Sending on   LPF/wlan0/aa:aa:aa:aa:aa:aa
Sending on   Socket/fallback
DHCPREQUEST on wlan0 to 255.255.255.255 port 67 (xid=0x3fb5df64)
DHCPACK from 192.168.0.1 (xid=0x3fb5df64)
bound to 192.168.0.101 -- renewal in 34665 seconds.

ここまでできているのに、なぜかGW(192.168.0.1)へのpingは通らない。。。
あと一歩だと思うんだけどなー。
eth0とwlan0は共存できないとか、wifiルータ側の問題かな。。。
最終更新:2013年10月30日 01:22