Question about the dhcp3-server script

Jay Ridgley jridgley2 at
Tue Feb 16 03:13:23 UTC 2010


  In my efforts to figure out what is wrong with my dhcpd.conf file setup. Prior 
post Re: Connecting a Wireless Router to a Wired Network - latest data - still 
problems. I was looking at the /etc/init.d/dhcp3-server script. In it, I found 
the following:

         if ! /usr/sbin/dhcpd3 -t -cf $CONFIG_FILE > /dev/null 2>&1; then
                 echo "dhcpd self-test failed. Please fix the config file."
                 echo "The error was: "
                 /usr/sbin/dhcpd3 -t -cf $CONFIG_FILE 2>&1| sed '1,4d'
                 exit 1

Am I correct in my thinking that if I were to run just the line:

sudo /usr/sbin/dhcpd3 -t -cf /etc/dhcp3/dhcpd.conf 2>&1|sed '1,4d'

that it would would examine my dhcpd.conf file an report any basic errors it 
finds in the way dhcp3-server is to be set up?


Jay Ridgley
jridgley2 at
Registered Linux User ID - 9115
Registered Ubuntu User ID - 23320

More information about the ubuntu-users mailing list