Gentoo Linux >> System Administration for Gentoo Linux
|
[목차] |
제3장 System Administration
6. 무선랜 사용하기 (Intel Corporation PRO/Wireless 3945 Compatible Projects) 13.1. Kernel configuration 커널 설정은 버전에 따라 다른것 같다. Kernel 2.6.20을 사용하여 테스트 하였다. # cd /usr/src/linux # make menuconfig Networking ---> <*> Generic IEEE 802.11 Networking Stack [ ] Enable full debugging output <*> IEEE 802.11 WEP encryption (802.1x) <*> IEEE 802.11i CCMP support <*> IEEE 802.11i TKIP encryption < > Software MAC add-on to the IEEE 802.11 networking stack Device Drivers ---> Network Device support ---> Wireless LAN (non-hamradio) ---> [*] Wireless LAN drivers (non-hamradio) & Wireless Extensions Cryptographic options ---> [*] Cryptographic API <*> AES cipher algorithms <*> ARC4 cipher algorithm <*> Michael MIC keyed digest algorithm # make && make modules_install && make install 13.2. Installation # vi /etc/portage/package.keywords net-wireless/ipw3945 ~x86 net-wireless/ipw3945-ucode ~x86 net-wireless/ipw3945d ~x86 # emerge -av ipw3945 wireless-tools wpa_supplicant # vi /etc/modules.autoload.d/kernel-2.6 ipw3945 ieee80211_crypt_tkip ieee80211_crypt_wep # rc-update add ipw3945d default 13.3. Configuration 인증 방식에 따라 설정방법이 틀린다. (1) 일반적으로 공개된 무선랜 환경일 경우 # vi /etc/conf.d/net config_eth0=( "dhcp" ) ### Wired LAN modules=( "wpa_supplicant" ) ### Wireless LAN wpa_supplicant_eth1="-Dwext" config_eth1=( "dhcp" ) dhcp_eth1="nontp nonis" depend_eth1() { need ipw3945d } # vi /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel update_config=0 fast_reauth=1 network={ ssid="MySSID" priority=5 } (2) 암호가 설정된 무선랜 환경일 경우 # vi /etc/conf.d/net config_eth0=( "dhcp" ) ### Wired LAN modules=( "iwconfig" ) ### Wireless LAN wpa_supplicant_eth1="-Dwext" config_eth1=( "dhcp" ) dhcp_eth1="nontp nonis" depend_eth1() { need ipw3945d } # vi /etc/conf.d/wireless key_MySSID="s:MyPassword enc open" preferred_aps=( "MySSID" ) # vi /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel eapol_version=1 update_config=0 ap_scan=1 network={ ssid="MySSID" key_mgmt=NONE auth_alg=SHARED priority=5 } (3) EAP 인증방식을 지원하는 무선랜 환경일 경우 # vi /etc/conf.d/net config_eth0=( "dhcp" ) ### Wired LAN modules=( "wpa_supplicant" ) ### Wireless LAN wpa_supplicant_eth1="-Dwext" config_eth1=( "dhcp" ) dhcp_eth1="nontp nonis" depend_eth1() { need ipw3945d } # vi /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=wheel eapol_version=1 update_config=0 ap_scan=1 fast_reauth=1 network={ ssid="KNET" key_mgmt=WPA_EAP eap=TTLS identity="MyID" password="MyPW" pairwise=TKIP group=TKIP auth_alg=LEAP priority=5 } 13.4. Init script # ln -s /etc/init.d/net.lo /etc/init.d/net.eth1 # rc-update add net.eth1 default 13.5. Rebooting # reboot |
[목차] |