From owner-freebsd-questions@FreeBSD.ORG Sun May 30 15:01:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AACC16A4D1 for ; Sun, 30 May 2004 15:01:17 -0700 (PDT) Received: from wonkity.com (wonkity.com [65.173.111.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7BB043D5D for ; Sun, 30 May 2004 15:01:16 -0700 (PDT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.12.11/8.12.11) with ESMTP id i4UM0h2L072625; Sun, 30 May 2004 16:00:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.12.11/8.12.11/Submit) with ESMTP id i4UM0gRl072622; Sun, 30 May 2004 16:00:42 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Sun, 30 May 2004 16:00:42 -0600 (MDT) From: Warren Block To: Marco Beishuizen In-Reply-To: Message-ID: <20040530155610.B72548@wonkity.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: FreeBSD questions mailing list Subject: Re: ifconfig in rc.conf network problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 22:01:17 -0000 On Sun, 30 May 2004, Marco Beishuizen wrote: > I used to have two ifconfig lines in my rc.conf: > ifconfig_dc0="DHCP" > ifconfig_dc0="media autoselect" > > The first to enable DHCP and the second to set my networkcard to 100BaseTX > full duplex. Can rc.conf work that way? rc.conf is just a shell script, and you're assigning values to variables, so the second declaration would overwrite the first. As to why that would have worked for you... After dhclient runs successfully once, some of the information is kept on disk (resolv.conf, default route). Maybe it was enough? > Now after an upgrade to 4.10-release this doesn't work anymore. When I put > both lines in rc.conf only the second line is effective and overrides the > first, but I want to use both DHCP and 100BaseTX. I need to use the "media > autoselect" because the networkcard defaults to 10BaseT but I want to use > 100Mbit. When I don't use DHCP the network is unreachable. Pinging then gives > a "no route to host". There's an example of specifying media type in the dhclient.conf man page. -Warren Block * Rapid City, South Dakota USA