Debian
#vi /etc/network/interfaces
将 MTU 添加在 bond 接口下,所有附属接口一起生效:
auto bond0
iface bond0 inet manual
slaves enXX enXX
bond-mode balance-alb
bond-miimon 100
mtu 9000
应用设置:
#systemctl restart networking.service
Ubuntu
#vi //etc/netplan/XX.yaml
将 MTU 添加在 bond 接口下,所有附属接口一起生效:
network:
bonds:
bond0:
addresses:
- 192.168.66.7/24
interfaces:
- enp59s0f0
- enp59s0f1
- enp95s0f0
- enp95s0f1
nameservers: {}
parameters:
mode: balance-alb
mtu: 9000
应用设置:
#netplan apply
网友评论