使用场景:

在工作中需要对某一个主机进行网络限制、合理使用网络流量

操作方式:

kvm限制主机流量需要修改xml文件、最好关机后操作

kvm的限制流量的计算方式为 限制带宽数(kb)/8 = xml所需要的数字

实例:

<interface type='bridge'>
      <mac address='52:54:00:b6:ff:ba'/>
      <source bridge='br0'/>
      <bandwidth>
        <inbound average='625' peak='625' burst='625'/>
        <outbound average='625' peak='625' burst='625'/>
      </bandwidth>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>

来源:https://blog.csdn.net/benhuoxin5504/article/details/100963941

标签: KVM

添加新评论