DHCP server config issues
Can some tell me why I get this error message?
/etc/dhcpd.conf line 0: expecting a parameter or declaration dhcpd.conf file is (example copied off the web) # Sample /etc/dhcpd.conf # (add your comments here) 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; } appreciate your assistance. Mahen |
It is something invisible. Could it be that the lines end with CR-LF, as in DOS, and dhcpd expects only LF, as in unix?
Try 'hexdump -c /etc/dhcpd.conf'. CR is \r and LF is \n. |
I used your configuration in my Slackware and it worked. The daemon only prompted me of adding a ddns-update-style in the global section. Here is my complete test dhcpd.conf which was originally derived from you.
Code:
# dhcpd.conf Code:
Internet Systems Consortium DHCP Server V3.0.3 Code:
# tail -f /var/log/messages |
I hope you have these two lines on your dhcpd.conf file on top
ddns-update-style interim; ignore client-updates; |
All times are GMT -5. The time now is 04:26 PM. |