[Dnsmasq-discuss] Static IP and hostname

Simon Kelley simon@thekelleys.org.uk
Sun, 10 Apr 2005 16:08:37 +0100


Donnie Berkholz wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Simon Kelley wrote:
> | I suspect further IP problems, rather than DHCP problems: the DHCP
> | discover/offer process works using hardware-level broadcasts, but the 
> next
> | stage needs IP connectivity. It looks like the DHCP server doesn't know
> | how to route to the 192.168.1.x network.
> 
> You were right. After fixing the netmask on both eth0 and in
> dnsmasq.conf, it works.
> 

One thing worth knowing: If you get the netmask right on the interface 
and don't specify one in the dhcp-range, then dnsmasq will use the 
netmask from the interface, hence there's only one place to get it right 
(or wrong!).  You only have to give the netmask directly to dnsmasq for 
networks behind a DHCP-relay (where dnsmasq can't get at the interface 
because it's on another machine).


Cheers,

Simon.