当前位置:网站首页>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
测试

实验结束
边栏推荐
- 5款经典代码阅读器的使用方案对比
- There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
- APP Bluetooth connection test of test technology
- BGP实验(路由反射器,联邦,路由优化)
- npm、nrm两种方式查看源和切换镜像
- Redis-----非关系数据库
- APT + Transform 实现多模块应用Application生命周期分发
- 51 MCU Peripherals: Infrared Communication
- The virtual reality real estate display system foresees the future decoration effect in advance
- Introduction to coredns
猜你喜欢

npm、nrm两种方式查看源和切换镜像

秒杀系统小demo

5款经典代码阅读器的使用方案对比

Nacos注册中心的部署与用法详细介绍

Mysql数据库 | 基于Docker搭建Mysql-8.0以上版本主从实例实战
![[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays](/img/eb/9b05508e88b7f17d80de2afa8c08ce.png)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays

5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...

APP Bluetooth connection test of test technology

Leetcode parentheses matching problem -- 32. The longest parentheses effectively

eggjs controller层调用controller层解决方案
随机推荐
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
【OpenCV从入门到实践】图像处理技术[像素](全网最详细)
5年在职经验之谈:2年功能测试、3年自动化测试,从入门到不可自拔...
Nacos客户端启动出现9848端口错误分析(非版本升级问题)
There are more and more talents in software testing. Why are people still reluctant to take the road of software testing?
How to perform concurrent calculation (stability test and stress test)?
【解决】RESP.app 连接不上redis
leetcode-318.最大单词长度乘积
聪明人的游戏提高篇:第三章第二课:“桐桐数”(number)
leetcode每天5题-Day04
leetcode一步解决链表合并问题
Nacos注册中心的部署与用法详细介绍
npm、cnpm的安装
Say good woman programmers do testing have an advantage?More than a dozen interview, abuse of cry ~ ~ by the interviewer
金蝶国际:半年亏掉去年一年,疯狂烧钱的商业模式如何持续
Polar Parametrization for Vision-based Surround-View 3D Detection Paper Notes
家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
Analysis of the source code of the JS UI framework of Hongmeng system
Leetcode parentheses matching problem -- 32. The longest parentheses effectively
A list of 300+ learning resources compiled by senior engineers of the Tao Department (the latest version in 2021)