LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2006, 07:42 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
simple DHCP


hi there,

i'm trying to get dhcp started on my Fedora core 5 box but at the moment i can't get it working at all ...

this is my dhcpd.conf

default-lease-time 86400;
max-lease-time 604800;
get-lease-hostnames true;
option subnet-mask 255.255.255.0;

subnet 192.168.0.0 netmask 255.255.255.0 {
range dynamic-bootp 192.168.0.10 192.168.0.250;
}

when i go to start it this is what i get

[root@fedora log]# /etc/init.d/dhcpd start
Starting dhcpd: [FAILED]

i can't see any reason for it, can someone esle, also i don't see any dhcp log file in /var/log/

can someone help me out?
 
Old 03-30-2006, 08:35 PM   #2
chrisortiz
Member
 
Registered: Nov 2005
Distribution: Slackware, and of course the super delux uber knoppix universal live recovery cd
Posts: 429

Rep: Reputation: 30
everything you put in is correct, its just that they should be arranged something like this
Code:

subnet 192.168.0.0 netmask 255.255.255.0 {
     range dynamic-bootp 192.168.0.10 192.168.0.250;
     option subnet-mask 255.255.255.0;
     default-lease-time 86400;
     max-lease-time 604800;
     get-lease-hostnames true; 
}
notice that the options for that paticular subnet are in brackets "{}"

Last edited by chrisortiz; 03-30-2006 at 08:38 PM.
 
Old 03-31-2006, 08:50 AM   #3
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
Have you managed to fix this?
If not, is there anything useful in /var/log/messages?
On FC5 don't forget that you have SELinux which may cause you a problem, the dhcpd.conf file would have to have the correct selinux context for the dhcp daemon to access it.
 
  


Reply



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
simple home LAN - DNS and DHCP davepass Linux - Networking 1 02-24-2006 01:55 PM
Help with getting a simple dhcp server working GUIPenguin Linux - Networking 2 02-09-2006 07:06 AM
DHCP and gateway routing problems (simple noob problem) michaelsanford Linux - Networking 4 04-13-2005 02:17 PM
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 05:22 AM
Simple Debian Router including a DHCP Server stormblast Debian 20 09-22-2004 05:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:52 AM.

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
Open Source Consulting | Domain Registration