hostapd startup

Owen Shoemaker owens at speakeasy.net
Thu Dec 5 16:12:51 EST 2002


I have been trying to get hostapd working and have had some troubles.  
After configuring my network on wlan0 I fire up hostapd with 'hostapd 
-xm wlan0' and I am able to authenticate with a winXP machine.   The 
problem is that even after authenticating and verifying that I am 
authenticated on the AP I can't get any IP connectivity.  Does anyone 
know of any good documentation other than the PRISM2 readme?  Maybe 
tips on network config and startup scripts?  Do I need to add IP info 
to the wlan0ap device?  Shouldn't after auth just forward the traffic 
to the wlan0 device?  I haven't really dug too deep yet but just wanted 
to know if my settings were correct.

Here are my current settings:
owens at paragon:~$ less iwconfig_list
wlan0     IEEE 802.11-b  ESSID:"test"
           Mode:Master  Frequency:2.422GHz  Access Point: 
00:02:6F:01:FB:1B
           Bit Rate:11Mb/s   Tx-Power:-7 dBm   Sensitivity=1/3
           Retry min limit:8   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off
           Link Quality:0  Signal level:0  Noise level:0
           Rx invalid nwid:0  Rx invalid crypt:628  Rx invalid frag:0
           Tx excessive retries:3033  Invalid misc:16910   Missed 
beacon:0

wlan0ap   IEEE 802.11-b  ESSID:"test"
           Mode:Master  Frequency:2.422GHz  Access Point: 
00:02:6F:01:FB:1B
           Bit Rate:11Mb/s   Tx-Power:-7 dBm   Sensitivity=1/3
           Retry min limit:8   RTS thr:off   Fragment thr:off
           Encryption key:off
           Power Management:off

owens at paragon:~$ less ifconfig_list
  eth0      Link encap:Ethernet  HWaddr 00:01:02:EB:B0:C5
           inet addr:216.254.0.49  Bcast:216.254.0.255  
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:695297 errors:0 dropped:0 overruns:0 frame:0
           TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:43662096 (41.6 Mb)  TX bytes:6942 (6.7 Kb)
           Interrupt:12 Base address:0xc000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:2 errors:0 dropped:0 overruns:0 frame:0
           TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:150 (150.0 b)  TX bytes:150 (150.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:02:6F:01:FB:1B
           inet addr:192.168.201.1  Bcast:192.168.201.255  
Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:2 errors:0 dropped:506 overruns:0 frame:0
           TX packets:939 errors:540 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:0 (0.0 b)  TX bytes:288 (288.0 b)
           Interrupt:11 Base address:0x100

output of hostapd -dxm wlan0:

Opening raw packet socket for ifindex 5
Using interface wlan0ap with hwaddr 00:02:6f:01:fb:1b and ssid 'test'
Flushing old station entries
Received 30 bytes management frame
MGMT
mgmt::auth
authentication: STA=00:02:dd:32:48:e0 auth_alg=0 auth_transaction=1 
status_code=0
   New STA
Station 00:02:dd:32:48:e0 authenticated (open system)
Received 40 bytes management frame
MGMT
mgmt::assoc_req
association request: STA=00:02:dd:32:48:e0 capab_info=0x01 
listen_interval=1
   new AID 1
Station 00:02:dd:32:48:e0 associated (aid 1)
IEEE 802.1X: Start authentication for new station 00:02:dd:32:48:e0
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_PAE entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 BE_AUTH entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_KEY_TX entering state 
NO_KEY_TRANSMIT
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_PAE entering state DISCONNECTED
IEEE 802.1X: Unauthorizing station 00:02:dd:32:48:e0
IEEE 802.1X: Sending canned EAP packet FAILURE to 00:02:dd:32:48:e0 
(identifier 0)
IEEE 802.1X: 00:02:dd:32:48:e0 BE_AUTH entering state IDLE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_PAE entering state CONNECTING
IEEE 802.1X: Sending EAP Request-Identity to 00:02:dd:32:48:e0 
(identifier 1)
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
Received 37 bytes management frame
DATA
IEEE 802.1X: 5 bytes from 00:02:dd:32:48:e0
    IEEE 802.1X: version=1 type=1 length=0
    ignoring 1 extra octets after IEEE 802.1X packet
    EAPOL-Start
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_PAE entering state CONNECTING
IEEE 802.1X: Sending EAP Request-Identity to 00:02:dd:32:48:e0 
(identifier 1)
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
Received 46 bytes management frame
DATA
IEEE 802.1X: 14 bytes from 00:02:dd:32:48:e0
    IEEE 802.1X: version=1 type=0 length=10
    EAP: code=2 identifier=1 length=10 (response)
    EAP Response-Identity
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_PAE entering state AUTHENTICATING
IEEE 802.1X: 00:02:dd:32:48:e0 BE_AUTH entering state RESPONSE
Minimal Authentication Server
Minimal Authentication Server: station 00:02:dd:32:48:e0 EAP 
Response-Identity: (len=10) 'owens'
IEEE 802.1X: 00:02:dd:32:48:e0 BE_AUTH entering state SUCCESS
IEEE 802.1X: Sending canned EAP packet SUCCESS to 00:02:dd:32:48:e0 
(identifier 0)
IEEE 802.1X: 00:02:dd:32:48:e0 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:02:dd:32:48:e0 AUTH_PAE entering state AUTHENTICATED
IEEE 802.1X: Authorizing station 00:02:dd:32:48:e0
IEEE 802.1X: 00:02:dd:32:48:e0 BE_AUTH entering state IDLE
Signal 2 received - terminating
Flushing old station entries
Deauthenticate all stations


--
Owen Shoemaker




More information about the HostAP mailing list