################################################################
View the physical information of the Linux network card by command, status:
[Email protected] ~]# Mii-tool eth0
eth0:negotiated 100basetx-fd, link ok
-V Displays the version information;-V displays information about the network interface;
-R resets Mii to on State;-R restarts auto-negotiation mode;
-W View the status change of the network interface connection;-L write event to system log;
-A instruction-specific network interface;-F change the network interface negotiation method;
What if we want to change the network interface eth0 to 1000mb/s full duplex mode?
[Email protected] ~]# mii-tool-f 100BASETX-FD
#################################################################
The information that is viewed through the Mii-tool command is too small, and the following commands can be used to view more network card information.
See more of the underlying information by Ethtool eth0:
[Email protected] ~]# Ethtool eth0
Settings for eth0:
Supported ports: [TP]
Supported Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Supported pause frame Use:no//Whether hot-swappable is supported
Supports Auto-negotiation:yes//Whether auto-negotiation is supported
Advertised Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Advertised Pause frame Use:no
Advertised Auto-negotiation:yes
SPEED:1000MB/S//Rate
Duplex:full//Full Duplex
port:twisted Pair//Electric port
phyad:0
Transceiver:internal
Auto-negotiation:on
Mdi-x: Unknown
Supports wake-on:d
Wake-on:d
Current Message level:0x00000007 (7)
DRV probe link
Link Detected:yes
The driver information of the NIC can be viewed by ethtool-i eth0:
[[email protected] ~]# ethtool-i eth0//driver version of the NIC
driver:e1000
Version:7.3.21-k8-napi
Firmware-version:
bus-info:0000:02:01.0
Supports-statistics:yes
Supports-test:yes
Supports-eeprom-access:yes
Supports-register-dump:yes
Supports-priv-flags:no
You can check the working status of the NIC by ethtool-s eth0:
Such as: can see the network card input traffic, output traffic, input packet, output packet, input broadcast, output broadcast, input network error packet, output network error packet, etc...
Simple use of Mii-tool ethtool commands under Linux