From: Jamie C. <jca...@we...> - 2008-01-30 05:55:36
|
On 29/Jan/2008 18:11 Richard Chapman wrote .. > Hi Jamie > > Here are a couple of things which may be minor problems - or maybe I am > doing something wrong: > > In DHCP I defined a Subnet - then I defined a host to reserve an IP for > it.. In my logwatch - I get a warning every time DHCPD starts: > > WARNING: Host declarations are global. They are not limited to the scope you > declared them in.: > > This is what the config file looks like (below): It appears to have put > the host directive inside the subnet definition - and I'm not sure why - > or how to avoid it. Putting it in the subnet is fine. In fact, I recommend it, since the host will inherit options from the subnet level. That warning just means that the host would be assigned that IP regardless of which subnet it is on. > Also - you will note the directive "ddns-update-style ad-hoc". I > originally installed dhcpd using webmin since I didn't install it in the > original linux build. When it first ran, it told me that it needed this > directive... I think we may have discussed this before. I'm not sure > where the original config file came from - but it seems incomplete. If > they supply a config file which is incomplete then tell you how to > complete it - this seems a strange thing to do....:-) Yeah, I've seen this before. Some linux distros ship with a dhcpd.conf file that is incomplete :( It seems silly to me ... - Jamie > > # > # DHCP Server Configuration file. > # see /usr/share/doc/dhcp*/dhcpd.conf.sample > # > ddns-update-style ad-hoc; > # Home network > subnet 192.168.0.0 netmask 255.255.255.0 { > max-lease-time 864000; > default-lease-time 864000; > option domain-name-servers 192.168.0.201 , 203.21.20.20; > option routers 192.168.0.1; > authoritative; > range dynamic-bootp 192.168.0.2 192.168.0.199; > # Richard's Desktop > host richard { > fixed-address 192.168.0.2; > } > } > > > Thanks Jamie > > Richard. > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > - > Forwarded by the Webmin mailing list at web...@li... > To remove yourself from this list, go to > http://lists.sourceforge.net/lists/listinfo/webadmin-list |