Find the answer to your Linux question:
Results 1 to 5 of 5
hi, pls, I would need some help with my setting up of my pc as a DHCP server. I use RedHat 9.1 which has been doing well since i installed ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    167

    Home Networking - pls help


    hi,

    pls, I would need some help with my setting up of my pc as a DHCP server. I use RedHat 9.1 which has been doing well since i installed it. The server is linux and the client is windows XP

    I bought a PCI card, installed it on my server and rebooted. The PCI card was recognized at bootup time and configured. I followed details as per a tutorial "Home Network - Mini How to" I found on the web. I configured both cards. etc.

    My isp gave me one IP which is on my linux pc. After setting thisngs up, from my windows pc, I can ping the Linux computers IP, however I cant ping the default gateway assigned. i get "request timed out errors". Also note that I can access the internet from my linux server. however, "ping yahoo.com" requests from my windows pc returns "request timed out" errors"

    i also get timeouts from my linux server when i try piinging the 192.168.1.5 IP i assiigned on my windows PC.

    pls help
    Toks

    pls help
    `

  2. #2
    Linux Guru Flatline's Avatar
    Join Date
    Feb 2005
    Posts
    2,204
    What distro are you using? There is no RedHat 9.1 as far as I know.

    Is your Windows PC actually getting its IP address via DHCP? You almost made it sound like you assigned a static IP. Does the Windows machine have its firewall activated? If so, that would explain the problem with pinging. As for the internet access problem, that is not a DHCP problem (unless you specified the wrong gateway in your DHCP config). Could you give us a link to the tutorial you followed? Could you also post the contents of your /etc/dhcpd.conf file?
    There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence.

    - Jeremy S. Anderson

  3. #3
    Linux Guru sarumont's Avatar
    Join Date
    Apr 2003
    Location
    /dev/urandom
    Posts
    3,682
    Did you set up any IP forwarding on the Linux box? Can you post the output from the Linux box of the following commands:

    Code:
    ifconfig -a
    route
    cat /proc/sys/net/ipv4/ip_forward
    Also, if it's just 2 PCs, I'd suggest just using static IP assignments. DHCP is overkill for that situation.
    "Time is an illusion. Lunchtime, doubly so."
    ~Douglas Adams, The Hitchhiker's Guide to the Galaxy

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    167
    hello guys,

    I guess my former network card was fauilty. I tried it out on a WinXP pc and it didnt work, so ive changed to another network card and it was detected during bootup time....and issuing your previous commands, here are the outputs.


    anyways, replies to your ?s are below
    ..............................................
    hello Sarumont,

    [root@me root]# ifconfig -a
    eth0 Link encap:Ethernet HWaddr 00:40:05:40B:53
    inet addrx.xxx.xxx.xx Bcastx.xxx.xxx.xx Maskxx.xxx.xxx.xxx
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:3014 errors:0 dropped:0 overruns:0 frame:0
    TX packets:2749 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:2955863 (2.8 Mb) TX bytes:313557 (306.2 Kb)
    Interrupt:11 Base address:0xec00

    eth1 Link encap:Ethernet HWaddr 00:11:5B:6E:40:0F
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:119 errors:0 dropped:0 overruns:0 frame:0
    TX packets:61 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:100
    RX bytes:16086 (15.7 Kb) TX bytes:9845 (9.6 Kb)
    Interrupt:11 Base address:0xd800

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:21967 errors:0 dropped:0 overruns:0 frame:0
    TX packets:21967 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:1498977 (1.4 Mb) TX bytes:1498977 (1.4 Mb)

    [root@me root]# route
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    xx.xxx.xxx.xx * xxx.xxx.xxx.xxx U 0 0 0 eth0
    169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
    127.0.0.0 * 255.0.0.0 U 0 0 0 lo
    default xx.xxx.xxx.xxx 0.0.0.0 UG 0 0 0 eth0

    [root@me root]# cat /proc/sys/net/ipv4/ip_forward
    1
    .................................................. ....................................

    Flatline,

    I think the distro im using is 9.2.

    ......................................

    note: when I do a "cd /etc/dhcp.conf", im prompted whether I want to create the file. Besides I dont see any dhcp.conf file in the /etc directory.

    the link to the tutorial im following is:
    http://www.ibiblio.org/pub/linux/doc...f/home-network mini-howto.pdf


    thanks for all the helps
    cheers
    toks

  6. #5
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    167
    In addition,

    since i didnt find a /etc/dhcp.conf file, I did some websearches and arrived here:http://www.chinalinuxpub.com/doc/www...ux-hn/dchp.htm

    following this tutorial, i downloaded the file "dhcp-3.0pl1-9.i386.rpm" which according to the author in the above link is for RH8.0, but since I couldnt find anyone for RH9....

    issuing this command to install the .rpm file above:
    "rpm -Uvh dhcp-3.0pl1-9.i386.rpm"

    results in this error:
    warning: dhcp-3.0pl1-9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
    Preparing... ########################################### [100%]
    file /usr/share/man/man5/dhcp-options.5.gz from install of dhcp-3.0pl1-9 conflicts with file from package dhclient-3.0pl1-23"

    I checked out the DIR at /usr/share/man/man5 and i see among other files the ff files:
    *dhclient.conf.5.gz
    *dhclient.leases.5.gz
    *dhcp-options.5.gz

    please, how do I know if dhcp is already installed on my server.
    also, please, whats next from here

    cheers
    toks

Posting Permissions

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