From owner-freebsd-stable Thu Nov 7 9:15:21 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89D1F37B401 for ; Thu, 7 Nov 2002 09:15:19 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19E0C43E75 for ; Thu, 7 Nov 2002 09:15:19 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id gA7HF7s7024547; Thu, 7 Nov 2002 09:15:07 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id gA7HF7rV024546; Thu, 7 Nov 2002 09:15:07 -0800 Date: Thu, 7 Nov 2002 09:15:07 -0800 From: Brooks Davis To: Tom Limoncelli Cc: Brooks Davis , Michael Butler , stable@FreeBSD.ORG Subject: Re: ifconfig fxp mediaopt dysfunctional? Message-ID: <20021107091507.A22727@Odin.AC.HMC.Edu> References: <3A1C67FFB6A3F546A548BD82999195375454DD@dcc3ex01.int.exodus.net> <20021106130057.A31056@Odin.AC.HMC.Edu> <3DCA7E19.A781CA80@lumeta.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3DCA7E19.A781CA80@lumeta.com>; from tal@lumeta.com on Thu, Nov 07, 2002 at 09:52:09AM -0500 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 07, 2002 at 09:52:09AM -0500, Tom Limoncelli wrote: > Brooks Davis wrote: > >=20 > > On Wed, Nov 06, 2002 at 03:54:09PM -0500, Michael Butler wrote: > > > I'm running 4.7-stable and .. > > > > > > imb@mbutler# ifconfig fxp0 > > > fxp0: flags=3D9843 mtu = 1500 > > > inet 66.37.xxx.yyy netmask 0xfffffff8 broadcast 66.37.vvv.www > > > ether 00:50:8b:0d:7f:64 > > > media: Ethernet autoselect (100baseTX ) > > > status: active > > > > > > .. but .. > > > > > > imb@mbutler# ifconfig fxp0 mediaopt full-duplex > > > ifconfig: SIOCSIFMEDIA: Device not configured > > > > > > Hard-setting speed works but not duplex. > >=20 > > You can't set mediaopts without setting media. The correct command is > >=20 > > ifconfig fxp0 media 100baseTX mediaopt full-duplex >=20 > Should this be fixed by (1) having ifconfig print an error message that > explains that both are needed, or (2) make ifconfig smarter so that it > "fills in" the media option based on the device? Actually, it does work (I though it didn't but looking at the code showes it does). The problem Michael had was that the media type "autoselect" doesn't support full duplex. If you set the media to 100baseTX and then mess with the full-duplex mediaopt, that works fine. The error message is definalty not helpful. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9yp+aXY6L6fI4GtQRAt1JAJ47RyMXAt+S4ye2szx5tZbKBh4CTQCdFGH0 Tgl6hn91dnTMz5EjWPjoAD0= =WGOr -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message