查看网络速度:
```shell
root@user:/tmp# ethtool enp8s0
Settings for enp8s0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: Symmetric
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on (auto)
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
root@user:/tmp#
```
查看真实网速:
```shell
root@user:/tmp# wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
--2020-11-12 07:20:19-- https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.64.133, 151.101.192.133, 151.101.0.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.64.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 65018 (63K) [text/plain]
Saving to: ‘speedtest.py’
speedtest.py 100%[===================================================================================================>] 63.49K 72.2KB/s in 0.9s
2020-11-12 07:20:24 (72.2 KB/s) - ‘speedtest.py’ saved [65018/65018]
root@user:/tmp#
root@user:/tmp# python speedtest.py
Retrieving speedtest.net configuration...
Testing from China Telecom (Group) (103.44.253.2)...
Retrieving speedtest.net server list...
Selecting best server based on ping...
Hosted by China Mobile HuNan 5G (ChangSha) [735.40 km]: 48.173 ms
Testing download speed................................................................................
Download: 64.44 Mbit/s
Testing upload speed................................................................................................
Upload: 89.58 Mbit/s
root@user:/tmp#
```