From owner-freebsd-questions@FreeBSD.ORG Sun May 30 14:34:40 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 5806616A4CE for ; Sun, 30 May 2004 14:34:40 -0700 (PDT) Received: from gaff.hhhr.ision.net (gaff.hhhr.ision.net [195.180.9.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDA2043D41 for ; Sun, 30 May 2004 14:34:38 -0700 (PDT) (envelope-from ohoyer@ohoyer.de) Received: from gaff.hhhr.ision.net (ohoyer@localhost [127.0.0.1]) by gaff.hhhr.ision.net (8.12.11/8.12.11) with ESMTP id i4ULYinq049378; Sun, 30 May 2004 23:34:44 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) Received: from localhost (ohoyer@localhost)i4ULYhQM049375; Sun, 30 May 2004 23:34:44 +0200 (CEST) (envelope-from ohoyer@ohoyer.de) X-Authentication-Warning: gaff.hhhr.ision.net: ohoyer owned process doing -bs Date: Sun, 30 May 2004 23:34:43 +0200 (CEST) From: Olaf Hoyer Sender: ohoyer@gaff.hhhr.ision.net To: Marco Beishuizen In-Reply-To: Message-ID: <20040530232957.B49195@gaff.hhhr.ision.net> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 21:34:40 -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. > > 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 are two solutions: 1) (Untested by me) ifconfig_dc0="DHCP media 100baseTX" 2) put the media change in a separate shell script, and throw it unter /usr/local/etc/rc.d, so that it will be executed later on something like: >cat dc0-speedchange.sh #!/bin/sh ifconfig dc0 media 100baseTX HTH Olaf -- Olaf Hoyer ohoyer@gaff.hhhr.ision.net Fuerchterliche Erlebniss geben zu raten, ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. (Nietzsche, Jenseits von Gut und Boese)