Simple use of Mii-tool ethtool commands under Linux

Source: Internet
Author: User
Tags system log

################################################################

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.