一、 组网需求:
配置S5024P-EI交换机的链路聚合功能,链路聚合的方式有两种,一种为手工聚合,一种是LACP静态聚合。
二、 组网图
两台S5024P-EI交换机做链路聚合。
三、 配置步骤:
1、 手工聚合配置
在WEB界面手工聚合配置:
通过console口命令行的手工聚合配置:
link-aggregation group 1 mode manual //设置聚合组1的聚合模式
为手工聚合
interface GigabitEthernet 0/8 //将端口加入聚合组
port link-aggregation group 1
配置完成后,查看聚合端口状态:
display link-aggregation summary
Aggregation Group Type:D -- Dynamic, S -- Static , M -- Manual
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor ID: 0x8000, 000f-e270-7a4e
Aggregation Mode: both
AL AL Partner ID Select Standby Share Master
ID Type Ports Ports Type Port
---------------------------------------------------------------
1 M none 2 0 Shar GigabitEthernet0/8
2、 静态LACP聚合
在WEB界面上配置静态LACP聚合:
在命令行里配置静态LACP聚合:
link-aggregation group 2 mode static //设置聚合组2的聚合模式
为LACP动态聚合
interface GigabitEthernet 0/8
port link-aggregation group 2
查看端口聚合状态:
dis link-aggregation static
Aggregation Group Type:D -- Dynamic, S -- Static , M -- Manual
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor ID: 0x8000, 000f-e270-7a4e
Aggregation Mode: both
AL AL Partner ID Select Standby Share Master
ID Type Ports Ports Type Port
-----------------------------------------------------------------------------
2 S 0x8000,5866-ba2e-59ba 2 0 Shar GigabitEthernet0/8
四、 配置关键点:
缺省情况下,以太网端口聚合模式为 both 模式,即源MAC和目的MAC进行负载分担的形式。