Wifi/Testing

From Gentoo Wiki
< Wifi
Jump to:navigation Jump to:search
This page is a translated version of the page Wifi/Testing and the translation is 100% complete.

시험

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

/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