fordfasterr
07-03-2004, 06:13 PM
I decided to take the plunge and rid myself of fedora core on my nat server..
I had dhcp working as well as firestarter (handles nat & firewalling).
So i did a knoppix hdinstall with the newest release...
downloaded all relevant packages and setup the dhcpd.conf file... restarted the dhcp service... and I get errors...
It refuses to start... so i read the syslog file and sure enough it says that i have an error in my script. I also made a point to look at the /etc/default/dhcp file and adde "eth1" to the list...
here is my dhcpd.conf file:
ddns-update-style interim;
ddns-updates on;
ddns-ttl 30;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.110 192.168.0.120;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.1;
option ip-forwarding off;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 207.69.188.187,
207.69.188.186;
one-lease-per-client on;
deny client-updates;
}
and here is my syslog error when i try to start dhcp..
Jul 3 11:17:51 web_box init: Trying to re-exec init
Jul 3 17:18:35 web_box dhcpd: /etc/dhcpd.conf line 1:
expecting a parameter or declaration.
Jul 3 17:18:35 web_box dhcpd: ddns-update-style
Jul 3 17:18:35 web_box dhcpd: ^
Jul 3 17:18:35 web_box dhcpd: Configuration file
errors encountered -- exiting
Jul 3 17:18:35 web_box dhcpd: exiting.
Jul 3 17:20:14 web_box dhcpd: /etc/dhcpd.conf line 1:
expecting a parameter or declaration.
Jul 3 17:20:14 web_box dhcpd: ddns-update-style
Jul 3 17:20:14 web_box dhcpd: ^
Jul 3 17:20:14 web_box dhcpd: Configuration file
errors encountered -- exiting
Jul 3 17:20:14 web_box dhcpd: exiting.
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 1:
expecting a parameter or declaration.
Jul 3 17:30:57 web_box dhcpd: ddns-update-style
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 2:
expecting a parameter or declaration.
Jul 3 17:30:57 web_box dhcpd: ddns-updates
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 3:
expecting a parameter or declaration.
Jul 3 17:30:57 web_box dhcpd: ddns-ttl
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line
15: expecting allow/deny key
Jul 3 17:30:57 web_box dhcpd: ^Ideny client-updates;
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: Configuration file
errors encountered -- exiting
Jul 3 17:30:57 web_box dhcpd: exiting.
I hope someone can help me with this.
I had dhcp working as well as firestarter (handles nat & firewalling).
So i did a knoppix hdinstall with the newest release...
downloaded all relevant packages and setup the dhcpd.conf file... restarted the dhcp service... and I get errors...
It refuses to start... so i read the syslog file and sure enough it says that i have an error in my script. I also made a point to look at the /etc/default/dhcp file and adde "eth1" to the list...
here is my dhcpd.conf file:
ddns-update-style interim;
ddns-updates on;
ddns-ttl 30;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.110 192.168.0.120;
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.1;
option ip-forwarding off;
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 207.69.188.187,
207.69.188.186;
one-lease-per-client on;
deny client-updates;
}
and here is my syslog error when i try to start dhcp..
Jul 3 11:17:51 web_box init: Trying to re-exec init
Jul 3 17:18:35 web_box dhcpd: /etc/dhcpd.conf line 1:
expecting a parameter or declaration.
Jul 3 17:18:35 web_box dhcpd: ddns-update-style
Jul 3 17:18:35 web_box dhcpd: ^
Jul 3 17:18:35 web_box dhcpd: Configuration file
errors encountered -- exiting
Jul 3 17:18:35 web_box dhcpd: exiting.
Jul 3 17:20:14 web_box dhcpd: /etc/dhcpd.conf line 1:
expecting a parameter or declaration.
Jul 3 17:20:14 web_box dhcpd: ddns-update-style
Jul 3 17:20:14 web_box dhcpd: ^
Jul 3 17:20:14 web_box dhcpd: Configuration file
errors encountered -- exiting
Jul 3 17:20:14 web_box dhcpd: exiting.
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 1:
expecting a parameter or declaration.
Jul 3 17:30:57 web_box dhcpd: ddns-update-style
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 2:
expecting a parameter or declaration.
Jul 3 17:30:57 web_box dhcpd: ddns-updates
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line 3:
expecting a parameter or declaration.
Jul 3 17:30:57 web_box dhcpd: ddns-ttl
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: /etc/dhcpd.conf line
15: expecting allow/deny key
Jul 3 17:30:57 web_box dhcpd: ^Ideny client-updates;
Jul 3 17:30:57 web_box dhcpd: ^
Jul 3 17:30:57 web_box dhcpd: Configuration file
errors encountered -- exiting
Jul 3 17:30:57 web_box dhcpd: exiting.
I hope someone can help me with this.