ethtool and modinfo equivalent commands in FreeBSD

Hi,

I am new to Free BSD. I want to know the equivalent commands for the following Linux commands.

1. modinfo
2. ethtool -i <interface> - this gives driver version and hardware firmware details.

Thanks
Ekta
 
I feel that kldstat is equivalent to lsmod because this command will not give the driver version. How do i get teh driver version?
 
There are no driver versions as they are all part of the same FreeBSD kernel.
 
View Current Speed and Duplex Settings
# ifconfig em0
# ifconfig interface-name
# ifconfig | grep media
ifconfig command to change speed and duplex settings
ifconfig <interface-name> <IP_address> media 100baseTX mediaopt full-duplex
Make speed and duplex settings permanent
# vi /etc/rc.conf
Code:
ifconfig_em0="inet x.x.x.x netmask y.y.y.y media 10baseT/UTP mediaopt full-duplex"
Make sure you replace x.x.x.x and y.y.y.y with actual IP and netmask address.
Code:
ifconfig_em0="inet 10.10.1.2 netmask 255.255.255.0 media 100baseT/UTP mediaopt full-duplex"
# /etc/rc.d/netif restart
 
ekta said:
I am new to Free BSD. I want to know the equivalent commands for the following Linux commands.
...
2. ethtool -i <interface> - this gives driver version and hardware firmware details.

I'd add to the previous posts:

FreeBSD names Ethernet devices after the drivers they use. This makes it trivial to learn more about the driver via the manpages.

For instance, on my system:
Code:
% /sbin/ifconfig | grep -i running
igb0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
...

My Ethernet device is using the igb(4) (Intel PRO/1000 PCIe Gb) driver. To view details about that driver:

% man igb
 
Back
Top