Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163858 - no network present but still dhcp tries to get IP resulting in very slow boot
Summary: no network present but still dhcp tries to get IP resulting in very slow boot
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-26 04:15 UTC by Arstan
Modified: 2007-01-26 08:24 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 Arstan 2007-01-26 04:15:33 UTC
If my network eth0 is set to get IP automatically and no network cable/link is present dhcp still tries to get IP. This results in very slow boot up when no network cable/link is present.

I suggest that there should be a check if any network cable/link is present before dhcp tries to get IP. So if there's a cable/link up then it will try to get IP from dhcp servers otherwise it should just skip searching for IP.

Reproducible: Always

Steps to Reproduce:
1. Change settings in  /etc/conf.d/net  to config_eth0=("dhcp")
2. Unplug networking cables, disable wifi
3. reboot

Actual Results:  
very slow boot time due to searching for dhcp servers to get IP

Expected Results:  
to check if any cables/links present and then search for dhcp servers
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-26 08:24:03 UTC
sys-apps/ifplugd
sys-apps/netplug

(And if you don't want either of those, you still can set a short timeout in your configuration file)