[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: wpa adhoc через /etc/network/interfaces



On Sun, 8 Jun 2008 01:05:08 +0300
Oleg Matviychuk wrote:

> Привет всем.
> 
> Путем усердного грепанья манов и гугления получилось завести wifi в режиме
> adhoc с шифрованием wpa, на клиенте выглядящем так:
> 
> /etc/wpa_supplicant/wpa_supplicant.conf:
> network={
>     ssid="MathWay"
>     mode=1
>     proto=WPA
>     key_mgmt=WPA-NONE
>     pairwise=TKIP
>     psk="12345678"
> }
> 
> # wpa_supplicant -Dwext -ieth0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-SCAN-RESULTS 
> CTRL-EVENT-SCAN-RESULTS 
> Trying to associate with a6:e6:a5:a0:52:b8 (SSID='MathWay' freq=2412 MHz)
> CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (auth)
> [id=-1 id_str=] Associated with a6:e6:a5:a0:52:b8
> CTRL-EVENT-CONNECTED - Connection to a6:e6:a5:a0:52:b8 completed (reauth)
> [id=0 id_str=]
> 
> После ifconfig eth0 192.168.3.2.up, соответствующего конфига с другой стороны
> и некоторого времени ожидания, удаленная машинка пингуется.
> 
> А при таком варианте:
> /etc/network/interfaces:
> iface eth0 inet static
>     address 192.168.3.2
>     netmask 255.255.255.0
>     gateway 192.168.3.1
>     wpa-psk "12345678"
>     wpa-ssid "MathWay"
>     wpa-key-mgmt WPA-NONE
>     wpa-pairwise TKIP
>     wpa-mode 1
> 
Проспал добавить wpa-proto WPA. Впрочем, на результат это не повлияло.

> нифига не хендшейкится с логом:
> /var/log/wpa_supplicant.eth0.log:
> Invalid key management type
> (16). WPA: Failed to generate WPA
> IE. WPA: Failed to set WPA key management and encryption suites (no scan
> results) Invalid key management type
> (16). WPA: Failed to generate WPA
> IE. WPA: Failed to set WPA key management and encryption suites (no scan
> results) Invalid key management type
> (16). WPA: Failed to generate WPA
> IE. WPA: Failed to set WPA key management and encryption suites (no scan
> results) Invalid key management type
> (16). WPA: Failed to generate WPA
> IE. WPA: Failed to set WPA key management and encryption suites (no scan
> results)                            
> 
> Что ему не так? Да, можно через pre-up, но не очень хочется, учитывая
> интерграцию wpa_supplicant в interfaces.
> 
> -- 
> Матвийчук Олег aka Matvey, LRU#349092
> http://mathway.narod.ru
> 
> I am the "ILOVEGNU" signature virus. Just copy me to your signature.
> This email was infected under the terms of the GNU General Public License.
> 


-- 
Матвийчук Олег aka Matvey, LRU#349092
http://mathway.narod.ru

I am the "ILOVEGNU" signature virus. Just copy me to your signature.
This email was infected under the terms of the GNU General Public License.

Attachment: signature.asc
Description: PGP signature


Reply to: