Oi Otacílio 2016-08-15 21:42 GMT-03:00 Otacílio <otacilio.n...@bsd.com.br>:
> Em 15/08/2016 20:23, Clayton Eduardo dos Santos escreveu: > >> Em 15/08/2016 18:24, Eduardo Lemos de Sa escreveu: >> >>> Prezados >>> >>> Estou tentando conectar um notebook rodando o 10.3-RELEASE r 297264 >>> (patch0) à rede internet. Para isto, segui o que mandava o handbook: >>> >>> 1) >>> >>> *ifconfig | grep -B3 -i wireless* >>> >>> >>> e obtive >>> >>> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu >>> 2290 >>> ether d0:df:9a:0a:f3:91 >>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> >>> media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng >>> -- >>> ether d0:df:9a:0a:f3:91 >>> inet 10.0.0.4 netmask 0xffffff00 broadcast 10.0.0.255 >>> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> >>> media: IEEE 802.11 Wireless Ethernet MCS mode 11ng >>> >>> >>> Conclui (o que também havia sido identificado pelo bsdconfig) que se >>> trata >>> de um Atheros (ath0) >>> >>> 2) Criei um arquivo /etc/wpa_supplicant.conf: >>> >>> network={ >>> ssid="LabQCompEdu" >>> psk="passworddoacessoarede" >>> } >>> >>> >>> 3) Adicionei ao /etc/rc.conf >>> >>> wlans_*ath0*="wlan0" >>> ifconfig_wlan0="WPA SYNCDHCP" >>> >>> 4) sudo service netif restart (a saída foi): >>> >>> /etc/rc.d/netif: WARNING: wlan0 does not exist. Skipped. >>> Stopping Network: lo0 re0 ath0. >>> lo0: flags=8048<LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 >>> options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> >>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> >>> re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 >>> >>> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> >>> >>> ether 78:e3:b5:53:2a:f8 >>> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> >>> media: Ethernet autoselect (100baseTX <full-duplex>) >>> status: active >>> ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290 >>> ether d0:df:9a:0a:f3:91 >>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> >>> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) >>> status: no carrier >>> ifconfig: ioctl (SIOCAIFADDR): Invalid argument >>> Starting wpa_supplicant. >>> Starting dhclient. >>> wlan0: no link ..... got link >>> DHCPREQUEST on wlan0 to 255.255.255.255 port 67 >>> DHCPREQUEST on wlan0 to 255.255.255.255 port 67 >>> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5 >>> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 >>> DHCPOFFER from 10.0.0.1 >>> DHCPREQUEST on wlan0 to 255.255.255.255 port 67 >>> DHCPREQUEST on wlan0 to 255.255.255.255 port 67 >>> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7 >>> DHCPOFFER from 10.0.0.1 >>> DHCPREQUEST on wlan0 to 255.255.255.255 port 67 >>> DHCPACK from 10.0.0.1 >>> bound to 10.0.0.4 -- renewal in 43200 seconds. >>> Starting Network: lo0 re0 ath0. >>> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384 >>> options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6> >>> inet6 ::1 prefixlen 128 >>> inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 >>> inet 127.0.0.1 netmask 0xff000000 >>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> >>> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu >>> 1500 >>> >>> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE> >>> >>> ether 78:e3:b5:53:2a:f8 >>> inet 10.0.0.2 netmask 0xffffff00 broadcast 10.0.0.255 >>> nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> >>> media: Ethernet autoselect (100baseTX <full-duplex>) >>> status: active >>> ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu >>> 2290 >>> ether d0:df:9a:0a:f3:91 >>> nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> >>> media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng >>> status: associated >>> >>> >>> Eu entendi que há um warning dizendo que não há uma interface wlan0, mas >>> que, >>> >>> a ath0 foi reconhecida. >>> >>> 5) A partir daqui, talvez, comecem os meus erros: >>> >>> Eu adicionei ao /boot/load.conf o drive da Atheros e os módulos de >>> segurança. >>> >>> if_ath_load="YES" >>> wlan_wep_load="YES" >>> wlan_ccmp_load="YES" >>> wlan_tkip_load="YES" >>> >>> 6) Rebootei a máquina e vi que o driver é reconhecido: >>> >>> >>> Aug 15 17:29:26 hp-edulsa kernel: ath0: <Atheros 9285> mem >>> 0xf0300000-0xf030ffff irq 17 at device 0.0 on pci7 >>> Aug 15 17:29:26 hp-edulsa kernel: [ath] AR9285E_20 detected; using XE TX >>> gain tables >>> Aug 15 17:29:26 hp-edulsa kernel: [ath] AR9285 Main LNA config: LNA1 >>> Aug 15 17:29:26 hp-edulsa kernel: [ath] AR9285 Alt LNA config: LNA2 >>> Aug 15 17:29:26 hp-edulsa kernel: [ath] LNA diversity disabled, Diversity >>> disabled >>> Aug 15 17:29:26 hp-edulsa kernel: ath0: [HT] enabling HT modes >>> Aug 15 17:29:26 hp-edulsa kernel: ath0: [HT] 1 stream STBC receive >>> enabled >>> Aug 15 17:29:26 hp-edulsa kernel: ath0: [HT] 1 RX streams; 1 TX streams >>> Aug 15 17:29:26 hp-edulsa kernel: ath0: AR9285 mac 192.2 RF5133 phy 14.0 >>> Aug 15 17:29:26 hp-edulsa kernel: ath0: 2GHz radio: 0x0000; 5GHz radio: >>> 0x00c0 >>> >>> >>> 7) Mas na hora de varrer procurando as redes disponíveis (pelo menos uma >>> deveria sê-lo porque estava no wpa_supplicant), eu rodei o >>> >>> sudo ifconfig wlan create wlandev atho >>> >>> e recebi a mensagem de erro: >>> ifconfig: create: badvalue >>> >>> Andei vasculhando em vários lugares procurando tutoriais de como rodar >>> este >>> último comando e, em todos, a sintaxe é a mesma. >>> >>> Por favor, alguém tem uma sugestão de como contornar isto? Minha >>> suspeita é >>> de que uma das causas pode ser que eu não tenha atualizado o sistema mas, >>> por outro lado, esta tarefa é razoavelmente corriqueira e deveria estar >>> operacional desde o lançamento da release. >>> >>> Obrigado pela atenção >>> >>> Edu >>> >> >> Boa noite Eduardo, >> >> Seria interessante mostrar a saída do comando pciconf -lv para maiores >> informações sobre seu dispositivo wireless. >> >> Att, >> >> Clayton >> > > Posso estar falando uma besteira sem tamanho , mas o comando não é > > sudo ifconfig wlan create wlandev atho > > Eu acho que o correto é: > > sudo ifconfig wlan create wlandev ath0 > > Sobre o /etc/wpa_supplicant.conf eu uso esse: > > root@squitch:/home/ota # cat /etc/wpa_supplicant.conf > ctrl_interface=/var/run/wpa_supplicant > eapol_version=2 > ap_scan=1 > fast_reauth=1 > > network={ > ssid="VizinhoVelhaco" > psk="12345678" > priority=5 > } > network={ > priority=0 > key_mgmt=NONE > } > > A segunda entrada acho que é para conectar em redes abertas. > > []'s > -Otacílio > > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > Se eu faço: sudo ifconfig wlan create wlandev ath0 eu obtenho uma mensagem de erro: ifconfig: SIOCIFCREATE2: input/output error e seu eu substituo o wlan por wlan0 e ainda recebo a mensagem de erro ifconfig: create: bad value Parece que todo o problema está no create wlan0 ou na criação do wlandev. Obrigado pela atenção Eduardo -- Eduardo Lemos de Sa Associated Professor Level 4 Dep. Quimica da Universidade Federal do Paraná fone: +55(41)3361-3300 fax: +55(41)3361-3186 ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd