From owner-freebsd-net Thu Oct 10 13: 9:19 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9044B37B401 for ; Thu, 10 Oct 2002 13:09:18 -0700 (PDT) Received: from obsidian.sentex.ca (obsidian.sentex.ca [64.7.128.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id F083643EAC for ; Thu, 10 Oct 2002 13:09:17 -0700 (PDT) (envelope-from damian@sentex.net) Received: from pegmatite (pyroxene.sentex.ca [199.212.134.18]) (authenticated bits=0) by obsidian.sentex.ca (8.12.6/8.12.6) with ESMTP id g9AK9FBE095259 for ; Thu, 10 Oct 2002 16:09:16 -0400 (EDT) (envelope-from damian@sentex.net) Date: Thu, 10 Oct 2002 16:08:26 -0400 From: Damian Gerow X-Mailer: The Bat! (v1.61) Organization: Sentex Data Communications X-Priority: 3 (Normal) Message-ID: <64592473972.20021010160826@sentex.net> To: freebsd-net@freebsd.org Subject: DHCP and media selection on bootup MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: By Sentex Communications (obsidian/20020517) X-Spam-Status: No, hits=-2.5 required=5.0 tests=NOSPAM_INC,SPAM_PHRASE_00_01,USER_AGENT_THEBAT version=2.41 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I haven't seen anything on this, but have just run into it when trying to set up a machine. We have a FreeBSD workstation that retrieves its IP address via DHCP. Normally this works all fine and dandy, but if the card autoselects the media to the wrong type, then there's no DHCP. The only way I've found around this is to create a script in /usr/local/etc/rc.d that does the ifconfig and dhclient itself. I've tried setting to ifconfig_fxp0 lines in /etc/rc.conf, the first for the media selection and the second for the DHCP instruction, but that didn't work -- the card stayed in autoselect. The only thing I haven't tried is "DHCP media mediaopt ", but I'm not sure this will work. Is there any way to manually set the NIC media, while retreiving the IP address via DHCP? - Damian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message