Главная » Статьи » Slack Ware » Установка/Настройка ОС |
Настройка Wi-Fi SlackWare
Рассмотрим быстрый способ: сетевая Wi-Fi карта производства D-Link или другой на чипе Atheros Communications. смотрим что подключено к PCI #lspci -v 01:09.0 Ethernet controller: Atheros Communications, Inc. AR5005G 802.11abg NIC (rev 01) Subsystem: D-Link System Inc D-Link AirPlus G DWL-G510 Wireless PCI Adapter(rev.B) Flags: bus master, medium devsel, latency 32, IRQ 12 Memory at df000000 (32-bit, non-prefetchable) [size=64K] Capabilities: [44] Power Management version 2 #lsdev #lsmod #cd /usr/src #wget http://heanet.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.3.1.tar.gz #tar xzf madwifi-0.9.3.1.tar.gz #cd madwifi-0.9.3.1/ #make #make install # modinfo ath_pci author: Errno Consulting, Sam Leffler description: Support for Atheros 802.11 wireless LAN cards. version: 0.9.3.1 license: Dual BSD/GPL vermagic: 2.6.21.5 mod_unload 486 gcc-3.4 depends: ath_hal,wlan #modprobe ath_pci Драйвера в порядке. Пробуем подключиться к какой-нибудь открытой сетке. Посмотрим что есть вокруг. # wlanconfig ath0 list scan Golden_WiFi 00:19:e1:00:56:f0 1 54M 13:0 100 ESs Golden_WiFi 00:19:e1:ff:c7:e0 1 54M 7:0 100 ESs SSWA 110 00:19:5b:4f:9d:c5 6 54M 1:0 100 EPSs ATH homenetwork 00:02:6f:23:45:c3 11 54M 21:0 100 ESs Golden_WiFi 00:16:ca:f4:d5:10 2 54M 18:0 100 ESs Golden_WiFi 00:18:b0:ee:ef:c0 2 54M 28:0 100 ESs Golden_WiFi 00:19:e1:ff:c9:f0 2 54M 23:0 100 ESs mosselmash 00:13:46:97:3f:a1 9 54M 58:0 100 EPSs WPA pss-hetwork 00:60:b3:65:6f:9d 9 11M 7:0 100 EP Matador AP 00:1a:92:42:2a:d9 6 54M 3:0 100 EPs dna 00:11:95:3e:61:13 6 54M 1:0 100 EPSs WPA ATH Golden_WiFi 00:18:b0:fe:04:80 1 54M 9:0 100 ES Golden_WiFi 00:19:e1:ff:d4:e0 1 54M 2:0 100 ESs Golden_WiFi 00:19:e1:ff:c3:e0 1 54M 8:0 100 ESs Golden_WiFi 00:18:b0:fe:51:70 1 54M 10:0 100 ESs Golden_WiFi 00:19:e1:ff:c9:70 1 54M 9:0 100 ESs Golden_WiFi 00:16:ca:f4:d8:a0 1 54M 10:0 100 ESs Golden_WiFi 00:19:e1:00:a7:c0 1 54M 6:0 100 ESs koptevo-msk... 00:0b:9d:00:09:13 1 11M 11:0 100 E Golden_WiFi 00:19:e1:ff:d1:00 1 54M 10:0 100 ESs Golden_WiFi 00:18:b0:ef:0d:d0 1 54M -1:0 100 ESs ADSL_Wirele... 00:60:b3:c4:c3:31 11 54M -1:0 200 ESBs Golden_WiFi 00:16:ca:f4:d6:90 2 54M 14:0 100 ESs Golden_WiFi 00:19:e1:ff:cf:40 2 54M 6:0 100 ESs Golden_WiFi 00:16:ca:f5:08:c0 2 54M 13:0 100 ESs Golden_WiFi 00:19:e1:00:31:10 2 54M 5:0 100 ESs Golden_WiFi 00:19:e1:ff:cf:00 2 54M 8:0 100 ESs Golden_WiFi 00:19:e1:00:32:70 2 54M 7:0 100 ESs Golden_WiFi 00:14:0d:ef:0f:10 2 54M 1:0 100 ESs Golden_WiFi 00:18:b0:fe:03:10 2 54M 7:0 100 ESs Golden_WiFi 00:18:b0:ee:e7:b0 2 54M 6:0 100 ESs Golden_WiFi 00:19:e1:00:a8:50 2 54M 9:0 100 ESs Golden_WiFi 00:16:ca:f4:f0:c0 2 54M 8:0 100 ESs koptevo-msk... 00:0b:9d:00:0a:b0 5 11M 0:0 100 E koptevo-msk... 00:0b:9d:00:08:c7 5 11M 3:0 100 E 0x000000000... 00:12:01:eb:e0:70 9 54M 1:0 100 EPSs HE6O-3DECb2 00:0f:3d:01:f0:99 6 22M 8:0 100 EPB Выбираем открытую сеть с максимальным соотношением сигнал:шум (S:N). ath0 IEEE 802.11g ESSID:"Golden_WiFi" Nickname:"wsl" Mode:Managed Frequency:2.417 GHz Access Point: 00:19:E1:FF:C9:F0 Bit Rate:36 Mb/s Tx-Power:18 dBm Sensitivity=0/3 Retry:off RTS thr:off Fragment thr:off Encryption key:off Power Management:off Link Quality=26/94 Signal level=-69 dBm Noise level=-95 dBm Rx invalid nwid:112234 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 # ifconfig ath0 inet6 addr: fe80::211:95ff:fee7:2fdc/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:1 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:70 (70.0 b) Удачно. Запрашиваем IP. #/sbin/dhcpcd -d -t 10 ath0 dhcpcd: MAC address = 00:11:95:e7:2f:dc dhcpcd: your IP address = 172.17.84.93 #ifconfig ath0 inet addr:172.17.84.93 Bcast:172.17.255.255 Mask:255.254.0.0 inet6 addr: fe80::211:95ff:fee7:2fdc/64 Scope:Link UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1 RX packets:58 errors:0 dropped:0 overruns:0 frame:0 TX packets:134 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:17294 (16.8 KiB) TX bytes:11217 (10.9 KiB) Вот и все. Для автоматической конфигурации при старте системы правим /etc/rc.d/rc.wlan. Ищем строчку if ! $MODPROBE p80211; then и меняем на if ! $MODPROBE ath_pci; then. В файле rc.inet1.conf: IFNAME[4]="ath0" USE_DHCP[4]="yes" WLAN_ESSID[4]="Golden_WiFi" | |
Просмотров: 12139
| Теги: |
Всего комментариев: 0 | |