目录
准备:两台交换机
配置:进行交换机配置
完成:检查链路聚合是否成功
准备:两台交换机
1、进行连线
2、上行Core交换机都选取 Ten-GigabitEthernet1/0/51、Ten-GigabitEthernet1/0/52和 Ten-GigabitEthernet2/0/51、Ten-GigabitEthernet2/0/52 做聚合链路
下行AGG交换机都选取 Ten-GigabitEthernet1/0/51、Ten-GigabitEthernet1/0/52和 Ten-GigabitEthernet2/0/51、Ten-GigabitEthernet2/0/52 做聚合链路
配置:进行交换机配置
X_T1_Core_1:
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[X_T1_Core_1]int Bridge-Aggregation 1
[X_T1_Core_1-Bridge-Aggregation1]link-aggregation mode dynamic
[X_T1_Core_1-Bridge-Aggregation1]quit
# 将端口xg1/0/51 - xg1/0/52和xg2/0/51 - xg2/0/52 一起加入到聚合组1中
[X_T1_Core_1]int range Ten-GigabitEthernet1/0/51 Ten-GigabitEthernet1/0/52 int range Ten-GigabitEthernet2/0/51 Ten-GigabitEthernet2/0/52
[X_T1_Core_1-if-range]port link-aggregation group 1
[X_T1_Core_1-if-range]quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 208的报文通过。
# 会在二层聚合口1配置的话,会和物理接口同步,如下
[X_T1_Core_1]int Bridge-Aggregation 1
[X_T1_Core_1-Bridge-Aggregation1]port link-type trunk
Configuring Ten-GigabitEthernet1/0/51 done.
Configuring Ten-GigabitEthernet1/0/52 done.
Configuring Ten-GigabitEthernet2/0/51 done.
Configuring Ten-GigabitEthernet2/0/52 done.
[X_T1_Core_1-Bridge-Aggregation1]port trunk permit vlan 208
Configuring Ten-GigabitEthernet1/0/51 done.
Configuring Ten-GigabitEthernet1/0/52 done.
Configuring Ten-GigabitEthernet2/0/51 done.
Configuring Ten-GigabitEthernet2/0/52 done.
[X_T1_Core_1-Bridge-Aggregation1]quit
X_T1_AGG1:
# 创建二层聚合接口1,并配置该接口为动态聚合模式。
[X_T1_AGG_1]int Bridge-Aggregation 1
[X_T1_AGG_1-Bridge-Aggregation1]link-aggregation mode dynamic
[X_T1_AGG_1-Bridge-Aggregation1]quit
# 将端口xg1/0/51 - xg1/0/52和xg2/0/51 - xg2/0/52 一起加入到聚合组1中
[X_T1_AGG_1]int range Ten-GigabitEthernet1/0/51 Ten-GigabitEthernet1/0/52 int range Ten-GigabitEthernet2/0/51 Ten-GigabitEthernet2/0/52
[X_T1_AGG_1-if-range]port link-aggregation group 1
[X_T1_AGG_1-if-range]quit
# 配置二层聚合接口1为Trunk端口,并允许VLAN 208的报文通过。
# 会在二层聚合口1配置的话,会和物理接口同步,如下
[X_T1_AGG_1]int Bridge-Aggregation 1
[X_T1_AGG_1-Bridge-Aggregation1]port link-type trunk
Configuring Ten-GigabitEthernet1/0/51 done.
Configuring Ten-GigabitEthernet1/0/52 done.
Configuring Ten-GigabitEthernet2/0/51 done.
Configuring Ten-GigabitEthernet2/0/52 done.
[X_T1_AGG_1-Bridge-Aggregation1]port trunk permit vlan 208
Configuring Ten-GigabitEthernet1/0/51 done.
Configuring Ten-GigabitEthernet1/0/52 done.
Configuring Ten-GigabitEthernet2/0/51 done.
Configuring Ten-GigabitEthernet2/0/52 done.
[X_T1_AGG_1-Bridge-Aggregation1]quit
完成:检查链路聚合是否成功
dis link-agg ver
ping 检查(core端:vlanif208 10.1.100.29、agg端:vlanif208 10.1.100.30)
看现象说明聚合成功了