Find the answer to your Linux question:
Results 1 to 4 of 4
hello guys, Pls, i want to setup my FC4 as a DHCP server to serve the other computers in my LAN, and act as my gateway for my other 4 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    167

    DHCP server setup - which RPM


    hello guys,

    Pls, i want to setup my FC4 as a DHCP server to serve the other computers in my LAN, and act as my gateway for my other 4 PCs.

    I have 2 NICs on it.

    I did a
    service dhcpd status
    and i got
    dhcpd: unrecognized service.
    I did
    rpm -q dhcpd
    and i got
    package is not installed
    so i guess dhcpd is not installed on my PC.

    I have a static IP assigned to my FC4 and I can connect to the internet through it.

    I can see the following files at
    http://download.fedora.redhat.com/pu...s/Fedora/RPMS/
    dhclient-3.0.2-12.i386.rpm 20-May-2005 13:16 234K
    dhcp-3.0.2-12.i386.rpm 20-May-2005 13:16 591K
    dhcp-devel-3.0.2-12.i386.rpm 20-May-2005 13:16 113K
    dhcpv6-0.10-13.i386.rpm 20-May-2005 15:10 205K
    dhcpv6_client-0.10-13.i386.rpm 20-May-2005 15:10 70K

    QUESTION:
    1. Which of the above files am I to download so that I can configure my FC4 as a DHCP server?.

    Can you assist with a sample config file, so that I do not mess up my PC.

    thanks
    Toks [/quote][/quote]

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,809
    You want dhcp-3.0.2-12

    The 'v6' ones are for IPV6, dhcp-devel is only needed if you want to build apps or write your own that interface to dhcp, and dhclient is needed if you want your computer to use dhcp to have it's network address allocated to it.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    167
    hi,

    ive downloaded and installed dhcp-3.0.2-24 FC4 using the "yum install".

    The problem im having now is to configure it. As I said, i have 2NICs and one of them eth0 is configured with a static IP to connect to the web. The other one eth1 is the one i want to use for my LAN.

    Im using the sample dhcpd.conf file at linuxhomenetworking.com, but anytime i want to start dhcpd, i get an error "failed".

    Am i supposed to add somethings using the GUI?

    heres my dhcpd.conf file:
    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;
    }
    }


    Toks
    Last edited by Tokunbo; 12-20-2005 at 10:28 AM.

  4. #4
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,809
    I'm no expert at this, I have my smoothwall box to run my DHCP at home, but I think you need to tell it which interface(s) to service requests over. There must be an optional config statement you can add to tell it to use eth1. Is there anything about this in the manpage for dhcpd.conf? I dont have it installed on my server, so I cant read the manpage easily.
    Linux user #126863 - see http://linuxcounter.net/

Posting Permissions

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