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 |
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. |
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 |
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:04:DE: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. |
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 |
All times are GMT -5. The time now is 04:28 AM. |