File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66categories :
77 - 折腾
88date : 2023-06-17 19:12:49
9- updated : 2023 -08-22 1:10:55
9+ updated : 2025 -08-25 21:46:26
1010toc : true
1111thumbnail : /2023/06/17/基于-Proxmox-VE-的-All-in-One-服务器搭建/proxmox-logo.svg
1212---
@@ -647,20 +647,24 @@ uci commit
647647
648648``` bash
649649ip link add bond-lan type bond mode 802.3ad # 添加 bond 类型的虚拟接口 名称为 bond-lan
650+ ip link set eth2 down
650651ip link set eth3 down
651- ip link set eth4 down
652- ip link set eth3 type bond_slave # 配置网卡模式
653- ip link set eth4 type bond_slave
654- ip link set eth3 master bond-lan # 加入名称为 bond-lan 的 bond 类型网卡
655- ip link set eth4 master bond-lan
652+ ip link set eth2 type bond_slave # 配置网卡模式
653+ ip link set eth3 type bond_slave
654+ ip link set eth2 master bond-lan # 加入名称为 bond-lan 的 bond 类型网卡
655+ ip link set eth3 master bond-lan
656656ip link set bond-lan up # 启动该网卡
657+ ip link set eth2 up
657658ip link set eth3 up
658- ip link set eth4 up
659+ brctl addif br-lan bond-lan # 防止有时候无法自动添加到 br-lan 网桥上
660+ echo " layer3+4" > /sys/class/net/bond-lan/bonding/xmit_hash_policy
659661```
660662
661- 将 ` eth3 ` 和 ` eth4 ` 从原来的 ` br-lan ` 中移除,添加上 ` bond-lan ` 即可。
663+ 将 ` eth2 ` 和 ` eth3 ` 从原来的 ` br-lan ` 中移除,添加上 ` bond-lan ` 即可。
662664
663- 实测无线可以跑到 1.6 Gbps 左右。
665+ 关于 ` xmit_hash_policy ` ,默认值为 ` layer2 ` ,会导致单台设备无法打到超过千兆的速度,改为 ` layer3+4 ` 后可以部分改善。
666+
667+ 实测无线可以跑到 1.6 Gbps 左右(后来只能在 UDP 模式下测到 1.4 Gbps 左右了)。
664668
665669#### 配置防火墙
666670
You can’t perform that action at this time.
0 commit comments