FreeBSD equivalent of ethtool

1,907 views
Skip to first unread message

Rocky Hotas

unread,
Oct 13, 2021, 7:30:52 PM10/13/21
to FreeBSD Questions
Hello!
`pkg search ethtool' provides no suitable results. Is there any executable
in FreeBSD base system or ports which offers the same functionalities
(or similar ones) as ethtool in Linux?
Thank you,

Rocky

Pete Wright via freebsd-questions

unread,
Oct 13, 2021, 8:02:05 PM10/13/21
to Rocky Hotas, FreeBSD Questions
I think it really depends on what your specific use-case is.

I find that BSD ifconfig(8) covers most use cases for configuring
interfaces (both physical and virtual), and the sysctl interface is also
useful for pulling and setting device specific information. the latter
is usually well documented in the man page for the interface (see
if_em(4) for example).

it should be noted that ifconfig(8) on bsd's tends to do much more than
the old linux ifconfig and probably the new "ip" command as well.

finaly, netstat(1) is very helpful for viewing information about the
network stack itself, for example "netstat -m" to view memory stats.

-p

--
Pete Wright
pe...@nomadlogic.org
@nomadlogicLA


Rocky Hotas

unread,
Oct 14, 2021, 4:49:49 AM10/14/21
to pe...@nomadlogic.org, FreeBSD Questions
> Sent: Thursday, October 14, 2021 at 2:00 AM
> From: "Pete Wright via freebsd-questions" <freebsd-...@freebsd.org>
> To: "Rocky Hotas" <rocky...@post.com>, "FreeBSD Questions" <freebsd-...@freebsd.org>
> Subject: Re: FreeBSD equivalent of ethtool

[...]

> I think it really depends on what your specific use-case is.

Sorry, I didn't specify it explicitly. In particular, `ethtool -d
<network_interface>', that is: dumping all the values in the internal
registers of the NIC.

> I find that BSD ifconfig(8) covers most use cases for configuring
> interfaces (both physical and virtual), and the sysctl interface is also
> useful for pulling and setting device specific information. the latter
> is usually well documented in the man page for the interface (see
> if_em(4) for example).

So, maybe I can look in sysctl or ifconfig(8), if they also allow the
register dumping.

> it should be noted that ifconfig(8) on bsd's tends to do much more than
> the old linux ifconfig and probably the new "ip" command as well.

Yes, the BSD one is a very different and complex tool.

Rocky

Reply all
Reply to author
Forward
0 new messages