From owner-freebsd-questions@FreeBSD.ORG Mon May 31 02:13:08 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 8B98E16A4CF for ; Mon, 31 May 2004 02:13:08 -0700 (PDT) Received: from smtp19.wxs.nl (smtp19.wxs.nl [195.121.6.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F64343D49 for ; Mon, 31 May 2004 02:13:08 -0700 (PDT) (envelope-from marco@beishuizen.info) Received: from yokozuna.bsd (ipd50a233c.speed.planet.nl [213.10.35.60]) by smtp19.wxs.nl (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0HYK00IJTMWQYX@smtp19.wxs.nl> for questions@freebsd.org; Mon, 31 May 2004 11:12:26 +0200 (CEST) Date: Mon, 31 May 2004 11:12:38 +0200 (CEST) From: Marco Beishuizen In-reply-to: <20040530155610.B72548@wonkity.com> Sender: marco@yokozuna.bsd To: Warren Block Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII; format=flowed Content-transfer-encoding: 7BIT FreeBSD: Homepage: References: <20040530155610.B72548@wonkity.com> 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 Reply-To: Marco Beishuizen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 09:13:08 -0000 On stardate Sun, 30 May 2004, the wise Warren Block entered: > 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? I don't know why but it did work. Now I put the media autoselect line in /etc/start_if.dc0 and that works. Thanks, Marco -- Vote for ME -- I'm well-tapered, half-cocked, ill-conceived and TAX-DEFERRED!