LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help configuring DHCP in Slackware (https://www.linuxquestions.org/questions/linux-newbie-8/help-configuring-dhcp-in-slackware-4175436003/)

dj_nexxus 11-06-2012 11:06 PM

Help configuring DHCP in Slackware
 
Good Night everyone, I have been trying to setup a slackware DHCP server in my home network to remove the DHCP server from my wireless AP and to get more experience with Slackware and linux on a whole.

I have sucessfully configured the server

Installed the rc.dhcpd script
Made it Executable
Installed the dhcpd.conf in /etc/dhcp.conf

and got it to run
it shows my PID when I run ./rc.dhcpd status

however when any client tries to connnect to the network they send out the DHCP query broadcast, they detect the carrier etc...
BUT they are assigned the APIPA address 169.254.167.157

I'm not sure where I am going wrong? as the server has the following static assignment

Server IP 192.168.1.X
Mask: 255.255.255.0
Gateway: 192.168.1.1
Pool 192.168.1.10 192.168.1.99

dj_nexxus 11-07-2012 10:37 AM

anyone? :(

dj_nexxus 11-07-2012 06:31 PM

FIXED!!!

Do the following to create a lease log file and add it to the DHCP server configuration file. This file keeps a record of all the leases issued by the DHCP server.

create /var/lib/dhcp
create /var/lib/dhcp/dhcp.leases
Added lease-file-name "/var/lib/dhcp/dhcp.leases" to /etc/dhcp.conf

And to get it to start at boot time: (Figured this out with a little common sense as it was missing :))

Added:

# Start DHCP daemon
if [ -x /etc/rc.d/rc.dhcpd ]; then
/etc/rc.d/dhcpd start
fi

Fred-1.2.13 11-07-2012 07:13 PM

Quote:

Originally Posted by dj_nexxus (Post 4824272)
anyone? :(

You would probably get a much faster and Slackware specific response in the Slackware sub-forum.

Great job getting it figured out! And super great job posting your solution! Nothing worse then someone figuring out their issue and then just posting "I got it fixed" with no details.

Good luck in your travels with Linux and with Slackware! :)

dj_nexxus 11-07-2012 10:46 PM

Thanks a lot, actually was focusing so much on learning linux and using the system, I did not really nose around the site or realise there was a Slackware specific subsection...thanks for the heads up and the encouragement....:)


All times are GMT -5. The time now is 07:42 PM.