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

转载于:https://www.cnblogs.com/EasonJim/p/9751051.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值