当Linux主机网卡做好Bond绑定之后,将会设置转发模式如下:(Linux主机网卡绑定Bond见下贴“关于创建Linux主机网卡绑定”)
vim /etc/modprobe.conf //打开网卡绑定文件
alias eth0 igb
alias eth1 igb
alias eth2 igb
alias eth3 igb
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 usb-storage
alias scsi_hostadapter2 qla2xxx
alias scsi_hostadapter3 qla2xxx
alias usb0 cdc_ether
alias usb1 cdc_ether
alias bond0 bonding
alias bond1 bonding
options bond0 mode=4 miimon=100 lacp_rate=1 //找到bond口设置模式mode这里,填写正确的bond模式,这里为4
options bond1 mode=1 miimon=100 //找到bond口设置模式mode这里,填写正确的bond模式,这里为1
2.H3C类:
///将g1/0/12和g2/0/12加入聚合组90
interface GigabitEthernet1/0/12
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
mirroring-group 3 mirroring-port both
port link-aggregation group 90
interface GigabitEthernet2/0/12
port link-mode bridge
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
mirroring-group 3 mirroring-port both
port link-aggregation group 90
///将聚合组90设置为dynamic模式,即为LACP模式;并配置从源IP到目的IP的LACP模式。
interface Bridge-Aggregation90
description to RP-VM-01
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
link-aggregation mode dynamic
link-aggregation load-sharing mode destination-ip source-ip