Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2002 21:36:01 -0700 (PDT)
From:      "Jan L. Peterson" <jlp@softhome.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/38559: rc.network hangs for a long time attempting dhcp setup of disconnected interface
Message-ID:  <200205260436.g4Q4a180036569@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         38559
>Category:       conf
>Synopsis:       rc.network hangs for a long time attempting dhcp setup of disconnected interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 25 21:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jan L. Peterson
>Release:        4.5-RELEASE
>Organization:
>Environment:
FreeBSD aurora.corp.flipdog.com 4.5-RELEASE FreeBSD 4.5-RELEASE #2: Thu May  2 13:28:39 MDT 2002     root@aurora.corp.flipdog.com:/usr/src/sys/compile/AURORA  i386
>Description:
When booting my laptop with the lan disconnected, the system hangs for a short while right after printing 
  Doing initial network setup; hostname

This happens because the interface, which has been set for DHCP, is not connected to a cable.  The system hangs until dhclient times out (or I press ctrl-C on the console :-), then proceeds with normal startup.

>How-To-Repeat:
Boot a machine configured for DHCP with the network cable unplugged.
>Fix:
I will attach a patch to the PR once it is issued.  A brief synopsis of the patch is:

In /etc/rc.network, there is a loop where it goes through all configured interfaces, looking for those set for DHCP.  When it finds one, it adds it to the dhcp_interfaces variable.  The patch first checks if there is carrier present on the interface, and if not, doesn't add it to dhcp_interfaces.
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205260436.g4Q4a180036569>