LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2005, 07:47 AM   #1
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Rep: Reputation: 15
Question DHCPD stopped on Mandrake 10.1


I have lost my internet connection, and I am having problems getting it back. Actually, it is a problem with dhcpd I think.

If I restart the network, I get a message back saying it was restarted. I have also tried deleting the old connection, and creating a new one. Still doesn't work.
I have cable modem with a router, so I select 'lan' connection.

If I go to Services (Mandrake Control Center), I can see that dhcpd is stopped (it should start at boot). I ran a command that I think was supposed to start up the dhcpd client (I don't think I have the server installed), but I got some kind of error. Don't remember what it was since I am not writing this post at my computer. I think the script was called 'dhclient', but I don't remember where it was located. There was also a 'dhclient-script'.

Any idea how I can restart/install dhcpd client?

Thanks
 
Old 04-16-2005, 06:28 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
At a command line or terminal type and give us the output of:

ifconfig

There you will see your eth0 which should be your ethernet connection via cable modem, etc.

If you don't have an inet address listed and your using dhcp to connect, try doing these to reconnect:

dhcpcd -k <--kills your dhcpd

and then run:

dhcpcd <--this will attempt to pull new IP and internet connection from your router.

If this is like a Linksys router, your probably better off just creating a static entry and setting up your Linux box to use static instead of DHCP.
 
Old 04-18-2005, 07:45 AM   #3
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
Hi,

I will try your suggestions when I get home from work. I do remember doing a ifconfig, but I don't rember what was returned. I will post the result once I have it.

I will also try your suggestions about dhcpd since I think this is the problem. Hopefully dhcpd is still there and I don't have to re install it. However, I think I might have to install it again to get this working. Thanks.

I already tried a static ip address to the router, but that didn't work either.
I believe I entered 192.168.1.1 for the Gateway, 192.168.1.100 (the ip I chose for my pc), and 255.255.255.0 for the subnet mask. I think these settings should have worked.

Thank you for your help.

David
 
Old 04-19-2005, 08:02 AM   #4
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
After I create a new connection (lan) by connecting to my router, this is what I did:

[root@localhost eikeland]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:00:04E:3E
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::290:ff:fe04:de3e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:710 (710.0 b) TX bytes:1278 (1.2 Kb)
Interrupt:11 Base address:0xd800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:292 errors:0 dropped:0 overruns:0 frame:0
TX packets:292 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:25972 (25.3 Kb) TX bytes:25972 (25.3 Kb)

I tried 'dhcpcd -k', but this is what I got:
[root@localhost eikeland]# dhcpcd -k
bash: dhcpcd: command not found

I tried this instead (I think this does the same thing):
[root@localhost sbin]# /sbin/dhclient
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

sit0: unknown hardware address type 776
eth1: unknown hardware address type 24
/sbin/dhclient-script: configuration for sit0 not found.
/sbin/dhclient-script: configuration for eth1 not found.
sit0: unknown hardware address type 776
eth1: unknown hardware address type 24
Listening on LPF/sit0/
Sending on LPF/sit0/
Listening on LPF/eth1/
Sending on LPF/eth1/
Listening on LPF/lo/
Sending on LPF/lo/
Listening on LPF/eth0/00:90:00:04:de:3e
Sending on LPF/eth0/00:90:00:04:de:3e
Sending on Socket/fallback
receive_packet failed on sit0: Network is down
receive_packet failed on eth1: Network is down
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 5
DHCPACK from 192.168.1.1
bound to 192.168.1.100 -- renewal in 38731 seconds.
 
Old 04-19-2005, 10:13 AM   #5
eikeland
Member
 
Registered: Nov 2004
Location: Newport, RI, USA
Distribution: Mandriva 2006
Posts: 125

Original Poster
Rep: Reputation: 15
I tried using a static IP address, but I couldn't get it to work. Based on my previous post, can someone confirm what I should use for:
IP address (I think this can be 192.168.1.2, but it looks like it is set to 192.168.1.100 in my previous post)

Gateway (192.168.1.1 since I believe this is the IP addy of the router. How can I confirm that this is correct? I can't connect to the router, so I don't know for sure. I did reset it, so I should probably be OK)

Subnet mask (I think this should be 255.255.255.0, but I see 255.255.255.255 when I run /sbin/dhclient)

The router is a Linksys.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpd subnet declaration problems in dhcpd.conf vcrispo Linux - Networking 6 07-15-2005 10:32 AM
Konqueror stopped working on Mandrake 10.1 cfojall Linux - Newbie 1 03-22-2005 06:32 PM
mandrake 10.1 sound stopped working BACTRATE Mandriva 13 02-20-2005 09:35 AM
DHCPD startup failure, mdk 9.2, dhcpd v3.0.1rc11 fuzzyworm Linux - Networking 1 02-14-2004 03:58 AM
Mandrake 9.0 Network Stopped Working johan the olive Linux - Networking 7 02-22-2003 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration