Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Oct 2007 23:48:19 GMT
From:      Miguel Lopes Santos Ramos <miguel@anjos.strangled.net>
To:        dyeske@gmail.com, freebsd-stable@freebsd.org
Subject:   Re: interface speed support
Message-ID:  <200710292348.l9TNmJ4w006124@satan.anjos.strangled.net>
In-Reply-To: <85bdae4e0710171603p4a269efbi62710d55e37b733d@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: "David Yeske" <dyeske@gmail.com>
>
> Is there a way to determine the supported interface speed of a
> particular driver?  If I have a gigabit ethernet device connected to a
> 100baseTX switch, how can I determine the interface supports gigabit
> ethernet?  I have tried parsing the following.  Is there a cleaner way
> to do this?
>
> sysctl -A | grep phy | grep desc

I think using that line you're only checking what kind of phy device you have.
If it is connected to a 100baseTX switch, it must be using 100baseTX.

For controlling and querying the media type that you're actually using, you
can use ifconfig media parameter.
The actual value that this parameter accepts are device dependent but
in practice quite standard like 100baseTX or 1000baseTX.

say, ifconfig | grep media:

Greetings,
Miguel



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