![如何使用 vSphere 模拟两个虚拟机之间的数据传输?](https://linux22.com/image/1364861/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%20vSphere%20%E6%A8%A1%E6%8B%9F%E4%B8%A4%E4%B8%AA%E8%99%9A%E6%8B%9F%E6%9C%BA%E4%B9%8B%E9%97%B4%E7%9A%84%E6%95%B0%E6%8D%AE%E4%BC%A0%E8%BE%93%EF%BC%9F.png)
我对 vSphere 和虚拟机,甚至网络方面都很陌生(大约两天的“经验”,包括故障排除克隆)。我还需要能够限制两台机器之间的连接速度。
我非常有信心这可以完成,但如果实在无法完成,我会找到另一种方法来完成工作。
答案1
我假设您试图改变它们之间的线路速度,以使流量不能超过一定的吞吐量。您可能最好通过限制上行链路适配器的速度来实现这一点。
来自 vSphere 文档:(5.1 但各个版本都差不多)
Change the Speed of an Uplink Adapter
You can change the connection speed and duplex of an uplink adapter.
Procedure
1 Log in to the vSphere Client and select the host from the inventory panel.
2 Click the Configuration tab and click Networking.
3 Select a standard switch and click Properties.
4 Click the Network Adapters tab.
5 To change the configured speed and duplex value of a network adapter,
select the network adapter and click Edit.
6 To select the connection speed manually, select the speed and duplex from the
drop-down menu.
Choose the connection speed manually if the NIC and a physical switch might fail
to negotiate the proper connection speed. Symptoms of mismatched speed and duplex
include low bandwidth or no link connectivity.
The adapter and the physical switch port it is connected to must be set to the same
value, such as auto and auto or ND and ND, where ND is some speed and duplex, but
not auto and ND.
7 Click OK.