实验拓扑

实验需求
- asw03到asw01和asw02使用M-LAG技术链路聚合
- 要求当asw01或asw02链接asw03链路任意一条出现故障但还可确保业务能正常转发
实验解法
步骤 1:在 asw01和asw02上配置 Keepalive 链路到asw02使三层技配置ip能互通,然后打上Text使查询时方便辨别
[asw01]interface Ten-GigabitEthernet 1/0/49
[asw01-Ten-GigabitEthernet1/0/49]port link-mode route
[asw01-Ten-GigabitEthernet1/0/49] description Keepalive
[asw01-Ten-GigabitEthernet1/0/49] ip address 1.1.1.1 30
[aswo2]interface Ten-GigabitEthernet 1/0/49
[aswo2-Ten-GigabitEthernet1/0/49]port link-mode route
[aswo2-Ten-GigabitEthernet1/0/49]description Keepalive
[aswo2-Ten-GigabitEthernet1/0/49] ip address 1.1.1.2 30步骤 2:在 asw01和asw02 上创建 M-LAG系统Mac(这个Mac地址正常建议配置自己真实的桥mac地址,这个地址需要两端都一样)、系统编号和配置Keepalive源目IP[正常需在配一条系统优先级但我看默认32768都一样所以懒没配(这个优先级和IRF不同需要一致)] ,
[asw01]m-lag system-mac 1-1-1
[asw01]m-lag system-number 1
[asw01]m-lag keepalive ip destination 1.1.1.2
[aswo2]m-lag system-mac 1-1-1
[aswo2]m-lag system-number 2
[aswo2]m-lag keepalive ip destination 1.1.1.1步骤 3:配置Peer-link链路的链路聚合,然后打上Text便于查询时方便辨别
[asw01]interface Bridge-Aggregation 10
[asw01-Bridge-Aggregation10]description Peer-link
[asw01-Bridge-Aggregation10]link-aggregation mode dynamic
[asw01]interface range FortyGigE 1/0/53 FortyGigE 1/0/54
[asw01-if-range]port link-aggregation group 10
[aswo2]interface Bridge-Aggregation 10
[aswo2-Bridge-Aggregation10]description Peer-link
[aswo2-Bridge-Aggregation10]link-aggregation mode dynamic
[aswo2]interface range FortyGigE 1/0/53 FortyGigE 1/0/54
[aswo2-if-range]port link-aggregation group 10步骤 4:将asw01 和 asw02 的 聚合口配置为Peer-link接口
[asw01]interface Bridge-Aggregation 10
[asw01-Bridge-Aggregation10]port m-lag Peer-link 1
[aswo2]interface Bridge-Aggregation 10
[aswo2-Bridge-Aggregation10]port m-lag Peer-link 1步骤 5:将 asw01和asw02 链接其他口的链路配置为动态聚合和加入到分布式M-LAG聚合口中
[asw01]interface Bridge-Aggregation 1
[asw01-Bridge-Aggregation1]link-aggregation mode dynamic
[asw01-Bridge-Aggregation1]port m-lag group 1
[asw01]interface Ten-GigabitEthernet 1/0/50
[asw01-Ten-GigabitEthernet1/0/50]port link-aggregation group 1
[aswo2]interface Bridge-Aggregation 1
[aswo2-Bridge-Aggregation1]link-aggregation mode dynamic
[aswo2-Bridge-Aggregation1]port m-lag group 1
[aswo2]interface Ten-GigabitEthernet 1/0/51
[aswo2-Ten-GigabitEthernet1/0/51]port link-aggregation group 1步骤 6:将 asw03链接asw02和asw01设备的接口加入到动态聚合组中
[asw03]interface Bridge-Aggregation 1
[asw03-Bridge-Aggregation1]link-aggregation mode dynamic
[asw03]interface range Ten-GigabitEthernet 1/0/50 Ten-GigabitEthernet 1/0/51
[asw03-if-range]port link-aggregation group 1效果测试:将asw01和asw02分别创建个管理地址然后在asw03外带个设备ping asw01和asw02当关闭 asw01 的 XGE_1/0/50 口时外带设备仍然都能互通即完成实验*
实验现象:查询Keepalive时UP、查询system、查询asw03聚合
#查询Keepalive
[asw01]show m-lag keepalive
Neighbor keepalive link status (cause): Up
Neighbor is alive for: 1291 s 313 ms
Keepalive packet transmission status:
Sent: Successful
Received: Successful
Last received keepalive packet information:
Source IP address: 1.1.1.2
Time: 2022/09/02 15:52:57
Action: Accept
M-LAG keepalive parameters:
Destination IP address: 1.1.1.2
Source IP address: N/A
Keepalive UDP port : 6400
Keepalive VPN name : N/A
Keepalive interval : 1000 ms
Keepalive timeout : 5 sec
Keepalive hold time: 3 sec
#查询system
[asw01]show m-lag system
System information
Local system number: 1 Peer system number: 2
Local system MAC: 0001-0001-0001 Peer system MAC: 0001-0001-0001
Local system priority: 32768 Peer system priority: 32768
Local bridge MAC: 0ce1-50f6-0100 Peer bridge MAC: 0ce1-53ab-0200
Local effective role: Primary Peer effective role: Secondary
Health level: 0
Standalone mode on split: Disabled
In standalone mode: No
System timer information
Timer State Value (s) Remaining time (s)
Auto recovery Disabled - -
Restore delay Disabled 30 -
Consistency-check delay Disabled 15 -
Standalone delay Disabled - -
Role to None delay Disabled 60 -
#查询asw03聚合
[asw03]show link-aggregation summary
Aggregation Interface Type:
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle
Aggregation Mode: S -- Static, D -- Dynamic
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, 2ae3-41bf-0300
AGG AGG Partner ID Selected Unselected Individual Share
Interface Mode Ports Ports Ports Type
--------------------------------------------------------------------------------
BAGG1 D 0x8000, 0001-0001-0001 2 0 0 Shar