【PVE】新增2.5G网卡作为主网卡暨iperf测速流程

【PVE】新增2.5G网卡作为主网卡暨iperf测速流程

新增网卡

新增网卡的首先当然需要关闭PVE母机,把新网卡插上,我用淘宝遥现金搞了个红包,花了26元买了块SSU的2.5G网卡。说实话这个价位连散热片都没有,确实挺丐的。稍后测下速度看看能不能达标。

1720602033714.jpg

1720602033715.jpg

1720602033717.jpg

1720602033716.jpg

插上之后启动PVE,在后台即可看到新的网卡“enp3s0”。当然它默认是关闭的。

1720602123665.png

我们点击上方的编辑,只需把自动启动打开。然后系统会提示点击右上角的“应用配置”。

1720602181658.png

网卡启动之后我们编辑Linux Bridge,将桥接端口改为新的网卡名称。

1720602270528.png

然后保存,应用配置,此时日志不会显示出来了,这是正常的,因为连接PVE的后台的网卡已经变为了新网卡,现在我们把网线拔掉然后换到新网卡即可重新进入PVE后台。至此网卡更换完成。

测速

然后我们来看看这块网卡的速度吧~

在内网中的两台不同PVE母机上启动两个Centos虚拟机,安装iperf。

sudo yum install iperf3 -y

配置服务端防火墙。

sudo firewall-cmd --add-port=5201/tcp --permanent
sudo firewall-cmd --add-port=5201/udp --permanent
sudo firewall-cmd --reload

在其中一台Centos启动服务端。

iperf3 -s

另一台Centos作为客户端连接服务器。

iperf3 -c <服务端的IP地址>

服务端

[root@localhost ~]# sudo firewall-cmd --add-port=5201/tcp --permanent
success
[root@localhost ~]# sudo firewall-cmd --add-port=5201/udp --permanent
success
[root@localhost ~]# sudo firewall-cmd --reload
success
[root@localhost ~]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 10.0.0.242, port 39284
[  5] local 10.0.0.241 port 5201 connected to 10.0.0.242 port 39286
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   269 MBytes  2.26 Gbits/sec                  
[  5]   1.00-2.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   2.00-3.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   3.00-4.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   4.00-5.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   5.00-6.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   6.00-7.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   7.00-8.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   8.00-9.00   sec   281 MBytes  2.35 Gbits/sec                  
[  5]   9.00-10.00  sec   281 MBytes  2.35 Gbits/sec                  
[  5]  10.00-10.05  sec  13.2 MBytes  2.35 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.05  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.05  sec  2.74 GBytes  2.34 Gbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

可见这网卡速度还是可以的,能跑到2.35G,一般便宜的2.5G网卡也就这水平了。

相关推荐

  1. iperf流量分析

    2024-07-13 23:58:03       49 阅读
  2. iperf

    2024-07-13 23:58:03       22 阅读
  3. Proxmox VE (PVE) 教学 (2) | 网络配置

    2024-07-13 23:58:03       34 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-13 23:58:03       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-13 23:58:03       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-13 23:58:03       57 阅读
  4. Python语言-面向对象

    2024-07-13 23:58:03       68 阅读

热门阅读

  1. python的seek()和tell()

    2024-07-13 23:58:03       23 阅读
  2. 关于浏览器Devtools的open,close监听

    2024-07-13 23:58:03       13 阅读
  3. 实时流媒体传输开源库Live555

    2024-07-13 23:58:03       20 阅读
  4. SQL注入:原理及示例

    2024-07-13 23:58:03       19 阅读
  5. Qt/QML学习-动画元素

    2024-07-13 23:58:03       21 阅读
  6. 小程序自学教程

    2024-07-13 23:58:03       19 阅读