当前位置:网站首页>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
边栏推荐
- 习近平在湖北武汉考察时强调 把科技的命脉牢牢掌握在自己手中 不断提升我国发展独立性自主性安全性
- Db查询数据库合并两个不相关的表,新增不存在的字段,并赋予默认值
- Getting started with completabilefuture
- STM32最小系统搭建(原理图)
- Gstreamer应用开发实战指南(五)
- 什么是 SYN 洪水攻击?如何防护?
- Clock tree synthesis (CTS)
- Reinforcement learning weekly (issue 51): integration of PAC, ilql, RRL & model free reinforcement learning into micro grid control: overview and Enlightenment
- 实现inotify配合rsync实时备份
- 利用积分商城游戏进行营销需要避免哪些问题出现?
猜你喜欢
双目立体视觉摄像头的标定、矫正、世界坐标计算(opencv)
广东二级造价工程师《造价管理》真题解析
STL tutorial 6-deque, stack, queue, list container
导航 习题【微机原理】【习题】
[advanced ROS chapter] lesson 2 custom header and source file encapsulation
Gstreamer应用开发实战指南(五)
verilog实现串口通信发送到数码管
Win10 sets automatic dial-up networking task to realize automatic reconnection after startup and disconnection
leetcode:307. Area and retrieval - array modifiable
什么是 SYN 洪水攻击?如何防护?
随机推荐
Shell implementation of Memcache cache cache hit rate monitoring script
实现inotify配合rsync实时备份
What are the mainstream brands of smart door locks? What characteristics should we pay attention to when purchasing door locks?
flutter BottomNavigationBar切换页面保持状态
如何评价科大讯飞AI翻译笔P20系列,值得买吗?
Verilog realizes serial communication and sends it to the nixie tube
Viewing technological changes through Huawei Corps (V): smart Park
LeetCode 1. 两数之和
The foundation and application of quantum machine learning: a concise literature review
yolov6训练自己的数据记录+yolov5对比测试
LSF-bsub命令
Topic39——78. 子集
leetcode:370. Interval addition
Explain PBR texture maps
Redis (I) -- getting started with redis (1) -- redis introduction, installation and startup, and common configurations
[cloud native practice] kubesphere practice - Multi tenant system practice
我的创作纪念日
亚马逊商品详情API接口-(item_get-获得AMAZON商品详情接口),亚马逊详情API接口
THREEJS基础入门
PostgreSQL每周新聞—6月22日