View Full Version : dhcpd fails to start in Core 4
klosterr
2005-12-20, 04:36 PM CST
I am new to Linux and I am having trouble setting up dhcp on FC4. I have edited the /etc/dhcpd.conf file and /etc/sysconfig/dhcpd file but when I try to start (service dhcpd start) dhcpd it fails.
Any help would be appreciated.
vitaliyny
2005-12-20, 09:00 PM CST
Try to 'touch' next file /var/lib/dhcp/dhcpd.leases if it doesn't exist.
But in my case it does exist, but dhcpd says it has no permissions during boot to open it, so tell if you'll be able to start it.
klosterr
2005-12-20, 09:05 PM CST
The /var/lib/dhcp/dhcpd.leases file does exist but I get the permissions denied message.
Any Ideas?
vitaliyny
2005-12-21, 03:25 PM CST
Try to start it just typing dhcpd. I can start it easy after boot from root. My dhcpd fails to start during boot because of the same reason(permissions). And there is one more file where you must enter the interface eth? for dhcpd. Did you do that?
klosterr
2005-12-21, 09:35 PM CST
I got dhcpd to start. I had to change the security settings in SELinux Policy.
toant103
2006-01-11, 10:28 AM CST
hi,
I'm a total newbie with Linux,i have FC4. I want to set up this computer to act as a DHCP server but it's not going anywhere.
i'm logged in a root. When i attempt to start the dhcpd,(Desktop, system settings, server settings, services) this is the error message i received, "dhcpd failed. The error was: Starting dhcpd: [FAILED]
Any help for this newbie would be great. Thanks again
I have the leases file also, this is the data in my leases file.
# All times in this file are in UTC (GMT), not your local timezone. This is
# not a bug, so please don't ask about it. There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature. If this is inconvenient or confusing to you, we sincerely
# apologize. Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0.2
This is my information for file dhcpd.conf in ETC folder
ddns-update-style interim
ignore client-updates
subnet 192.168.1.0 netmask 255.255.255.0 {
# The range of IP addresses the server
# will issue to DHCP enabled PC clients
# booting up on the network
range 192.168.1.201 192.168.1.220;
# Set the amount of time in seconds that
# a client may keep the IP address
default-lease-time 86400;
max-lease-time 86400;
# Set the default gateway to be used by
# the PC clients
option routers 192.168.1.1;
# Don't forward DHCP requests from this
# NIC interface to any other NIC
# interfaces
option ip-forwarding off;
# Set the broadcast address and subnet mask
# to be used by the DHCP clients
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
# Set the DNS server to be used by the
# DHCP clients
option domain-name-servers 192.168.1.100;
# Set the NTP server to be used by the
# DHCP clients
option nntp-server 192.168.1.100;
# If you specify a WINS server for your Windows clients,
# you need to include the following option in the dhcpd.conf file:
option netbios-name-servers 192.168.1.100;
# You can also assign specific IP addresses based on the clients'
# ethernet MAC address as follows (Host's name is "laser-printer":
host laser-printer {
hardware ethernet 08:00:2b:4c:59:23;
fixed-address 192.168.1.222;
}
}
#
# List an unused interface here
#
subnet 192.168.2.0 netmask 255.255.255.0 {
}
giulix
2006-01-11, 12:18 PM CST
Your dhcpd.conf has errors:
/etc/dhcpd.conf line 3: semicolon expected.
Amend the first few lines so that they look as follows:
ignore client-updates;
ddns-update-style interim;
authoritative;
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.