Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Nov 2002 09:15:07 -0800
From:      Brooks Davis <brooks@one-eyed-alien.net>
To:        Tom Limoncelli <tal@lumeta.com>
Cc:        Brooks Davis <brooks@one-eyed-alien.net>, Michael Butler <Michael.Butler@exodus.net>, stable@FreeBSD.ORG
Subject:   Re: ifconfig fxp mediaopt dysfunctional?
Message-ID:  <20021107091507.A22727@Odin.AC.HMC.Edu>
In-Reply-To: <3DCA7E19.A781CA80@lumeta.com>; from tal@lumeta.com on Thu, Nov 07, 2002 at 09:52:09AM -0500
References:  <3A1C67FFB6A3F546A548BD82999195375454DD@dcc3ex01.int.exodus.net> <20021106130057.A31056@Odin.AC.HMC.Edu> <3DCA7E19.A781CA80@lumeta.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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<UP,BROADCAST,RUNNING,SIMPLEX,LINK0,MULTICAST> 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 <full-duplex>)
> > >         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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021107091507.A22727>