Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96146 - net.* startup scripts should check to see if connected before dhcp (via mii-diag)
Summary: net.* startup scripts should check to see if connected before dhcp (via mii-d...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 123875 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-14 20:52 UTC by DC
Modified: 2008-07-20 13:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DC 2005-06-14 20:52:03 UTC
If a Ethernet interface is configured for DHCP, but it's not actually connected
to the network, the dhcpcd client will hang until it times out, making startup
really slow. The startup scripts should check to make sure that the card is
actually connected to something before attempting DHCP.

The mii-diag program (sys-apps/mii-diag) reports whether an Ethernet interface
is actually connected to anything. Could someone add a call to mii-diag in the
right place in the network startup scripts?

Reproducible: Always
Steps to Reproduce:
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-06-14 22:46:37 UTC
ethtool is more recent and reliable than mii-diag, but be sure to take into 
account the fact that some network cards don't support either of them.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-06-15 02:41:08 UTC
/etc/conf.d/net.example shows how this can be done

Robin is right though - not all networks cards support this, hence it will not
be included by default.

However, baselayout-1.12.0-alpha3 will contain much better parallel startup
support AND give you the ability to background dhcp requests
Comment 3 SpanKY gentoo-dev 2006-02-23 18:06:55 UTC
*** Bug 123875 has been marked as a duplicate of this bug. ***
Comment 4 Stefan de Konink 2008-07-20 13:27:03 UTC
(In reply to comment #2)
> /etc/conf.d/net.example shows how this can be done
> 
> Robin is right though - not all networks cards support this, hence it will not
> be included by default.
> 
> However, baselayout-1.12.0-alpha3 will contain much better parallel startup
> support AND give you the ability to background dhcp requests

OpenRC these days tries to do a request again after the user canceled it, I'll look into the net.example.