We help IT Professionals succeed at work.

Check out this week's podcast, "Dairy Farms to Databases: Community's Hand in Technology"Listen Now

x

Making my Fedora core 5 box a DHCP server

1,709 Views
Last Modified: 2013-12-15
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
Comment
Watch Question

Commented:
yum install dhcp

then edit /etc/dhcpd.conf to your liking :)

Commented:
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

Author

Commented:
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

Author

Commented:
I just did a remove and a intall but still no good.

Thanks
Steve

Commented:
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 :)

Author

Commented:
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

Author

Commented:
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

Author

Commented:
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
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.