华为 1)创建eth-trunk接口,并配置允许通过的VLAN。 #配置Stack。 system-view sysname stack interface eth-trunk 10 port link-type trunk port trunk allow-pass vlan all quit
#配置PE。 system-view sysname PE interface eth-trunk 10 port link-type trunk port trunk allow-pass vlan all quit
2)加入eth-trunk的成员接口。 #配置Stack。 interface gigabitethernet 1/0/4 eth-trunk 10 quit interface gigabitethernet 2/0/4 eth-trunk 10 quit
#配置PE。 interface gigabitethernet 1/0/1 eth-trunk 10 quit interface gigabitethernet 1/0/2 eth-trunk 10 quit
3)在堆叠设备上开启eth-trunk接口流量本地优先转发功能。 local-preference enable
interface eth-trunk 10 local-preference enable quit
4)配置二层转发功能。 #配置Stack。 vlan batch 2 3 interface gigabitethernet 1/0/3 port link-type trunk port trunk allow-pass vlan 2 quit interface gigabitethernet 2/0/3 port link-type trunk port trunk allow-pass vlan 3 quit
#配置Switch1。 system-view sysname switch1 vlan 2 quit interface gigabitethernet 0/0/1 port link-type trunk port trunk allow-pass vlan 2 quit interface gigabitethernet 0/0/2 port link-type trunk port trunk allow-pass vlan 2 quit
#配置Switch2。 system-view sysname switch2 vlan 3 quit interface gigabitethernet 0/0/1 port link-type trunk port trunk allow-pass vlan 3 quit interface gigabitethernet 0/0/2 port link-type trunk port trunk allow-pass vlan 3 quit
5)检测配置结果。 display trunkmembership eth-trunk 10 #查看eth-trunk接口的成员口信息。
H3C 配置二层动态聚合。 1)配置Device A。 #创建VLAN 10,并将端口FortyGig1/0/4加入到该VLAN中。 system-view vlan 10 port fortygige 1/0/4 quit
#创建VLAN 20,并将端口FortyGig1/0/5加入到该VLAN中。 vlan 20 port fortygige 1/0/5 quit
#创建二层聚合接口1,并配置该接口为动态聚合模式。 interface bridge-aggregation 1 link-aggregation mode dynamic quit
#分别将端口FortyGige1/0/1至FortyGige1/0/3加入到聚合组1中。 interface fortygige 1/0/1 port link-aggregation group 1 quit interface fortygige 1/0/2 port link-aggregation group 1 quit interface fortygige 1/0/3 port link-aggregation group 1 quit
#配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。 interface bridge-aggregation 1 port link-type trunk port trunk permit vlan 10 20 quit
2)配置Device B。 #创建VLAN 10,并将端口FortyGig1/0/4加入到该VLAN中。 system-view vlan 10 port fortygige 1/0/4 quit
#创建VLAN 20,并将端口FortyGig1/0/5加入到该VLAN中。 vlan 20 port fortygige 1/0/5 quit
#创建二层聚合接口1,并配置该接口为动态聚合模式。 interface bridge-aggregation 1 link-aggregation mode dynamic quit
#分别将端口FortyGige1/0/1至FortyGige1/0/3加入到聚合组1中。 interface fortygige 1/0/1 port link-aggregation group 1 quit interface fortygige 1/0/2 port link-aggregation group 1 quit interface fortygige 1/0/3 port link-aggregation group 1 quit
#配置二层聚合接口1为Trunk端口,并允许VLAN 10和20的报文通过。 interface bridge-aggregation 1 port link-type trunk port trunk permit vlan 10 20 quit
3)验证配置。 display link-aggregation verbose #查看设备上所有聚合组的详细信息。
锐捷 链路聚合配置。 1)在Ruijie1上设置系统优先级为4096,在端口Gi 0/1、Gi 0/2、Gi 0/3上启用动态链路聚合协议,并设置端口的LACP端口优先级为4096。 configure terminal lacp system-priority 4096 interface range gigabitethernet 0/1-3 lacp port-priority 4096 port-group 3 mode active end
2)在Ruijie2上设置系统优先级为61440,在端口Gi 0/1、Gi 0/2、Gi 0/3上启用动态链路聚合协议,并设置端口的LACP端口优先级为61440。 configure terminal lacp system-priority 61440 interface range gigabitethernet 0/1-3 lacp port-priority 61440 port-group 3 mode active end
3)验证配置。 show lacp summary #查看聚合组内成员的状态。
|