Results 1 to 9 of 9

Thread: dhcp server

  1. #1

    dhcp server

    i am trying to set up a dhcp server for a small network... i have gone through all the steps in this website http://www.linuxhomenetworking.com/w...he_DHCP_Server but every time i try starting the service it says failed any ideas what to do?
    ps i am using FC4

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760
    Is the firewall set to allow the ports for DHCP?

    Plus, can you copy the exact error into your post if the firewall is not the culprit. That way we can see what the problem is. Plus DHCP shoul dhave an error log, post any relavent info from there.

  3. #3
    were would the error log file be made i looked under /var/log...
    and i dont think i am having a problem with a firewall becauses that is not running yet

    the program is not even getting past the spot were i type "service dhcpd start" i will comeback and say failed in that nice red lettering it has

  4. #4
    Moderator
    Good Guru
    Compunuts's Avatar
    Join Date
    May 2001
    Location
    California
    Posts
    3,935
    Did you check whether you have leases file under /var/lib/dhcp/dhcpd.leases ? If not create one with

    Code:
    touch /var/lib/dhcp/dhcpd.leases
    LinuxVillage - The truely community run Linux/Floss forum !

    No IT BS !!

  5. #5
    yah there was all ready one in that file....

  6. #6
    For anyone who wonders this is my sript it works....
    Code:
    # dhcpd.conf
    #
    # Configuration file for ISC dhcpd (see 'man dhcpd.conf') 
    authoritative;
    ddns-update-style none;
    
    subnet 172.20.1.0 netmask 255.255.255.0 {
       range 172.20.1.100 172.20.1.254;
       default-lease-time 3600; max-lease-time 3600;
       option subnet-mask 255.255.255.0;
       option routers 172.20.1.1;
       option domain-name-servers 142.177.1.2,142.177.129.11;
       option domain-name "aliant.lan"; }
    #
    #
    ps to get error codes out of the dhcpd server start it like this
    Code:
    dchpd eht1
    it gives out errors that you might have

  7. #7
    Newbie
    Join Date
    Jan 2005
    Location
    BENIN, NIGERIA
    Posts
    1

    Dhcp

    From what i Understand DHCP to be is a little bit different from your configuration. To start u have to configure your server with NAT and try to see if clients can browse by connecting to the NAT server. After that u then configure your DHCP in the same NAT server and let the eth1 IP be the same with the RANGE of the DHCP server. Assign and IP to the clients and later try DHCP on the clients and see if u can get a good result.

    One thing u should remember is that u have to use Private IP and not your 172.20.1.0/24 which is a public IP addresss. try to use something like 172.16.1.0/24 this si a private IP.

    Thanks

    Uyi

  8. #8
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760
    You can configure DHCP on a NAT server, but are by all means not required. In the DHCP configuration, you can push an IP out to any system for:

    DNS
    WINS
    Default Gateway
    Homepage
    NTP

    Refer here:
    Red Hat's Docs

  9. #9
    1 Make sure it isnt running

    top

    If it is, it is likely a firewall causing headaches. Open (If I remember right) port 67 udp/tcp. If it isnt running continue.

    2 start dhcpd from the command line (use your distro's path to the file)

    /usr/sbin/dhcpd -t

    This will test your config file, it should tell you a line number it is chocking on.If it is choking on something, fix it. If everything checks out then continue.

    3 start dhcpd from cli

    /usr/sbin/dhcpd -fd

    This will run dhcpd on the command line, you should be able to see what is going on.


    Good luck


    dan
    Last edited by flashingcurser; 04-09-2006 at 04:52 PM.

Similar Threads

  1. PXE Server and DHCP Problem
    By forstera in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-26-2011, 05:58 AM
  2. dhcp server
    By coltrane in forum Linux - Hardware, Networking & Security
    Replies: 2
    Last Post: 10-24-2005, 05:01 PM
  3. Disable Wireless Router DHCP and Use Linux DHCP Server?
    By omnivore in forum Linux - General Topics
    Replies: 0
    Last Post: 01-19-2005, 04:18 PM
  4. Strange route on my DHCP server
    By cheezetrix in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 04-21-2004, 09:02 AM
  5. DHCP server
    By countach44 in forum Linux - Hardware, Networking & Security
    Replies: 13
    Last Post: 04-03-2004, 04:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •