Loading... ### 实验拓扑 ![图1-1][1] ### 实验需求 1. asw03到asw01和asw02使用DRNI技术链路聚合 2. 要求当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 上创建 DRNI系统Mac(这个Mac地址正常建议配置自己真实的桥mac地址,这个地址需要两端都一样)、系统编号和配置Keepalive源目IP[正常需在配一条系统优先级但我看默认32768都一样所以懒没配(这个优先级和IRF不同需要一致)] ,* ``` [asw01]drni system-mac 1-1-1 [asw01]drni system-number 1 [asw01]drni keepalive ip destination 1.1.1.2 [aswo2]drni system-mac 1-1-1 [aswo2]drni system-number 2 [aswo2]drni keepalive ip destination 1.1.1.1 ``` *步骤 3:配置IPP链路的链路聚合,然后打上Text便于查询时方便辨别* ``` [asw01]interface Bridge-Aggregation 10 [asw01-Bridge-Aggregation10]description IPP [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 IPP [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 的 聚合口配置为IPP接口* ``` [asw01]interface Bridge-Aggregation 10 [asw01-Bridge-Aggregation10]port drni intra-portal-port 1 [aswo2]interface Bridge-Aggregation 10 [aswo2-Bridge-Aggregation10]port drni intra-portal-port 1 ``` *步骤 5:将 asw01和asw02 链接其他口的链路配置为动态聚合和加入到分布式DRNI聚合口中* ``` [asw01]interface Bridge-Aggregation 1 [asw01-Bridge-Aggregation1]link-aggregation mode dynamic [asw01-Bridge-Aggregation1]port drni 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 drni 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 drni keepalive Neighbor keepalive link status (cause): Up Neighbor is alive for: 3945 s 18 ms Keepalive packet transmission status: Sent: Successful Received: Successful Last received keepalive packet information: Source IP address: 1.1.1.2 Time: 2022/08/07 20:40:51 Action: Accept Distributed relay 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 drni 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: 2ae3-3d51-0100 Peer bridge MAC: 2ae3-3fc6-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 ``` [1]: /img/drni_top.png 最后修改:2023 年 08 月 28 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