[root@hadoop058 ~]# Mii-tool
eth0:negotiated 100basetx-fd, link OK 100M
Linux to see the network card operating rate
Ethtool is the command used to query and set the network card parameters.
Profile:
Ethtool ethx//Query Ethx the basic settings of the network port
ETHTOOL–H//Display command Help for Ethtool
Ethtool–i ethx//Query ETHX network port information
Ethtool–d ethx//Inquiry ETHX Network registration information
Ethtool–r ethx//Reset ETHX network port to Adaptive mode
Ethtool–s ethx//query ETHX network receipt and contract statistics
Ethtool–s ethx [Speed 10|100|1000]\//Set network port rate 10/100/1000m
[Duplex half|full]\//Set net port half/Full-duplex
[Autoneg on|off]\//Set the network port is self negotiated
Using Ethtool, the results are as follows:
[root@hadoop009 var]# Ethtool em1
Settings for EM1:
Supported ports: [TP]
Supported Link Modes:10baset/half 10baset/full
100baset/half 100baset/full
1000baset/full
Supported Pause Frame Use:no
Supports Auto-negotiation:yes
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
Duplex:full
Port:twisted Pair
Phyad:1
Transceiver:internal
Auto-negotiation:on
Mdi-x: Unknown
Supports wake-on:g
Wake-on:d
Link Detected:yes