LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-25-2011, 06:57 AM   #1
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 173

Rep: Reputation: 34
Client acquires IP on boot, but lacks it when done


I just installed 13.37 on a client. All went well and I was happy. After reboot, I usually try to keep up with the boot messages to get a glimpse of the IP given it by the gateway.

Ok, it was a bit hesitant, but finally was given 192.168.0.154.

Thusly I enabled a mirror for the first update. But the network was unreachable. Ifconfig gives no valid IP.

So far I have tried to reboot (it's important that I know that the network comes up on powerfailure). And I have given:
Code:
ifconfig eth0 up
In an attempt to start the network manually.

During the boot sequence, the dhcpcd section ends with a time out, after getting the IP. Does that matter much?
 
Old 07-25-2011, 10:51 AM   #2
saavedra29
Member
 
Registered: Aug 2010
Location: Greece
Distribution: slackware
Posts: 42

Rep: Reputation: 3
I think you don't need to reboot the machine to get an ip. You can run
Code:
/etc/rc.d/rc.inet1 restart
This runs dhcpd and gives an ip. Dhcpd is not a daemon (at least there is not an rc.dhcpd file in the /etc/rc.d folder). So if saying time out you mean that the dhcpd is not running but you have the ip then it seems to me ok..
 
1 members found this post helpful.
Old 07-25-2011, 11:24 AM   #3
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 34
Yes! That got the network going. Thanks a lot! Ok, I used start instead of restart ... Still, it works.

Now, I am just curious as to why the IP acquired at boot (the very same one I might add) is not present once the machine is fully booted. I need to be able to rely on the computer to be reachable over the network every time there is a hiccup on the powerline. There have been a few too many lately.

The answer isn't really to add the command a few times after the initial boot is done right?
 
Old 07-25-2011, 12:01 PM   #4
vulcan59
Member
 
Registered: Sep 2007
Location: UK
Distribution: Slackware 14.1
Posts: 73

Rep: Reputation: 24
After I upgraded to 13.37 I found that the default dhcp timeout value was not long enough for me to reliably get an IP address. Try increasing DHCP_TIMEOUT in /etc/rc.d/rc.inet1.conf. That worked for me and removed the timeout message you referred to. I never did work out why the process of getting an IP seems to be slower in 13.37 than it was in 12.2.
 
1 members found this post helpful.
Old 07-25-2011, 12:47 PM   #5
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 34
Thanks for the tip. I have yet to reboot the machine in order to try it out. There were no such parameter, so I added a new line under the eth0 segment:
Code:
DHCP_TIMEOUT[0]="10"
What I did notice running the command above was that it ended with
Quote:
dhcpcd[18240]: forked to background, child pid 18269
, instead of as before with a timeout.
 
Old 07-25-2011, 12:58 PM   #6
Wed
Member
 
Registered: Sep 2005
Location: Sweden
Distribution: Slackware
Posts: 173

Original Poster
Rep: Reputation: 34
Yep. It worked like a charm. 10s was not enough though, but 30s is.
 
  


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
ls lacks options? stf92 Linux - General 10 11-03-2010 11:01 PM
mv lacks --recursive option. cp does not. stf92 Linux - Newbie 6 05-17-2009 03:55 AM
how to setup thin client just for telnet or ssh client use using boot diskless PXE. hocheetiong Linux - Newbie 3 05-21-2008 07:02 PM
Sun acquires MySQL jeremy Syndicated Linux News 13 02-10-2008 02:42 PM
Mplayer lacks an icon... ?!? Bakambauer Linux - Software 4 04-10-2004 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration