Skip to content

Commit 343b00d

Browse files
committed
Update blog
1 parent 9b5d4bc commit 343b00d

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

source/_posts/2023-06-17-基于-Proxmox-VE-的-All-in-One-服务器搭建.md

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tags:
66
categories:
77
- 折腾
88
date: 2023-06-17 19:12:49
9-
updated: 2023-08-22 1:10:55
9+
updated: 2025-08-25 21:46:26
1010
toc: true
1111
thumbnail: /2023/06/17/基于-Proxmox-VE-的-All-in-One-服务器搭建/proxmox-logo.svg
1212
---
@@ -647,20 +647,24 @@ uci commit
647647

648648
``` bash
649649
ip link add bond-lan type bond mode 802.3ad # 添加 bond 类型的虚拟接口 名称为 bond-lan
650+
ip link set eth2 down
650651
ip 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
656656
ip link set bond-lan up # 启动该网卡
657+
ip link set eth2 up
657658
ip 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

0 commit comments

Comments
 (0)