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 02-25-2007, 10:43 PM   #1
j0rd4n
LQ Newbie
 
Registered: Jan 2007
Location: Redlands, CA
Distribution: Slackware 11
Posts: 21

Rep: Reputation: 16
Question Increasing Network Timeout Time and Initializing eth0 After Bootup


I have two questions:

1) About 30% of my bootups fail to acquire an IP address. After I am booted and logged in as a user, what do I need to run to attempt to get my eth0 interface up again? When I run ifconfig I only get my loopback adapter (eth0 not listed). I tried re-running most of the scripts in my /etc/rc.d directory with no luck. I also browsed through my rc.M and rc.S files carefully but couldn't find anything that helped. Removing and re-adding my network kernel module didn't help either.

2) How do I increase the timeout time for acquiring an IP address during bootup?

Thanks,
j0rd4n
 
Old 02-26-2007, 12:05 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
Please read the slackbook fully. This will help you a lot in understanding the whole of Slackware ... much better than you can using forum. Read especially about the rc.d directory

Your second question :
rc.inet1 configures the networks , not rc.M/S.
In rc.inet1 there is a line that is :
Quote:
echo "/etc/rc.d/rc.inet1: /sbin/dhcpcd -d -t ${DHCP_TIMEOUT[$i]:-60} ${DHCP_OPTIONS} ${1}" | $LOGGER
/sbin/dhcpcd -d -t ${DHCP_TIMEOUT[$i]:-60} ${DHCP_OPTIONS} ${1}
Change the second line to ...
Quote:
/sbin/dhcpcd -d -t <timeout> ${DHCP_OPTIONS} ${1}
Keep appropriate <timeout> value, read "man dhcpcd" for more info.


Reg. your first question ,
you need to do :
Quote:
#ifconfig eth0 up
#dhcpcd
 
Old 02-26-2007, 09:26 AM   #3
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
aehm, i disagree

don't edit your rc.inet1, just to increase the dhcp timeout (dhcp is an protocol to get ip adresses, since dhcpcd ~> dhcp client daemon)
edit your rc.inet1.conf instead (adding a line DHCP_TIMEOUT[0]=60) should do the trick.
btw, you should really check your connection, if 60 seconds are not enough for you (five are usually more than enough)

and maybe you should read 'man grep' ...'egrep ifconfig /etc/rc.d/rc.*'...
 
Old 02-26-2007, 09:37 AM   #4
j0rd4n
LQ Newbie
 
Registered: Jan 2007
Location: Redlands, CA
Distribution: Slackware 11
Posts: 21

Original Poster
Rep: Reputation: 16
Thumbs up

Thanks guys for your help. That answers my question.
 
  


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
eth0 not coming up at bootup even when configured in ifcfg-eth0 djcham Linux - Networking 1 12-04-2006 08:09 PM
Error while initializing eth0 blpriya12 Linux - General 3 05-09-2005 09:13 AM
increasing retry timeout with mgetty/sendfax? rj1 Linux - General 0 11-09-2004 11:39 PM
[Debian] Boot stop initializing eth0 (DHCP3) Zolex Linux - Newbie 1 03-09-2004 09:05 AM
Trouble initializing eth0 - Red Hat 9 iceolate Linux - Networking 0 10-17-2003 07:07 AM

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

All times are GMT -5. The time now is 03:12 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