DHCP Server - help!!
Hi,
I've spent the last two days trying to figure out why dhcpd will not start. I'm using Mandrake 9.0, and installed the RPM's for the DHCP server. When I try and start dhcpd it just says FAILED. I've looked in /var/log but can't find a log for dhcpd (I can only see the dhcpcd.log) I've configured my dhcpd.conf as follows: --------------------------------------- # Home subnet subnet 192.168.4.0 netmask 255.255.255.0 { range 192.168.4.10 192.168.4.20; default-lease-time 604800; max-lease-time 604800; option subnet-mask 255.255.255.0; option routers 192.168.4.1; } --------------------------------------- As you can see, it's very basic at the moment. I've also found my dhcpd.leases file in /var/lib/dhcp/ What am I doing wrong? I'm not new to networking (M$), but I'm a complete newbie to Linux! Any help will be much apreciated! Ray. |
In the MCC, is ShoreWall running?
Re-read your post, this wont be affecting the dhcp deamon from running :o |
I've look in the MCC and cant see anything called ShoreWall? What is it?
Someone PLEASE help! |
It's the firewall it uses, which often is broken, best to replace it with something like Guarddog or Firestarter, if you like GUIs, or learn IPTables :)
However that wont be stopping dhcpd from starting. What's the exact command you use to try and start it? Have you tried man dhcpd? |
So far, I've configured iptables to provide NAT to my LAN so it's just a basic gateway at the moment and I've not configured any firewall yet.
That works great, so my next step was to use my Linux box as a DHCP server to provide the IP addressing on my LAN. I've got two NIC's: eth0 (DSL) and eth1 (LAN) - eth0 uses DHCP to get an IP address from my ISP and eth1 is static (192.168.4.1) As you've seen from my previous post, I think I configured dhcpd.conf ok and made sure theres a dhcpd.leases file. When I type /etc/rc.d/init.d/dhcpd start is says FAILED. |
can't you post your dhcpd.conf file and also post the lines of code in your log message file so i can see what may be the problem... I had a problem with dhcp failing everything i tried starting the service...
|
Did you set up your firewall where DHCP can't possibly be used? On some firewall script generators these days, the DHCP (and other useful services) are turned off by default. Try Bastille, if it's still around.
|
All times are GMT -5. The time now is 11:33 AM. |