Hi there,
Quote:
Originally Posted by Scrag
My problem is, everything works but I cannot get a DHCP server to work.
|
how did you verify that exactly? By asking ifconfig after a client logon? Or by just trying to open a URL in a browser?
Quote:
Originally Posted by Scrag
The only thing I can think of is my internet router (netgear) is running dhcp and there is a conflict? I would think not as its on a different network than the wlan0's dhcp server, as the wlan1 is a dhcp client. But what do I know.
|
I think the same: They're running in different networks - not only different logical networks, but even physical. Except maybe your clients try to connect to the main AP directly (the one that's hooked up to the internet). Can you rule that out for certain?
Code:
# disables dnsmasq reading any other files like /etc/resolv.conf for nameservers
no-resolv
# Interface to bind to
interface=wlan0
# Specify starting_range,end_range,lease_time
dhcp-range=10.0.0.3,10.0.0.20,12h
# dns addresses to send to the clients
server=8.8.8.8
server=8.8.4.4
Looks a lot shorter and simpler than mine, but then I didn't bother to remove all these hundreds of comment lines from the default config file, and in my setup, dnsmasq also doubles as a local DNS.
Anyway, the two "server=" lines are not what you might think. They only tell dnsmasq what name server(s) to use for its own internal purposes, but that's not the name server address(es) being passed to the clients during DHCP. There's another directive that specifies these. At least, that's how I understood it, and it works in my setup:
Code:
dhcp-option=6, 8.8.8.8, 8.8.4.4
And why don't you let dnsmasq act as a relaying DNS? That may save you a few DNS lookups on the internet, as dnsmasq caches them, and you have the chance of resolving local hostnames via DNS. In that case, dnsmasq would announce its own address as the name server to be used.
Besides, I have lots of hostnames resolved statically - many of those obnoxious ad servers are being resolved to 127.0.0.1, effectively making them unreachable and saving me from the better part of ads.
[X] Doc CPU