[SDBUG] read/write mii regs in FreeBSD
Ron Rosson
ron at oneinsane.net
Mon Dec 3 11:33:57 PST 2007
On Dec 3, 2007, at 12:52 PM, J. Cordaro wrote:
> Guys,
>
> My yahoo mail sux, sorry if this is a duplicate.
> I am trying to read/write mii registers in BSD. This
> is simple in linux, I just use ethtool.
>
> I need more than what ifconfig can provide, I think.
> I need to monitor the status of the autoneg registers.
> I am having an interop issue with a machine. I want
> to see what this machine's autoneg status register
> says after I plug a cable in. I would like to do this
> without wiping out the machine and loading linux.
jay,
Under *BSD this is all handled with the ifconfig command. Below are
a few snippits from the man page of ifconfig:
mediaopt opts
If the driver supports the media selection system, set
the speci-
fied media options on the interface. The opts argument
is a
comma delimited list of options to apply to the
interface. Refer
to the interfaces' driver specific man page for a
complete list
of available options.
-mediaopt opts
If the driver supports the media selection system,
disable the
specified media options on the interface.
Take a more complete at the ifconfig man page for more information.
-Ron
--
Ron Rosson
ron at oneinsane.net
http://www.oneinsane.net
More information about the SDBUG
mailing list