配置 bond0 上联网络设备也需要做捆绑,如果是冗余的 bond 则上联不用配置
H3Cs5560 交换机
interface Bridge-Aggregation 1
port access vlan 10
创建聚合口,划入vlan
int g 1/0/1port link-aggregation group 1
聚合的两个物理口都加入集合组
int g 2/0/1port link-aggregation g 1
服务器
bond0 配置cat ifcfg-bond0DEVICE=bond0
BOOTPROTO=static
IPADDR=10.0.0.126
NETMASK=255.0.0.0
GATEWAY=10.0.0.1
ONBOOT=yes
USERCTL=no
TYPE=Ethernet
eth1,2... 配置cat ifcfg-eth0DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
MASTER=bond0
SLAVE=yes
配置文件开机启用 bond0vim /etc/modprobe.d/openfwwf.conf
alias bond0 bonding
options bond0 miimon=1000 mode=0
命令方式启用 bond0 模块insmod /lib/modules/uname -r/kernel/drivers/net/bonding/bonding.ko miimon=100