LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dhcpd help (https://www.linuxquestions.org/questions/linux-networking-3/dhcpd-help-394712/)

jswansster 12-19-2005 09:10 PM

dhcpd help
 
ok here is what i have

when I use this in my dhcpd.conf file

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.org";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

I get

** You must add a global ddns-update-style statement to /etc/dhcpd.conf.
To get the same behaviour as in 3.0b2pl11 and previous
versions, add a line that says "ddns-update-style ad-hoc;"
Please read the dhcpd.conf manual page for more information. **
then I add the ddns-update-style ad-hoc; line and get

No subnet declaration for start (0.0.0.0).
** Ignoring requests on start. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface start is attached. **

I have read a couple of tutorials on dhcp and iptables and I am at a loss

could anyone help please?

thanks in advance

randyding 12-19-2005 11:53 PM

It all looks right, try adding these two lines at the top.
Code:

authoritative;
ddns-update-style ad-hoc;


jswansster 12-20-2005 09:11 AM

thank you very much. that did it!

James


All times are GMT -5. The time now is 05:33 AM.