我有一个在vvm上使用virtio-net运行的
linux vm,我想查看链接速度.我怎样才能做到这一点?
到目前为止我尝试了什么:
# ethtool eth0
Settings for eth0:
Link detected: yes
似乎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: 4e:ff:a8:bf:61:12
width: 32 bits
clock: 33MHz
capabilities: msix bus_master cap_list rom ethernet physical
configuration: broadcast=yes driver=virtio_net driverversion=1.0.0 ip=172.30.2.152 latency=0 link=yes multicast=yes
resources: irq:10 ioport:c080(size=32) memory:febf2000-febf2fff memory:febe0000-febeffff
我找到了一个描述redhat kb中问题的链接,但不幸的是我没有订阅阅读它.