治れるとは信じっているけど、心配ですね。かわいそう。
無線Lan設定メモ
秋葉原で購入しました。これがあればディスクトップも自由に配置できる。
早速設定してみました。
# ### 0.前提条件:CentOS6.4 minimal版インストール # ### 1.インストール前の確認 # ifconfig 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:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:672 (672.0 b) TX bytes:672 (672.0 b) # ifconfig -a eth0 Link encap:Ethernet HWaddr 00:22:15:F6:A6:AB 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) 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:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:672 (672.0 b) TX bytes:672 (672.0 b) wlan0 Link encap:Ethernet HWaddr 00:22:69:A2:2D:35 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) # ### 2.ドライバーインストールための必要なものを導入 # yum --disablerep=\* --enablerepo=c6-media install kernel-devel gcc make perl # ### 3.ドライバーインストール # mount /dev/cdrom /media/CentOS/ # cp -R /media/CentOS/linux /tmp/. # sh install.sh # ifconfig -a #再度確認(wlan1が表示できました) eth0 Link encap:Ethernet HWaddr 00:22:15:F6:A6:AB 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) 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:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:672 (672.0 b) TX bytes:672 (672.0 b) wlan0 Link encap:Ethernet HWaddr 00:22:69:A2:2D:35 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) wlan1 Link encap:Ethernet HWaddr xx:yy:zz:xx:yy:zz 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:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) # ### 4.無線LANを管理、設定する必要な物をインストール # yum --disablerep=\* --enablerepo=c6-media install wireless-tools wpa_supplicant # ### 5.設定,起動 # vi /etc/sysconfig/wpa_supplicant #コメント行は省略 INTERFACES="-i wlan1" DRIVERS="-D wext" OTHER_ARGS=" -f /var/log/wpa_supplicant.log -P /var/run/wpa_supplicant.pid" # wpa_passphrase "ESSID" "パスワード" >> /etc/wpa_supplicant/wpa_supplicant.conf # vi /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel network={ ssid="ESSID" #psk="パスワード" psk=ハッシュ化したパスワード key_mgmt=WPA-PSK proto=WPA pairwise=CCMP TKIP group=TKIP } # cp /etc/sysconfig/network-scripts/ifcfg-wlan0 /etc/sysconfig/network-scripts/ifcfg-wlan1 # vi /etc/sysconfig/network-scripts/ifcfg-wlan1 DEVICE=wlan1 HWADDR=xx:yy:zz:xx:yy:zz TYPE=Wireless ONBOOT=yes NM_CONTROLLED=yes BOOTPROTO=none IPADDR=192.168.0.100 GATEWAY=192.168.0.1 DNS1=192.168.0.1 PREFIX=24 # 起動 # wpa_supplicant -i wlan1 -c /etc/wpa_supplicant/wpa_supplicant.conf # ifconfig #再度確認(wlan1が表示できました) 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:6 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:672 (672.0 b) TX bytes:672 (672.0 b) wlan1 Link encap:Ethernet HWaddr xx:yy:zz:xx:yy:zz inet addr:192.168.0.100 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::ea4e:6ff:fe24:8c0e/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:812 errors:0 dropped:5 overruns:0 frame:0 TX packets:263 errors:0 dropped:3 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:236151 (230.6 KiB) TX bytes:85165 (83.1 KiB) #iwconfig lo no wireless extensions. wlan0 IEEE 802.11bg ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on eth0 no wireless extensions. wlan1 IEEE 802.11bgn ESSID:"ESSID" Nickname:"" Mode:Managed Frequency:2.417 GHz Access Point: XX:YY:ZZ:FF:DD:AA Bit Rate:65 Mb/s Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Encryption key:****-****-****-****-****-****-****-**** Security mode:open Power Management:off Link Quality=100/100 Signal level=79/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 # ### 7.接続確認 # ping -c 3 192.168.0.1 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. 64 bytes from 192.168.0.1: icmp_seq=1 ttl=64 time=6.95 ms 64 bytes from 192.168.0.1: icmp_seq=2 ttl=64 time=1.65 ms 64 bytes from 192.168.0.1: icmp_seq=3 ttl=64 time=1.67 ms --- 192.168.0.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2004ms rtt min/avg/max/mdev = 1.651/3.429/6.959/2.496 ms $ ping -c 3 192.168.0.100 # 外からも PING 192.168.0.100 (192.168.0.100): 56 data bytes 64 bytes from 192.168.0.100: icmp_seq=0 ttl=64 time=27.334 ms 64 bytes from 192.168.0.100: icmp_seq=1 ttl=64 time=52.405 ms 64 bytes from 192.168.0.100: icmp_seq=2 ttl=64 time=5.067 ms --- 192.168.0.100 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 5.067/28.269/52.405/19.337 ms
感想:windowsの「次へ」と比較すると結構難しい。メーカが提供している
手順、設定例などが英語&ドキュメントが多くで何を参照するば良いか変わらない。