LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2003, 03:52 PM   #1
l9nux
LQ Newbie
 
Registered: Mar 2003
Location: Sussex, UK
Distribution: CentOS
Posts: 4

Rep: Reputation: 0
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.
 
Old 03-05-2003, 03:58 PM   #2
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
In the MCC, is ShoreWall running?

Re-read your post, this wont be affecting the dhcp deamon from running

Last edited by Proud; 03-05-2003 at 03:59 PM.
 
Old 03-05-2003, 04:04 PM   #3
l9nux
LQ Newbie
 
Registered: Mar 2003
Location: Sussex, UK
Distribution: CentOS
Posts: 4

Original Poster
Rep: Reputation: 0
I've look in the MCC and cant see anything called ShoreWall? What is it?

Someone PLEASE help!
 
Old 03-05-2003, 04:07 PM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
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?
 
Old 03-05-2003, 04:20 PM   #5
l9nux
LQ Newbie
 
Registered: Mar 2003
Location: Sussex, UK
Distribution: CentOS
Posts: 4

Original Poster
Rep: Reputation: 0
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.
 
Old 03-10-2003, 02:19 AM   #6
noy559
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: 0
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...
 
Old 03-10-2003, 07:30 AM   #7
JStew
Member
 
Registered: Oct 2002
Location: North Atlanta
Distribution: LFS
Posts: 229

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcp client not getting IP from dhcp server jkmartha Linux - Networking 2 06-17-2005 08:12 AM
how can a DHCP client get the DHCP server IP? AshesOfTime Linux - Networking 3 11-24-2004 06:50 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
How do you make the ip masquerade server/dhcp server broadcast dns to lan cmisip Linux - Networking 6 01-25-2003 10:43 PM


All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration