我有一个使用 virtio-net 在 kvm 上运行的 linux vm,我想检查链接速度。我怎样才能做到这一点?
到目前为止我尝试过的:
# ethtool eth0
Settings for eth0:
Link detected: yes
Run Code Online (Sandbox Code Playgroud)
似乎 ethtool 不支持 virtio-net(还没有?)我有来自 debian jessie 的 3.16-1 版本,ethtool 是否在较新版本中支持它?它接缝版本 6 是最新版本。
# cat /sys/class/net/eth0/speed
cat: /sys/class/net/eth0/speed: Invalid argument
# lspci | grep -iE --color 'network|ethernet'
00:12.0 Ethernet controller: Red Hat, Inc Virtio network device
# lshw -class network
*-network
description: Ethernet interface
product: Virtio network device
vendor: Red Hat, Inc
physical id: 12
bus info: pci@0000:00:12.0
logical name: eth0
version: 00
serial: …
Run Code Online (Sandbox Code Playgroud)