On Thu, Dec 07, 2000 at 09:44:00AM +0100, Martin Würtele wrote: > hi, > > i have a problem with the dhcpd: > nt clients get a correct ip address, the name servers, the subnet mask and > everything but the default gateway > > my dhcpd.conf as follows: > opition domain-name "office.factline.com"; > option domain-name-servers 192.168.0.10, 195.34.133.10, 195.34.133.11; > > option subnet-mask 255.255.255.255; > option routers 192.168.0.1; > option broadcast-address 192.168.0.255; > default-lease-time 600; > max-lease-time 7200; > > subnet 192.168.0.0 netmask 255.255.255.0 { > range 192.168.0.1 192.168.0.252; > } > > > any ideas what's wrong?
Yes. Your "option subnet-mask" statement is incorrect - it's a 32 bit mask which precludes the possibility of a network. You include the router's address in the range assignable to clients. Ditto the DNS server's address. You typo "option" as "opition" at one point. I think it's better to include subnet-specific options within the subnet declaration. I'd write the file like this: option domain-name "office.factline.com"; option domain-name-servers 192.168.0.10, 195.34.133.10, 195.34.133.11; default-lease-time 600; max-lease-time 7200; subnet 192.168.0.0 netmask 255.255.255.0 { option broadcast-address 192.168.0.255; option routers 192.168.0.1; option subnet-mask 255.255.255.0; # make sure the range doesn't collide with existing address allocation # the next statement provides 150 assignable addresses range 192.168.0.100 192.168.0.249; } HTH, -- Nathan Norman - Staff Engineer | A good plan today is better Micromuse Inc. | than a perfect plan tomorrow. mailto:[EMAIL PROTECTED] | -- Patton
pgpI9tGZLnqwo.pgp
Description: PGP signature