Find the answer to your Linux question:
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16
Code: dhcpcd eth0 try it with the 'c' before the last 'd'... that's the name of the command i've always had to use.. not dhcpd.... or you could also just ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078

    Code:
    dhcpcd eth0
    try it with the 'c' before the last 'd'... that's the name of the command i've always had to use.. not dhcpd.... or you could also just type "dhc" and then hit <tab> a couple of times to see what's in your $PATH that starts with "dhc"
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  2. #12
    Just Joined!
    Join Date
    Jan 2004
    Posts
    14
    I tried both, both didnt work, i also tried the following (from another reply in a forum):
    Code:
    &#91;root@localhost root&#93;# dhclient
    Internet Software Consortium DHCP Client V3.0pl2
    Copyright 1995-2001 Internet Software Consortium.
    All rights reserved.
    For info, please visit http&#58;//www.isc.org/products/DHCP
    
    Listening on LPF/eth0/00&#58;60&#58;08&#58;06&#58;17&#58;62
    Sending on   LPF/eth0/00&#58;60&#58;08&#58;06&#58;17&#58;62
    Listening on LPF/lo/
    Sending on   LPF/lo/
    Sending on   Socket/fallback
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 7
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 9
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 10
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 11
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 15
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 9
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    
    &#91;root@localhost root&#93;# dhclient
    Internet Software Consortium DHCP Client V3.0pl2
    Copyright 1995-2001 Internet Software Consortium.
    All rights reserved.
    For info, please visit http&#58;//www.isc.org/products/DHCP
    
    Listening on LPF/eth0/00&#58;60&#58;08&#58;06&#58;17&#58;62
    Sending on   LPF/eth0/00&#58;60&#58;08&#58;06&#58;17&#58;62
    Listening on LPF/lo/
    Sending on   LPF/lo/
    Sending on   Socket/fallback
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 14
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 21
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 11
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
    DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 10
    DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
    No DHCPOFFERS received.
    No working leases in persistent database - sleeping.
    
    &#91;root@localhost root&#93;# cat /etc/resolv.conf
    
    &#91;root@localhost root&#93;# cat /etc/sysconfig/network-scripts/ifcfg-eth0
    # 3Com Corporation|3c905 100BaseTX &#91;Boomerang&#93;
    DEVICE=eth0
    BOOTPROTO=dhcp
    HWADDR=00&#58;60&#58;08&#58;06&#58;17&#58;62
    ONBOOT=yes
    TYPE=Ethernet
    USERCTL=no
    PEERDNS=yes
    
    &#91;root@localhost root&#93;# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1       localhost.localdomain   localhost
    From my point of newbie view everything looks right :S

  3. #13
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Actually, it doesn't look right. It does correctly ask for an IP address and all, but it doesn't get a reply. Are you sure your ISP doesn't use PPPoE?

  4. #14
    Just Joined!
    Join Date
    Jan 2004
    Posts
    14
    Pretty sure yes, because with my old Red Hat i had the exact same configuration, and internet worked...

    + my Windows XP (which I'm on right now) is configured to use DHCP too...

    Im totally sure now,

    Is it something i forgot to install?

  5. #15
    Just Joined!
    Join Date
    Jan 2004
    Posts
    14
    Okay, I think i got a little further, i installed a DHCP package on my sytem

    but when I run dhcpd eth0
    it says: missing /etc/dhcp.conf

  6. #16
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    I think I might have the solution. Before shutting WinXP down, try running the Windows command "ipconfig /release". Then immediately reboot into Linux and see if it works.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

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