This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.

Please visit our production wiki at https://wiki.gentoo.org

Wifi/ko

From Gentoo Wiki (test)
Jump to:navigation Jump to:search
This page is a translated version of the page Wifi and the translation is 94% complete.
Resources

This article describes the setup of a wifi (wireless) network device.

WiFi 설치 과정

If a wifi connection is needed while installing Gentoo, note that the Gentoo minimal install CD has a limited number of drivers available, and provides only wpa_cli (and not wpa_gui) for configuring for WPA/WPA2/Enterprise connections.

If the minimal install CD does not contain the required drivers or the graphical frontend to wpa_supplicant is preferred, choose a different live CD such as the System Rescue CD. Be aware that some special steps may be required when using a non-Gentoo live CD.

하드웨어 감지

First detect the wifi controllers. lspci or lsusb are command-line tools that can be used for this task.

If a Linux (LiveCD/USB) is booted that makes a wifi connection:

root #lspci -k

The driver will be identified on one of the lines starting with Kernel driver in use:.

If the booted system does not make a wifi connection, then obtain a full list of hardware identifiers from the current system. This list can be used to identify the proper driver later:

root #lspci -n

명령에서 나타내는 PCIID 목록을 복사한 후 http://kmuto.jp/debian/hcl/ 에 붙여넣으십시오.

USB 장치에 대해 동일한 접근 방식을 취할 수 있습니다. 우선 시스템에서 발견한 USB 장치 목록을 확인하십시오:

user $lsusb

이 명령은 PCI ID, 제조사, 제조, 모델, 시스템에 붙은 모든 USB 장치 칩셋을 나타냅니다. 여기서 칩셋 정보는 상당히 쓸만한 정보가 될 수 있습니다. linuxwireless.org <chipset>으로 구글에서 검색하면 보통 USB NIC 드라이버 및 펌웨어 이름을 간단하게 금방 찾을 수 있습니다.

대신, lshw 명령을 활용하여 필요한 정보를 확인할 수 있습니다:

root #lshw | grep -i driver

이 명령은 PCI 또는 USB 기반에 상관 없이 모든 드라이버 목록을 보여줍니다.

Kernel

드라이버를 확인했으면, 리눅스 커널을 설정할 차례죠.

IEEE 802.11

최소한 cfg80211mac80211 모듈을 활성화하십시오. 일부 무선 통신 드라이버에서는 전송률 제어 알고리즘도 필요합니다.

커널 linux-4.1
[*] Networking support  --->
    [*] Wireless  --->
        <*>   cfg80211 - wireless configuration API
        [ ]     nl80211 testmode command
        [ ]     enable developer warnings
        [ ]     cfg80211 regulatory debugging
        [ ]     cfg80211 certification onus
        [*]     enable powersave by default
        [ ]     cfg80211 DebugFS entries
        [ ]     use statically compiled regulatory rules database
        [ ]     cfg80211 wireless extensions compatibility
        <*>   Generic IEEE 802.11 Networking Stack (mac80211)
        [*]   Minstrel
        [*]     Minstrel 802.11n support
        [ ]       Minstrel 802.11ac support
              Default rate control algorithm (Minstrel)  --->
        [ ]   Enable mac80211 mesh networking (pre-802.11s) support
        -*-   Enable LED triggers
        [ ]   Export mac80211 internals in DebugFS
        [ ]   Trace all mac80211 debug messages
        [ ]   Select mac80211 debugging features  ----

Minstrel과 Minstrel의 802.11n 지원 항목은 전송률 제어 알고리즘 입니다.

WEXT

The "cfg80211 wireless extensions compatibility" option aka WEXT will support old wireless-tools and iwconfig.

커널
[*] Networking support  --->
    [*] Wireless  --->
        [*]     cfg80211 wireless extensions compatibility

장치 드라이버

다음, 앞서 드라이버와 하드웨어를 발견한대로 각각의 적절한 커널 옵션을 활성화해야합니다. 추천 방식모듈 방식의 드라이버를 빌드하는 방법입니다. 또한 무선 네트워크 카드에서 WPA 또는 WPA2 암호화를 활용한다면 커널에서 AES 암호화를 지원하도록 활성화했는지 확인하십시오.

커널
'"`UNIQ--pre-00000005-QINU`"'
중요
드라이버를 모듈(<M>)로 빌드하는 대신, 커널에 넣어(<*>) 빌드하면, 펌웨어도 마찬가지로 커널에 넣어야 합니다.
잊지 마시고, 설정을 바꾼 다음 커널을 다시 빌드 하십시오.

LED 지원

패킷 수신/전송 활동에 대한 LED 동작을 활성화하려면 다음 옵션을 넣어 커널을 컴파일하십시오:

커널
'"`UNIQ--pre-00000008-QINU`"'

펌웨어

