当前位置:网站首页>BGP+MPLS Comprehensive Experiment
BGP+MPLS Comprehensive Experiment
2022-08-02 06:44:00 【less than _ermi】
实验内容

实验过程
实验拓扑图
根据题目要求进行IP地址规划
用户网段
172.16.2.0/24
172.16.3.0/24
172.16.4.0/24
172.16.5.0/24
172.16.6.0/24
172.16.7.0/24
环回地址
172.16.1.2/32
172.16.1.3/32
172.16.1.4/32
172.16.1.5/32
172.16.1.6/32
172.16.1.7/32
配置IGPenvironment is usedoSPF协议
[R2]ospf 1
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255同时将loopback1The working method is modified tobroadcast
[R2]interface LoopBack 1
[R2-LoopBack1]ospf network-type broadcastR3--R7同R2 查看路由表

r1\r2\r5\r7\r8启用BGP 协议 修改r2\r5\r7的下一跳 宣告r1\r8的用户网段
[R1]bgp 1
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 12.1.1.2 as-number 2
[R1-bgp]peer 15.1.1.2 as-number 2
[R2]bgp 2
[R2-bgp]router-id 172.16.1.2
[R2-bgp]peer 12.1.1.1 as-number 1
[R2-bgp]peer 172.16.1.5 as-number 2
[R2-bgp]peer 172.16.1.5 connect-interface LoopBack 0
[R2-bgp]peer 172.16.1.7 as-number 2
[R2-bgp]peer 172.16.1.7 connect-interface LoopBack 0
[R5]bgp 2
[R5-bgp]router-id 172.16.1.5
[R5-bgp]peer 15.1.1.1 as-number 1
[R5-bgp]peer 172.16.1.2 as-number 2
[R5-bgp]peer 172.16.1.2 connect-interface LoopBack 0
[R5-bgp]peer 172.16.1.7 as-number 2
[R5-bgp]peer 172.16.1.7 connect-interface LoopBack 0
[R7]bgp 2
[R7-bgp]router-id 172.16.1.7
[R7-bgp]peer 172.16.1.2 as-number 2
[R7-bgp]peer 172.16.1.2 connect-interface LoopBack 0
[R7-bgp]peer 172.16.1.5 as-number 2
[R7-bgp]peer 172.16.1.5 connect-interface LoopBack 0
[R7-bgp]peer 78.1.1.2 as-number 3
[R8]bgp 3
[R8-bgp]router-id 8.8.8.8
[R8-bgp]peer 78.1.1.1 as-number 2[R2-bgp]peer 172.16.1.5 next-hop-local
[R2-bgp]peer 172.16.1.7 next-hop-local
[R5-bgp]peer 172.16.1.2 next-hop-local
[R5-bgp]peer 172.16.1.7 next-hop-local
[R7-bgp]peer 172.16.1.2 next-hop-local
[R7-bgp]peer 172.16.1.5 next-hop-local[R1-bgp]network 10.10.10.10 24
[R1-bgp]network 80.80.80.80 24
使用MPLS解决BGP路由黑洞问题
[R2]route recursive-lookup tunnelr5\r7Do the same configuration
r3\r4\r7启用MPLS协议(例如:r2)
[R2]mpls lsr-id 172.16.1.2
[R2]mpls
Info: Mpls starting, please wait... OK!
[R2-mpls]mpls ldp
[R2-mpls-ldp]q
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]mpls
[R2-GigabitEthernet0/0/1]mpls ldp
[R2-GigabitEthernet0/0/1]q
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/2]mpls
[R2-GigabitEthernet0/0/2]mpls ldp
[R2-GigabitEthernet0/0/2]q

宣告AS2的路由
[r2]bgp 2
[r2-bgp]network 172.16.2.0 24
[r2-bgp]network 172.16.3.0 24
[r2-bgp]network 172.16.4.0 24[r5]bgp 2
[r5-bgp]network 172.16.5.0 24
[r5-bgp]network 172.16.6.0 24
[r5-bgp]network 172.16.7.0 24在r1上查看BGP路由表,对172.16.2.0/24进行干涉

[R2]ip ip-prefix a permit 172.16.2.0 24
[R2]route-policy a permit node 10
Info: New Sequence of this List.
[R2-route-policy]if-match ip-prefix a
[R2-route-policy]apply cost 1
[R2-route-policy]q
[R2]route-policy a permit node 20
Info: New Sequence of this List.
[R2-route-policy]q
[R2]bgp 2
[R2-bgp]peer 12.1.1.1 route-policy a export再次查看路由表

The routing intervention was successful
测试

实验结束
边栏推荐
- About the directory structure of the web application
- 使用TinkerPop框架对GDB增删改查
- Practice on optimizing startup performance of VS Code
- There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
- 从入门到精通的MySQL数据库视频教程
- 如何优化OpenSumi终端性能?
- NPM 安装指定版本包的方法及版本号查看
- 洛谷小游戏大全(用洛谷的人都得知道)
- 关于 VS Code 优化启动性能的实践
- 人工神经网络
猜你喜欢

H5 access payment process - WeChat payment & Alipay payment

MySQL索引常见面试题(2022版)

在腾讯做外包测试的那些日子.....

Redis(十二) - Redis消息队列

Automated operation and maintenance tools - ansible, overview, installation, module introduction

There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?

pytorch basic operations: classification tasks using neural networks

国际顶会OSDI首度收录淘宝系统论文,端云协同智能获大会主旨演讲推荐

蚂蚁三面:MQ 消息丢失、重复、积压问题,有哪些解决方案?

Practice on optimizing startup performance of VS Code
随机推荐
Linux CentOS8安装Redis6
npm 无法将“npm”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
leetcode一步解决链表反转问题
排雷小游戏(C语言)
Deep learning - CNN realizes the recognition of MNIST handwritten digits
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
【漫画】2021满分程序员行为对照表(最新版)
Integrate ssm (1)
Different ways of shell scripting
Shuttle + Alluxio 加速内存Shuffle起飞
pytorch basic operations: classification tasks using neural networks
51单片机外设篇:ADC
引领需求 为HR价值正名——“人力资源领先模型HRLM”成功首发
关于鸿蒙系统 JS UI 框架源码的分析
Stress testing and performance analysis of node projects
C语言基础知识梳理总结:零基础入门请看这一篇
leetcode括号匹配问题——32.最长有效括号
代码编世界 科技创未来
如何进行并发数计算(稳定性测试和压力测试)?