CentOS 7下的KVM網卡配置為千兆網卡


在KVM下可以生成兩種型號的網卡,RTL8139和E1000,其實應該是底層生成不同芯片的網卡,而不是附帶宿主機網卡是什么型號就是什么型號的,其中默認為100兆網卡,即RTL8319的螃蟹卡,另一種是E1000的千兆網卡。

設置步驟:

1、修改KVM

virsh edit KVM名稱

2、找到RTL8139,並替換成E1000

<interface type='network'>
  ...
  <model type='e1000' />
</interface>

或者是這個:

<interface type='bridge'>
      <model type='virtio'/><!--去掉-->
      <model type='e1000'/><!--替換為這個-->
</interface>

注意:是替換而不是增加。

3、重啟網卡服務后查看型號信息

service network restart
ethtool 網卡名稱

 

 

參考:

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/5/html/virtualization/sect-virtualization-troubleshooting-kvm_networking_performance

https://www.linux-kvm.org/page/Networking


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM