dhcp server
M. Grabert
xam
Thu Apr 15 06:51:43 PDT 2004
On Thu, 15 Apr 2004, Sean Godsell wrote:
> Hello hostap people ;)
>
> Okay I have hostap working. But the connecting clients have to manually
> set there ip address. I would like to be able to use dhcpd so the
> connecting wireless users don't have to set there ip address. The
> following is what I have in the dhcpd.conf file:
> ddns-update-style ad-hoc;
> default-lease-time 600;
> max-lease-time 3600;
> option subnet-mask 255.255.255.0;
> option broadcast-address 192.168.0.255;
> option routers 192.168.0.1;
> option domain-name-servers 10.10.0.1;
> option domain-name "tims.org";
> # allow unknown clients;
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
> range 192.168.0.3 192.168.0.250;
> }
> My pc's wlan0 ip address is 192.168.0.1. Does hostap support dhcp, or is
> my dhcpd.conf file configured incorrectly? Any help would really be
> appreciated. Thank you
HostAP doesn't care about whether it's carrying IPv4 or IPv6 traffic etc.,
and therefore doesn't care/interfere with DHCP.
Ergo: your dhcpd.conf is configured incorrectly (dhcpd is working fine for me)
I don't see a "pool" or "host" statement in your config, like
pool
{
range 192.168.0.100 192.168.0.200;
allow unknown clients;
default-lease-time 28800;
max-lease-time 28800;
}
OR
host my_machine
{
hardware ethernet 00:11:22:33:44:55;
fixed-address 192.168.0.2;
}
Place a pool statement within your "subnet" block, or place some
"host" definitions outside your "subnet" block, and it should work.
BTW, have you set "authoritative;" ?
Greetings,
Max
More information about the Hostap
mailing list