[Dnsmasq-discuss] How to configure 2 different nets: 1 guestnet, 1 "known-host net"?

Simon Kelley simon at thekelleys.org.uk
Tue Feb 16 09:43:59 GMT 2010


Lars Rohwedder wrote:
> I try to configure two IP ranges:
> 
> "known host net":
> 192.168.8.x for "known hosts": Host with a known MAC address and a fixed
> IP address.
> 
> "guest net":
> 192.168.9.x for all unknown MAC addresses. Hosts in this net just get a
> short-time (1h or so) lease from a dynamic IP range pool.
> 
> So I added several lines for my known hosts:
> 
> dhcp-host=00:11:22:33:44:55,workstation,192.168.8.10,24h
> dhcp-host=11:22:33:44:55:66,notebook,192.168.8.12,24h
> etc.
> 
> and one dhcp-range for the guest net:
> 
> dhcp-range=guestnet,192.168.9.100,192.168.9.199,255.255.255.0,1h
> 
> The router (that also runs dnsmasq) has (at the internal network
> interface) the IP addresses 192.168.8.1 and 192.168.9.1 (I plan to use
> VLANs some day, at the moment both IP subnets share one physical network)
> 
> The problem: All hosts always get IP addresses from the guest net. The
> MAC addresses are verified many times so ... why don't get the known
> hosts their right IP address? How can I fix that?
> 
You need a dhcp-range for the the "known hosts" net too

dhcp-range=192.168.8.0,static

should do the trick.

Cheers,


Simon.



More information about the Dnsmasq-discuss mailing list