Connect to Network without assign IP address

Carlos Patricio Amigo Haering camigo
Tue Feb 26 10:56:15 PST 2013


What I'm doing wrong ? wlan0 doesn't have assigned IP. I have to set 
special parameter to the network if i'm not using IP?

# service network-manager stop
# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant

network={
	ssid="OF"
	bssid=20:aa:4b:54:f1:ce
	key_mgmt=WPA-PSK
	group=CCMP
	pairwise=CCMP
	proto=RSN
	psk="*****"
}

# ifconfig wlan0
wlan0     Link encap:Ethernet  direcci?nHW 00:1b:77:15:7d:d1
           Direcci?n inet6: fe80::21b:77ff:fe15:7dd1/64 Alcance:Enlace
           ACTIVO DIFUSI?N MULTICAST  MTU:1500  M?trica:1
           Paquetes RX:32 errores:0 perdidos:0 overruns:0 frame:0
           Paquetes TX:0 errores:0 perdidos:0 overruns:0 carrier:0
           colisiones:0 long.colaTX:1000
           Bytes RX:3880 (3.8 KB)  TX bytes:0 (0.0 B)

# wpa_supplicant -B -Dnl80211 -i wlan0 -c 
/etc/wpa_supplicant/wpa_supplicant.conf
# wpa_cli
wpa_cli v1.0
Copyright (c) 2004-2012, Jouni Malinen <j at w1.fi> and contributors

Selected interface 'wlan0'

Interactive mode

<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE-PIN
<3>SME: Trying to authenticate with 20:aa:4b:54:f1:ce (SSID='OF' 
freq=2412 MHz)
<3>Trying to associate with 20:aa:4b:54:f1:ce (SSID='OF' freq=2412 MHz)
<3>Associated with 20:aa:4b:54:f1:ce
<3>CTRL-EVENT-DISCONNECTED bssid=20:aa:4b:54:f1:ce reason=3
<3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
<3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
<3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
<3>CTRL-EVENT-SCAN-RESULTS
<3>WPS-AP-AVAILABLE-PIN
<3>SME: Trying to authenticate with 20:aa:4b:54:f1:ce (SSID='OF' 
freq=2412 MHz)
<3>Trying to associate with 20:aa:4b:54:f1:ce (SSID='OF' freq=2412 MHz)
<3>Associated with 20:aa:4b:54:f1:ce
<3>CTRL-EVENT-DISCONNECTED bssid=20:aa:4b:54:f1:ce reason=3
<3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
<3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
<3>CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3



El 2013-02-26 14:49, Arend van Spriel escribi?:


> On 02/26/13 18:25, Carlos Patricio Amigo Haering wrote:
>> Hi everybody,
>>
>> I'm working with bridging and virtual ethernet interfaces (veth). 
>> So, I
>> want to connect wlan0 to a AP without assign it a IP. How can I do 
>> that?
>> I tried in wpa_cli uncessfully:
>>
>>> add network
>> 0
>>> set_network 0 ssid "OF"
>>> set_network 0 psk "pass"
>>
>> - I'm using Ubuntu 12.10 and wpa_supplicant v1.0
>> - The AP doesn't have dhcp server.
>
> Uhm. It is kind of trivial. If you disable network-manager and
> kick-off wpa_supplicant with a sensible configuration for your AP, 
> you
> should get there. Just do not configure it with an IP address.
>
> Regards,
> Arend
>
>>
>> Thanks in advance.
>>
>> Regards.
>>
>> _______________________________________________
>> HostAP mailing list
>> HostAP at lists.shmoo.com
>> http://lists.shmoo.com/mailman/listinfo/hostap
>>




More information about the Hostap mailing list