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 |