Find the answer to your Linux question:
Results 1 to 5 of 5
I am completely new to networking and to Fedora10, so please be detailed in your repsonse. I was told by my boss to setup DNS and DHCP so that I ...
  1. #1
    Just Joined! kishki's Avatar
    Join Date
    Jan 2009
    Posts
    21

    Post How to Install & Configure DHCP in Fedora10

    I am completely new to networking and to Fedora10, so please be detailed in your repsonse.

    I was told by my boss to setup DNS and DHCP so that I have one server and 3 windows XP clients that all connect to eachother through a DLink switch.

    The Fedora machine is going to be the server and the windows machines are the clients. The Server is supposed to hand out static IP addresses to the clients.
    This is not on the internet, it is a private network.

    I have configured my eth0 connection in System->Adminstration->Network

    Under Devices:
    eth0 is active

    Under Hardware:
    Broadcom corp Ethernet eth0 system
    If I click edit:
    Activate device when computer starts
    Allow users to enable disable
    Enable IPV6 configuration (I have no idea if I want this or not)
    Statically set IP addresses
    Address: 10.1.10.99 (I was told to put this here)
    Subnet mask 10.1.10.99 (I tried to put in 255.255.255.0 but it keeps changing it!)
    Gateway 10.1.10.99 (I was told to put this here)
    Set MTU is unchecked

    Ive done nothing under the ipsec tab

    Under the DNS tab:
    Hostname: DellDev (the name of my laptop)
    Primary DNS: 192.168.1.15 (I was told this is right)
    Secondary : 192.168.1.16 ( I was told this is right)
    DNS searchpath: DellDucks.net (I have no idea what I"m supposed to put in here but my other laptops are named after Donald Duck's nephews Huey, Loiuis and Dewey - just to add some humor to a dull topic)

    I've done nothing under the hosts tab.

    So.. now...
    if I do an ifconfig eth0 I get :
    link encap: Ethernet HWaddr 00:21:70:9C2:11
    inet addr: 10.1.10.99 Bcast 10.1.10.99 Mask 255.255.255.255
    inet6 addr: fe80::221:70ff:fe9c:d211/64 Scope:link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets: 182 errors:0 dropped:0 overruns:0 frame:0
    TXpackets:12 errors 0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:21205 (20.7 KiB) TX Bytes:1620(1.5 KiB)
    Interrupt: 17

    So..
    1) Am I running DHCP?
    if not, how do know if it is installed?
    How do I install it and configure it?
    NOTE: There is no system-config-network file on Fedora10.
    I need to install everything from the CD & I don't see dhcp on the disk.

    This machine cannot go on the internet for security reasons.
    I don't even know if DHCP is installed or how to figure that out.

    2) Can my machines get an ip when I boot them to windows XP?
    3) How do I know if it worked?


    Please help!
    Thanks in advance!
    Kishki

  2. #2
    Just Joined! kishki's Avatar
    Join Date
    Jan 2009
    Posts
    21
    Well, it's working! Hopefully all my typing will pay off for someone else who wants the info.
    I booted the windows machines and they apparently are assigned ip's like 10.1.10.2 and 10.1.10.3

    so Dhcp must be installed and running but I still don't know how to check.

    I guess just putting these settings in the network gui is all I needed to do!

    I edited some other conf files but for some reason they didn't interfere. I edited the file called network, ifcfg-eth0 (which was overwritten by the Network-Configuration Gui) and tried to edit modprobe.conf but it wasn't in the right place and didn't look at all like my example so I blew that off.

    Anway, it's working.

    I would still like to know how to tell if DHCP is installed and how to know if it's running - other than plugging in the windows machines and running ipconfig on them.

    Thanks!
    Kishki

  3. #3
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    Edit: I just noticed you got F10. These steps are for FC8. I don't know if they're the same for F10...

    Short checklist:

    1
    Server machine firewall must allow request for DHCP service:
    (enter as root user)
    HTML Code:
    iptables -I INPUT -i eth0 -p udp --sport 67:68 --dport 67:68 -j accept
    This allows DHCP services to the LAN; I don't know how to confirm that you are not offering DHCP to the web!!!
    To confirm firewall settings, enter
    HTML Code:
    iptables -L
    To save settings permanently, enter as root:
    HTML Code:
    iptables-save > /etc/sysconfig/iptables
    reboot now, OR:
    iptables-restore < /etc/sysconfig/iptables

    2
    Configure /etc/dhcpd.conf (for SUBnetwork):
    see 24.2.1 here
    24.2.1 dhcpd.conf file config

    3
    now start server as root:
    HTML Code:
    service dhcpd start
    Now verify on HOST machine dhcpd leases file - each machine will appear if logged on:
    HTML Code:
    /var/lib/dhcpd/dhcpd.leases
    leased IP address, MAC of client, and client-hostname "name:;

  4. #4
    Just Joined! kishki's Avatar
    Join Date
    Jan 2009
    Posts
    21
    I got to step2 - configure dhcpd.conf and that file does not exist.

    I wonder if I even have dhcp installed and how can I find out if it is installed?
    I don't see it on the dvd, just dhcpmasq.

    *confused*

    all the other commands worked except ACCEPT needs to be all caps.

    Please let me know how to figure out if dhcp is even installed. I chose pretty much everything when I installed fedora, even webservers.

    And where did they put dhcp.conf in fedora10? I see other people on the web trying to figure that out.

    Thanks!
    Kishki

  5. #5
    Linux User
    Join Date
    Apr 2007
    Posts
    289
    Looks like that file WILL be the same in F10. I think you don't have some packages installed...

    F10 dhcp configuration...

Posting Permissions

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