这与这两个问题有关,尽pipe他们不回答我的问题。
这些机器是RHEL6。
1. ethtool没有显示所有的属性 2. 改变networking速度到1000Mb / s
VM上的输出:
[root@foo ~]# ethtool eth0 Settings for eth0: Current message level: 0x00000007 (7) Link detected: yes
真实硬件输出:(对速度感兴趣)
# ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full Advertised auto-negotiation: Yes ***Speed: 1000Mb/s*** Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: on Supports Wake-on: d Wake-on: d Link detected: yes
如果无论如何我可以在VM中设置,请build议。
我认为假设虚拟服务器上的ethtool -I eth0将显示virtio_net或类似的驱动程序应该是安全的。
这意味着eth0是虚拟networking接口,而不是网卡 。 它纯粹作为内存中的一个内核结构存在,没有固定速度,链路检测等限制,只发送和接收数据包。
您可以指示虚拟机pipe理程序模拟NIC,然后您将获得ethtool以显示速度,双工设置和整个虚拟服务器中的shebang,但性能相当高。