Mii-tool command

Source: Internet
Author: User
Tags system log

Source: http://xukaizijian.blog.163.com/blog/static/1704331192011662137528/

mii-tool:linux the command to set the network card working mode specifically
Mii-tool--help
Usage:mii-tool [-VVRRWL] [-A Media,... |-F media] [interface ...]
-V,--version display version information displays versioning information
-V,--verbose more verbose output Display network interface information;
-R,--reset reset MII to PowerOn State resetting MII to open;
-R,--restart restart autonegotiation restart automatic negotiation mode;
-W,--watch Monitor for link status changes view the status changes of network interface connections;
-L,--log with-w, write events to Syslog writes event to system log;
-A,--advertise=media,... advertise only specified media instruction-specific network interface;
-F,--force=media force specified media technology Change network interface negotiation mode;

MEDIA:1000BASETX-HD, 1000BASETX-FD,
100baset4, 100BASETX-FD, 100BASETX-HD,
10BASET-FD, 10BASET-HD,
(To advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT

To change the operating mode of the NIC, enter the command:
[root@10.10.90.97 ~]# mii-tool-f Media [interface]
MEDIA:1000BASETX-HD, 1000basetx-fd,100baset4, 100BASETX-FD, 100BASETX-HD,10BASET-FD, 10baseT-HD
Interface: Represents the selected network card, such as eth0,eth1, default to Eth1

Example 1: View the operating mode of the NIC
[root@10.10.90.97 ~]# mii-tool-v eth0
eth0:negotiated 1000baset-fd flow-control, link ok
Product Info:vendor 00:50:EF, model Rev 8
Basic Mode:autonegotiation Enabled
Basic status:autonegotiation complete, link OK
CAPABILITIES:1000BASET-FD 100basetx-fd 100BASETX-HD 10baset-fd 10BASET-HD
ADVERTISING:1000BASET-FD 100basetx-fd 100basetx-hd 10baset-fd 10baset-hd Flow-control
Link partner:1000baset-fd 100basetx-fd 100basetx-hd 10baset-fd 10BASET-HD
The above shows this network card work in 1000m Full-duplex adaptive mode, "1000basetx-fd" meaning 1000m full duplex

Example 2: Setting up a network adapter to work in 100M Half-duplex mode
[root@10.10.90.97 ~]# mii-tool-f 100BASET-HD eth0

Example 3: Restoring the adaptive operating mode of the NIC
[root@10.10.90.97 ~]# mii-tool-r eth0


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.