Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

14.5.9. 设置网络接口带宽参数

domiftune 设置 guest 虚拟机的网络接口带宽参数。使用以下格式:
#virsh domiftune domain interface-device [[--config] [--live] | [--current]] [--inbound average,peak,burst] [--outbound average,peak,burst]
唯一需要的参数是客户机虚拟机的域名和接口设备、--config--live--current 功能与 第 14.19 节 “设置调度参数” 相同。如果没有指定限制,它将查询当前的网络接口设置。否则,使用以下选项更改限制:
  • <interface-device> 这是强制性的,它将设置或查询域的带宽参数。interface-device 可以是接口的目标名称(<target dev='name'/>),也可以是 MAC 地址。
  • 如果没有指定 --inbound--outbound,此命令将查询并显示带宽设置。否则,它将设置入站或出站带宽。平均,peak,burst 与 attach-interface 命令中的相同。请参阅 第 14.3 节 “附加接口设备”