当前位置:网站首页>Layer 3 loop brought by route Summary - solution experiment
Layer 3 loop brought by route Summary - solution experiment
2022-06-29 21:35:00 【51CTO】
A summary of the problem
We all know , Do route summary to reduce route entries , However, improper configuration may cause a three-layer loop , And will cause equipment CPU Increase the load .
The topology
AR1 Analog Internet ,AR2 Is an exit routing device ,LSW1 As a three-layer switch, it is divided into 5 individual vlan, And is PC1-PC5 Gateway for
The experiment starts with the establishment of normal network interworking , Then test and trigger the loop , Finally, how to solve this problem
Equipment configuration and network connectivity test
LSW1:
[LSW1]vlan batch 10 20 30 40 50 100
[LSW1]int vlanif 10
[LSW1-Vlanif10]ip add 10.1.1.1 24
[LSW1-Vlanif10]int vlanif 20
[LSW1-Vlanif20]ip add 10.1.2.1 24
[LSW1-Vlanif20]int vlanif 30
[LSW1-Vlanif30]ip add 10.1.3.1 24
[LSW1-Vlanif30]int vlanif 40
[LSW1-Vlanif40]ip add 10.1.4.1 24
[LSW1-Vlanif40]int vlanif 50
[LSW1-Vlanif50]ip add 10.1.5.1 24
// because ensp in S5700 This device cannot be configured after it is converted to a three-layer interface ip, So here we use vlanif100 Instead of
[LSW1-Vlanif50]interface Vlanif100
[LSW1-Vlanif100]ip address 172.16.1.2 255.255.255.252
[LSW1-Vlanif100]interface GigabitEthernet0/0/1
[LSW1-GigabitEthernet0/0/1]port hybrid pvid vlan 100
[LSW1-GigabitEthernet0/0/1]port hybrid untagged vlan 100
[LSW1-GigabitEthernet0/0/1]un sh
#
[LSW1-GigabitEthernet0/0/1]interface GigabitEthernet0/0/2
[LSW1-GigabitEthernet0/0/2]port link-type access
[LSW1-GigabitEthernet0/0/2]port default vlan 10
#
// The interface configuration method of the remaining connecting hosts is similar , It is omitted here ...
#
// Configure the default route
[LSW1]ip route-static 0.0.0.0 0.0.0.0 172.16.1.1
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
AR2:
[AR2]interface GigabitEthernet0/0/0
[AR2-GigabitEthernet0/0/0]ip address 100.100.100.2 255.255.255.252
[AR2-GigabitEthernet0/0/0]un sh
[AR2-GigabitEthernet0/0/0]interface GigabitEthernet0/0/1
[AR2-GigabitEthernet0/0/1]ip address 172.16.1.1 255.255.255.252
[AR2-GigabitEthernet0/0/1]un sh
[AR2-GigabitEthernet0/0/1]quit
// Here, multiple network segments are summarized , And configure static routing
[AR2]ip route-static 10.1.0.0 255.255.248.0 172.16.1.2
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
AR1:
PC1 – PC5 Each is well prepared ip Address
use PC1 ping measuring 100.100.100.1, Can communicate , For normal , Besides, we tracert Follow up , It's normal 
Trigger the loop and analyze the problem
So let's use PC1 Go to tracert Track the existing and non-existent network segments .
Discovery tracking PC2(2 paragraph ) normal , That's because LSW1 Is directly connected to all PC Of , There must be a destination in the routing table PC2 Direct route entry for , Direct routing is the highest priority , So we arrived smoothly .
track 6 Paragraph and 7 Duan found jumping back and forth , It means that the loop has been lifted ,LSW1 There is no direct connection route of these two network segments in the routing table of , Only the default route can be matched AR2 了 ,AR2 After receiving, find the route table to match the summarized route entries 10.1.0.0/21, So she asked LSW1 Sent back ,LSW1 After receiving, it will be sent back .
And tracking 8 The segment shows *, It means that the forwarding cannot reach the destination address , The bag was discarded , That's because packets arrive AR2 when , No route entries were found to match ,10.1.0.0/21 The last of the paragraph ip The address is 10.1.7.255, So arrive AR2 Discard the packet .
terms of settlement
How to solve ? It's simple , Just in LSW1 Add one that is also 10.1.0.0/21 Aggregate black hole routing for , So when the destination is received ip Is this paragraph and ip When there is no , It won't send out any more .

Reuse PC1 track , Just as expected
One last reminder , Experiments and cases can play the role of understanding and reference , In practice, we still have to be flexible !! Sharing is here , If you have other ways that work , Welcome to the comments section 
边栏推荐
- GoAhead 翻译—Active Server Pages
- Digital password lock Verilog design + simulation + on board verification
- Alibaba product details API interface (item_get- get product details interface), Alibaba API interface
- 亚马逊关键词搜索API接口(item_search-按关键字搜索亚马逊商品接口),亚马逊API接口
- How to evaluate iFLYTEK AI translation pen P20 series? Is it worth buying?
- Vipshop product details API interface (item_get- get vipshop product details interface), vipshop details API interface
- 亚马逊商品详情API接口-(item_get-获得AMAZON商品详情接口),亚马逊详情API接口
- Clock tree synthesis (CTS)
- 阿里巴巴店铺的所有商品API接口(item_search_shop-获得店铺的所有商品接口),阿里巴巴API接口
- Basic qualities of management personnel
猜你喜欢

STM32 minimum system construction (schematic diagram)

leetcode:307. Area and retrieval - array modifiable

Practical guide to GStreamer application development (V)

阿里云发布《中国机器人产业图谱(2022)》,122页pdf

Design of VHDL telephone billing system

Verilog realizes serial communication and sends it to the nixie tube

Win10 sets automatic dial-up networking task to realize automatic reconnection after startup and disconnection

如何评价科大讯飞AI翻译笔P20系列,值得买吗?
![[advanced ROS] Lecture 3 ROS file system and distributed communication](/img/9f/2c316f5b0aa36b63769672048da772.png)
[advanced ROS] Lecture 3 ROS file system and distributed communication

直播预告 | PostgreSQL 内核解读系列第一讲:PostgreSQL 系统概述
随机推荐
leetcode:238. 除自身以外数组的乘积
双目立体视觉摄像头的标定、矫正、世界坐标计算(opencv)
Shutter bottomnavigationbar with page switching example
STL tutorial 6-deque, stack, queue, list container
BUAA OO unit 4 HW16 unit 4 Summary and course review
Recommended books -- walking in the daytime and at night
管理人员应具备的基本素质
Goahead translation - Active Server Pages
[advanced ROS chapter] Lecture 4: duplicate names in ROS (nodes, topics and parameters)
Layer 3 loop brought by route Summary - solution experiment
Advances in computational imaging
LSF bsub command
My creation anniversary
VHDL电话计费系统设计
Amazon Keyword Search API interface (item_search- Amazon product search interface by keyword), Amazon API interface
Detailed explanation of key points in implementing MES system in Enterprises
阿里巴巴关键字搜索商品API接口(item_search-按关键字搜索商品接口),阿里巴巴搜索API接口
Vipshop Keyword Search API interface (item_search- search vipshop commodity API interface by keyword), vipshop API interface
What problems should be avoided when using the points mall games for marketing?