Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting up without ethernet cable plugged in - hangs[Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jellysandwich
n00b
n00b


Joined: 15 Jul 2004
Posts: 33

PostPosted: Tue Oct 18, 2005 3:16 am    Post subject: Booting up without ethernet cable plugged in - hangs[Solved] Reply with quote

My setup works fine with the cable plugged in, but if I
take it out, my computer hangs at "Running dhcpcd ...".

Is there a way to make it work both with and without
the cable?

js


Last edited by jellysandwich on Tue Oct 18, 2005 7:04 pm; edited 1 time in total
Back to top
View user's profile Send private message
Yuusou
Apprentice
Apprentice


Joined: 18 May 2005
Posts: 178
Location: Canada

PostPosted: Tue Oct 18, 2005 3:24 am    Post subject: Reply with quote

you could specify a run level labelled "offline" which you could configure in order to do everything your system does except run dhcpcd. Or you could try pressing control c when it starts trying to run dhcpcd (I dunno if it works, never tried. But I think your best bet will be to try and get an "offline" run level going and boot off of that. There's a section on it in the other sections of the Gentoo Installation Manual.
Back to top
View user's profile Send private message
Syque
Tux's lil' helper
Tux's lil' helper


Joined: 15 Aug 2004
Posts: 110

PostPosted: Tue Oct 18, 2005 3:41 am    Post subject: Reply with quote

I don't know how long you've left it, but dhcpcd takes at least a minute to time out if there's no network. Have you left it for a few minutes to see if it's really hanging?
Back to top
View user's profile Send private message
DOSBoy
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2005
Posts: 84

PostPosted: Tue Oct 18, 2005 6:36 am    Post subject: Reply with quote

Put a -t option in /etc/conf.d/net
You can manually override Dhcpcd timeouts.
Back to top
View user's profile Send private message
krakrjak
n00b
n00b


Joined: 08 Feb 2004
Posts: 20

PostPosted: Tue Oct 18, 2005 7:03 am    Post subject: Reply with quote

if you have mii-tool installed or ethtool you can use the preup() part of the /etc/conf.d/net file in the example we have this:
#preup() {
# # Test for link on the interface prior to bringing it up. This
# # only works on some network adapters and requires the mii-diag
# # package to be installed.
# if mii-tool ${IFACE} 2> /dev/null | grep -q 'no link'; then
# ewarn "No link on ${IFACE}, aborting configuration"
# return 1
# fi
#
# # Test for link on the interface prior to bringing it up. This
# # only works on some network adapters and requires the ethtool
# # package to be installed.
# if ethtool ${IFACE} | grep -q 'Link detected: no'; then
# ewarn "No link on ${IFACE}, aborting configuration"
# return 1
# fi
#
# # Remember to return 0 on success
# return 0
#}

just uncomment the function name and the closing brace then uncomment the section for which ever tool you have installed on your system. This will not bring the interface up if there is no link.

Hope that helps.
Back to top
View user's profile Send private message
jellysandwich
n00b
n00b


Joined: 15 Jul 2004
Posts: 33

PostPosted: Tue Oct 18, 2005 12:55 pm    Post subject: Reply with quote

DOSBoy wrote:
Put a -t option in /etc/conf.d/net
You can manually override Dhcpcd timeouts.


I tried this first since it was the easiest one, and it worked.

Solved! Thanks all!

js
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Oct 18, 2005 2:02 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Networking & Security.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum