[Dnsmasq-discuss] DHCP on 1 interface, two IP ranges
John Gorkos
jgorkos at wildcatwireless.net
Fri Apr 27 16:44:41 BST 2007
I have what seems to be a fairly typical setup.
50 or so clients with known MAC addresses that I want to receive
statically-assigned DHCP addresses (10.0.0.x), and a set of unknown clients
that I want to give addresses from a different subnet to (192.168.6.0).
The statically assigned hosts all have entries in /etc/hosts and /etc/ethers.
my dnsmasq.conf file looks like this:
domain-needed
bogus-priv
filterwin2k
expand-hosts
domain=wildcatwireless.net
read-ethers
dhcp-authoritative
dhcp-range=unknown,192.168.6.200,192.168.6.250,1h
dhcp-range=known,10.0.0.10,static,1h
except-interface=vlan1
dhcp-leasefile=/tmp/dnsmasq.leases
and the interfaces we're talking about look like this:
br0 Link encap:Ethernet HWaddr 00:0F:66:E4:EE:B0
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:72802387 errors:0 dropped:0 overruns:0 frame:0
TX packets:85860666 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3800156588 (3.5 GiB) TX bytes:2774671649 (2.5 GiB)
br0:contr Link encap:Ethernet HWaddr 00:0F:66:E4:EE:B0
inet addr:192.168.6.2 Bcast:192.168.6.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
When I get a request from a known host, it looks like this:
Apr 27 10:42:36 (none) kern.info dnsmasq[11136]: DHCPREQUEST(br0) 10.0.0.37
00:11:95:19:81:87
Apr 27 10:42:36 (none) kern.info dnsmasq[11136]: DHCPACK(br0) 10.0.0.37
00:11:95:19:81:87 dandersen
When I get a request from an UNKNOWN MAC address, I get this:
Apr 27 10:41:46 (none) kern.info dnsmasq[11136]: DHCPDISCOVER(br0)
00:0d:88:93:1f:8d no address available
What bit of magic sauce am I missing to make a good stew?
Thanks!
John Gorkos
More information about the Dnsmasq-discuss
mailing list