커널 드라이버 말고도, 일부 칩셋에서는 펌웨어가 필요합니다. 필요하다면, 다음 목록을 가리킨 후 설치하십시오:

root #emerge --ask sys-kernel/linux-firmware
Wifi device Driver Firmware Note
Atheros AR9271 & AR7010 ath9k_htc sys-kernel/linux-firmware
Broadcom 43xx wireless support b43 / b43legacy sys-firmware/b43-firmware Aircrack-ng ready, most probably the best choice if your bcm43xx device is supported
Broadcom PCIe and SDIO/USB devices brcmsmac / brcmfmac sys-kernel/linux-firmware Lacks powersaving, LED support and other features
Broadcom 43xx wireless support wl net-wireless/broadcom-sta Proprietary, no AP or Monitor modes, Comparison of bcm43xx drivers
Intel PRO/Wireless 2200BG ipw2200 sys-firmware/ipw2200-firmware
Intel PRO/Wireless 3945ABG/BG iwlegacy sys-kernel/linux-firmware
Intel Wireless WiFi 4965AGN iwl4965 sys-kernel/linux-firmware
All other Intel Wireless devices iwlwifi sys-kernel/linux-firmware See the iwlwifi article for detailed instructions.
Qualcomm Atheros QCA6174 ath10k_pci ath10k-firmware See Qualcomm_Atheros_QCA6174#Firmware
Ralink/MediaTek USB devices e.g. rt2800usb sys-kernel/linux-firmware
Realtek RTL8191SE & RTL8192SE rtl8192se sys-kernel/linux-firmware
Realtek 8723AU/8723BU/8191EU/8192EU/8188EU/8188RU rtl8xxxu sys-kernel/linux-firmware May need the CONFIG_RTL8XXXU_UNTESTED kernel option to find all devices. Only those verified by kernel developers are enabled by default.

드라이버에서 펌웨어를 요구하지만 목록에 없다면 직접 다운로드하여 /lib/firmware 디렉터리에 넣어야 합니다.

Network device names

Network device names eth0, wlan0, etc. as provided by the kernel could be changed on boot (see dmesg) by the /lib/udev/rules.d/80-net-name-slot.rules udev rule.

To keep the classic naming this rule can be overwritten with an equally named empty file in the /etc/udev/rules.d directory:

root #touch /etc/udev/rules.d/80-net-name-slot.rules

WPA supplicant

무선 네트워크를 WPA 또는 WPA2로 설정하면, wpa_supplicant를 활용해야합니다. 젠투 리눅스에서 무선 네트워크를 설정하는데 필요한 정보를 찾는다면, 젠투 핸드북의 무선 네트워크 장을 읽어보십시오.


시험

새 커널로 다시 부팅했거나 모듈을 불러온 후라면, 다음 방식으로 장치 가용성을 확인해볼 수 있습니다:

/sys 파일 시스템

Get the device name by listing the /sys/class/net directory contents using ls -al or the tree command (provided by the app-text/tree package):

user $tree /sys/class/net
/sys/class/net/
├── enp2s14 -> ../../devices/pci0000:00/0000:00:1e.0/0000:02:0e.0/net/enp2s14
├── lo -> ../../devices/virtual/net/lo
├── sit0 -> ../../devices/virtual/net/sit0
└── wlp8s0 -> ../../devices/pci0000:00/0000:00:1c.0/0000:08:00.0/net/wlp8s0

ip 명령

장치 이름을 가져오고 무선 네트워크 카드를 발견했는지 확인하려면, 다음 ip command 명령을 실행하십시오:

user $ip addr
3: wlan0:   ...

ifconfig 명령

ifconfig 명령은 sys-apps/net-tools 꾸러미에 들어있습니다. 발견한 모든 네트워크 카드와 아직 활성화하지 않았는지 여부를 확인하려면 ifconfig -a 명령을 활용하십시오:

user $ifconfig -a
wlan0     ...

네트워크 카드는 다음과 같이 활성화할 수 있습니다:

root #ifconfig -v wlan0 up
SIOCSIFFLAGS: Operation not possible due to RF-kill
WARNING: at least one error occurred. (-1)

이 예제에서, 무선 주파수 강제 종료 상태를 설정하여 무선 네트워크 카드 활성화에 실패했습니다(보통 베이의 전력 소모 상태를 유지하고 무선 네트워크에 갑작스럽게 연결하지 않는 증상).

iw 명령

무선 네트워크 카드 드라이버에서 nl80211 스택을 지원하면 net-wireless/iw 꾸러미에서 제공하는 iw 명령에서 발견한 무선 네트워크 카드를 보여줄 수 있습니다:

root #iw dev
   phy#0
	Interface wlan0
		ifindex 4
		type managed

dmesg

Check the output of dmesg.

user $dmesg | grep -i -E 'xx:xx.x|wlan|iwl|80211'

Be sure to replace

문제 해결

추가 참조

외부 자료