LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DHCP config file error (http://www.linuxquestions.org/questions/linux-networking-3/dhcp-config-file-error-353136/)

linux-rulz 08-14-2005 10:05 AM

DHCP config file error
 
Hello all. I am currently having a problem with my /etc/dhcpd.conf file. The system-config-services tool on CentOS 4 won't allow me to restart the service, complaining about an unexpected end of file. I cannot see what the problem is looking at the file.I have attached it here. Can someone please have a look? Thx :)

-----------------------------------------------------------------

local-port 1067;
default-lease-time 21600;
max-lease-time 21600;

option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option routers 192.168.2.155;
option domain-name-servers 192.168.2.155;
option domain-name "ltsp.org";
option root-path "192.168.2.155:/opt/ltsp/i386";

shared-network WORKSTATIONS {
subnet 192.168.2.0 netmask 255.255.255.0 {
}
}

group {
use-host-decl-names on;
option log-servers 192.168.2.155;

host ws001 {
hardware ethernet 00:48:54:6E:B7:46;
fixed-address 192.168.2.222;
filename "/lts/vmlinuz-2.4.26-ltsp-3"
}
}

david_ross 08-14-2005 10:12 AM

IIRC every entry must end in a ";" so you need to change
filename "/lts/vmlinuz-2.4.26-ltsp-3"

To:
filename "/lts/vmlinuz-2.4.26-ltsp-3";

linux-rulz 08-14-2005 11:13 AM

Alright, thanks it worked :)


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