Gentoo Wiki


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

HOWTO Set a timeout for DHCPCD

Simply open /etc/conf.d/net in your favourite editor, and add (or edit) the following line accordingly:

dhcpcd_DEVICE="-t SECONDS"

Where DEVICE is the network device applicable, and SECONDS is the timeout you wish to apply to DHCPCD upon its execution during the automatic network configuration on boot.

According to /etc/conf.d/net.examples of 2005.1, the file /etc/dhclients.conf is required for this to work, and so far remains untested. This configuration has however been confirmed functional without dhclients.conf in 2005.0.

     Note: This works without any /etc/dhclients.conf in a 2006.1 install.
     Important: No spaces on both sides of the equal sign ("=")!
Retrieved from ""

Last modified: Fri, 05 Sep 2008 09:48:00 +0000 Hits: 12,058