Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hey, I'm running Slackware 10 and I can get an IP address sometimes.
However, when I reboot I have no eth0. I run rc.inet1 and it just times out and never brings up the interface with an address. If I bring it up with ifconfig I never get an address.
If I halt the system, and wait long enough (I'm not sure how long is actually enough) sometimes it comes up and DHCP gets me an address which I then keep until I reboot.
What information would you need?
THanks
Last edited by carpchowder; 04-14-2005 at 11:10 PM.
Its a dhcp server, I think its NT? Its on a company network, I'm trying to wean in some linux, maybe get some fans? I have never had any dhcp client problems before, and its only on reboot... the configuration works and comes up automatically if I power the box down. Like when I get in tomorrow? It will magically work like nothing happened, but if I rebooted it I'll be hosed. Any idea's what is going on? The client is dhcpcd
Thanks again
Look through your log files in /var/log to see if that reveals anthing. Do you have access to the DHCP server? Maybe it has some logs that can be looked through.
eth0 is not listed for ifconfig, I can bring it up but have no IP. Rerunning rc.inet1 times out, ps doesnt list dhcpcd as running and then ifconfig doesnt list eth0 anymore. It seems as if the DHCP server is not responding at all to anything from dhcpcd? Any more idea's?
Yeah, I would suggest trying to call the sysadmin and asking for a static IP, then you can just put that info into that file above and (hopefully) be done with it.
If your DHCP acknowledge request is timing out it sounds like there is a problem with the DHCP server renewing your lease. Can you post one or two lines of the result of this?
Code:
cat /var/log/messages | grep DHCPACK
Also, do you have any custom firewall rules on your box?
Oh, sorry. I thought dhcpcd was a dhcpcd was a DHCP client that configured my interface? In the rc.inet1 script the command the script says something like... (this is a vague and probably really poor/incorrect interpretation) if the interface isnt up or configured, configure it with dhcp. And one of the commands after that comment is /sbin/dhcpcd -d -t 10
so i figured that dhcpcd must be what I need to communicate to my companies DHCP server. Now the logs seem to indicate the DHCP server isnt acknowledging my DHCP_DISCOVER requests.
What program is doing the requesting? (I thought it was dhcpcd) I am hoping maybe there is a client setting I can try?
Here is my /var/log/debug, I'm no longer at work so it might be a second before I can get back to it. I've also convinced the net admin to show me the server error logs, that wont be until monday as well. As you'll see by the end of the log, I shut down the system totally and when I restarted it? It just worked fine. I realize I could just leave it alone and not worry about it, but I want to know why reboot wont get me an address through DHCP. I updated to slack 10.1, but the problem remains...
Code:
Apr 15 18:48:54 Wilson kernel: CPU: After generic, caps: 0383f9ff
00000000 00000000 00000000
Apr 15 18:48:54 Wilson kernel: CPU: Common caps: 0383f9ff
00000000 00000000 00000000
Apr 15 18:48:57 Wilson dhcpcd[216]: broadcasting DHCP_DISCOVER
Apr 15 18:49:54 Wilson dhcpcd[1225]: broadcasting DHCP_DISCOVER
Apr 15 18:50:09 Wilson dhcpcd[1257]: broadcasting DHCP_DISCOVER
Apr 15 20:19:51 Wilson dhcpcd[1372]: broadcasting DHCP_DISCOVER
Apr 15 20:47:30 Wilson dhcpcd[1417]: broadcasting DHCP_DISCOVER
Apr 15 20:47:45 Wilson dhcpcd[1419]: broadcasting DHCP_DISCOVER
Apr 15 20:52:00 Wilson dhcpcd[1433]: broadcasting DHCP_DISCOVER
Apr 15 20:52:27 Wilson dhcpcd[1454]: broadcasting DHCP_DISCOVER
Apr 15 20:53:30 Wilson dhcpcd[1475]: broadcasting DHCP_DISCOVER
Apr 15 20:56:15 Wilson dhcpcd[1518]: broadcasting DHCP_DISCOVER
Apr 15 20:59:18 Wilson dhcpcd[1561]: broadcasting DHCP_DISCOVER
Apr 15 21:02:24 Wilson kernel: CPU: After generic, caps: 0383f9ff
00000000 00000000 00000000
Apr 15 21:02:24 Wilson kernel: CPU: Common caps: 0383f9ff
00000000 00000000 00000000
Apr 15 21:02:26 Wilson dhcpcd[217]: broadcasting DHCP_DISCOVER
Apr 15 21:02:27 Wilson dhcpcd[217]: broadcastAddr option is missing in
DHCP server response. Assuming 192.168$
Apr 15 21:02:27 Wilson dhcpcd[217]: dhcpIPaddrLeaseTime=259200 in DHCP
server response.
Apr 15 21:02:27 Wilson dhcpcd[217]: DHCP_OFFER received from (192.168.1.2)
Apr 15 21:02:27 Wilson dhcpcd[217]: broadcasting DHCP_REQUEST for 192.168.1.248
Apr 15 21:02:27 Wilson dhcpcd[217]: dhcpIPaddrLeaseTime=259200 in DHCP
server response.
Apr 15 21:02:27 Wilson dhcpcd[217]: DHCP_ACK received from (192.168.1.2)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.