Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux/Unix mii-tool command

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

The command to set the working mode of the network card under mii-tool:linux

Mii-tool-help

Usage: mii-tool [- VvRrwl] [- A media,... |-F media] [interface...]

-V,-- version display version information displays version information

-v,-- verbose more verbose output displays information about the network interface

-R,-- reset reset MII to poweron state resets MII to on

-r,-- restart restart autonegotiation restart autonegotiation mode

-w,-- watch monitor for link status changes to view changes in the status of network interface connections

-l,-- log with-w, write events to syslog writes events to the system log

-A,-- advertise=media,... Advertise only specified media directs specific network interfaces

-F,-- force=media force specified media technology changes the negotiation mode of network interface

Media: 1000baseTx-HD, 1000baseTx-FD

100baseT4, 100baseTx-FD, 100baseTx-HD

10baseT-FD, 10baseT-HD

(to advertise both HD and FD) 1000baseTx, 100baseTx, 10baseT change the working mode of the network card, enter the command:

[root@10.10.90.97] # mii-tool-f media [interface]

Media: 1000baseTx-HD, 1000baseTxFD FDD, 100baseTx-FD, 100BasTxMelody HDpr 10BasTlue FD, 10baseT-HD

Interface: represents the selected network card, such as eth0,eth2. Default is eth2 instance 1: view the working mode of the network card.

[root@10.10.90.97] # mii-tool-v eth0

Eth0: negotiated 1000baseT-FD flow-control, link ok

Product info: vendor 00:50:ef, model 60 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 that the network card works in 1000m full-duplex adaptive mode, and "1000basetx-fd" means 1000m full duplex instance 2: set the network card to work in 100m half-duplex mode

[root@10.10.90.97 ~] # mii-tool-f 100baset-hd eth0 instance 3: restore the adaptive working mode of the network card

[root@10.10.90.97] # mii-tool-r eth0

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report