Re: Setting up AP with hostapd
csanyipal@gmail.com writes:
> Hello Michael,
>
> Michael Post <michael_post@web.de> writes:
>
>> Am 28.04.15 um 18:41 schrieb csanyipal@gmail.com:
>>> Hello,
>>>
>>> I'm trying to setup my home wireless Access Point by using
>>> hostapd, installed as a debian package from the debian repository.
>>>
>>> On my headless power pc box I'm running Debian Wheezy ( yet ).
>>>
>>> My hostapd.conf is:
>>
>>>
>>> mon.wlan0 Link encap:UNSPEC HWaddr 00-E0-4C-81-92-93-00-00-00-00-
>>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0
>>> errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0
>>> dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX
>>> bytes:0 (0.0 B) TX bytes:0 (0.0 B)
>>>
>>> wlan0 Link encap:Ethernet HWaddr 00:e0:4c:81:92:93 inet6 addr:
>>> fe80::2e0:4cff:fe81:9293/64 Scope:Link UP BROADCAST RUNNING
>>> MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0
>>> overruns:0 frame:0 TX packets:45389 errors:0 dropped:0 overruns:0
>>> carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX
>>> bytes:3556665 (3.3 MiB)
>>>
>> ....
>>
>>>
>>> But, on my mobile phone I can't see this WiFi AP. What could be the
>>> problem?
>>>
>>
>>
>> Normally after started hostapd the interface wlan0 should have an
>> valid ip address.
>> How looks your /etc/network/interfaces?
>> Did you have configured the interface with maybe an static ip address?
>
> Mine /etc/network/interfaces looks as:
>
> [code]
> auto lo
> iface lo inet loopback
>
> # Internet on eth0 to my ISP through cable modem
> allow-hotplug eth0
> iface eth0 inet dhcp
>
> # LAN on eth1 - this is my wired home network
> allow-hotplug eth1
> iface eth1 inet static
> address 192.168.10.1
> netmask 255.255.255.0
>
> # WiFi - this should be my home WLAN
> allow-hotplug wlan0
> iface wlan0 inet manual
>
> auto br0
> iface br0 inet dhcp
> bridge_ports eth0 wlan0
> [/code]
>
> So maybe the wlan0 is not properly configured?
I just changed the interface file at
[code]
...
# WiFi - this should be my home WLAN
iface wlan0 inet static
address 192.168.20.1
netmask 255.255.255.0
[/code]
...
Run the command:
# hostapd -dd /etc/hostapd/hostapd.conf
and now wlan0 has a valid IP address:
mon.wlan0 Link encap:UNSPEC HWaddr
00-E0-4C-81-92-93-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:e0:4c:81:92:93
inet addr:192.168.20.1 Bcast:192.168.20.255
Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe81:9293/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:123675 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9679337 (9.2 MiB)
Still can't see my SSID in the air.
Why?
--
Regards from Pal
Reply to: