steve_mills
asked on
Making my Fedora core 5 box a DHCP server
I wish to setup my Fedora core 5 box as a dhcp server. I have 2 nic's one pointing to the web and my home router no problems. The other to my home lan. When I run service dhcpd start/restart/status I get the same error. dhcpd: unreconized service. So I assume it is not loaded. How do I load this product.
Thanks
steve
Thanks
steve
once you are done editing the /etc/dhcpd.conf file, stop and start (or restart) the service to get it to reload its config
service dhcp start
http://www.tuxdocs.net/wiki/index.php?title=DHCP_Configuration_Examples
Has some good examples, the one you might need is changing what interface dhcpd listens on if you don't want the 'outside' to do dhcp :)
/etc/sysconfigx has the specifics
service dhcp start
http://www.tuxdocs.net/wiki/index.php?title=DHCP_Configuration_Examples
Has some good examples, the one you might need is changing what interface dhcpd listens on if you don't want the 'outside' to do dhcp :)
/etc/sysconfigx has the specifics
ASKER
The yum install dhcp seemed to work, but if I check the status of the service it is stopped. So then I start it and ( service dhcpd start ) and it failed. It will not start. If I remove the dhcpd.config file form the /etc then it allows it to start but with no reconition. This is also the case for stop/status etc. I have tried to yum install again and it come up with nothing to do. Should I uninstall dhcp and then reinstall it, and if so how.
Thanks
Steve
Thanks
Steve
ASKER
I just did a remove and a intall but still no good.
Thanks
Steve
Thanks
Steve
What does /var/log/dhcpd.log have in it ? ie. what errors are occuring behind the scenes ?
Sorry I was a little slow... was a busy day :)
Sorry I was a little slow... was a busy day :)
ASKER
Hi did a find / -name *dhcp* but no dhcpd.log.
The dhcpd.conf is the sample one.
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
any other sugesstions
Thanks
Steve
The dhcpd.conf is the sample one.
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "domain.org";
option domain-name-servers 192.168.1.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns {
next-server marvin.redhat.com;
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 207.175.42.254;
}
}
any other sugesstions
Thanks
Steve
ASKER
Just did a fresh install of fedora.
yum installed dhcp ( no problems )
service stop/start/restart dhcpd ( failed )
cp dhcpd.conf.sample to /etc/dhcpd.conf ( just in case this was the problem )
service stop/start/restart dhcpd ( failed )
??????????????
Thanks
Steve
yum installed dhcp ( no problems )
service stop/start/restart dhcpd ( failed )
cp dhcpd.conf.sample to /etc/dhcpd.conf ( just in case this was the problem )
service stop/start/restart dhcpd ( failed )
??????????????
Thanks
Steve
ASKER
I have worked this out for myself the config in the dhcpd.conf was wrong. I used dhcpd configtest and this showed me the error.
How do I retreive my pionts.
Thanks
Steve
How do I retreive my pionts.
Thanks
Steve
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
then edit /etc/dhcpd.conf to your liking :)