当前位置:网站首页>BGP实验
BGP实验
2022-06-23 03:54:00 【空丶白灬】

一、配置IP
二、配置AS2 的 OSPF
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]net 23.1.1.1 0.0.0.255
[r2-ospf-1-area-0.0.0.0]net 2.2.2.2 0.0.0.0
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]net 23.1.1.2 0.0.0.255
[r3-ospf-1-area-0.0.0.0]net 3.3.3.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]net 34.1.1.1 0.0.0.255
[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]a 0
[r4-ospf-1-area-0.0.0.0]net 34.1.1.2 0.0.0.255
[r4-ospf-1-area-0.0.0.0]net 4.4.4.4 0.0.0.0
三、配置AS1 AS2间BGP
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.1.1.2 as
[r1-bgp]peer 12.1.1.2 as-number 2
[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 12.1.1.1 as-number 1


四、配置IGP
1、R2,R3,R4
[r3]bgp 2
[r3-bgp]router-id 3.3.3.3
[r3-bgp]peer 2.2.2.2 as-number 2
[r3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[r3-bgp]peer 4.4.4.4 as-number 2
[r3-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r4]bgp 2
[r4-bgp]router-id 4.4.4.4
[r4-bgp]peer 3.3.3.3 as-n
[r4-bgp]peer 3.3.3.3 as-number 2
[r4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 3.3.3.3 as-number 2
[r2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
五、R4与R5建邻
1、配路由
[r5]ip route-static 4.4.4.0 24 45.1.1.1
[r5]ip route-static 4.4.4.0 24 54.1.1.1
[r4]ip route-static 5.5.5.5 24 45.1.1.2
[r4]ip route-static 5.5.5.5 24 54.1.1.2
2、配置BGP
[r5]bgp 3
[r5-bgp]router-id 5.5.5.5
[r5-bgp]peer 4.4.4.4 as-number 2
[r5-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r5-bgp]peer 4.4.4.4 ebgp-max-hop 2
[r4]bgp 2
[r4-bgp]peer 5.5.5.5 as-number 3
[r4-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[r4-bgp]peer 5.5.5.5 ebgp-max-hop 2


六、宣告路由
[r1]bgp 1
[r1-bgp]net 192.168.1.0 24

[r2]bgp 2
[r2-bgp]peer 3.3.3.3 next-hop-local
R2与R4建邻
[r4]bgp 2
[r4-bgp]peer 2.2.2.2 as-number 2
[r4-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[r2]bgp 2
[r2-bgp]peer 4.4.4.4 as-number 2
[r2-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[r2-bgp]peer 4.4.4.4 next-hop-local

[r4-bgp]peer 3.3.3.3 next-hop-local
[r4-bgp]peer 2.2.2.2 next-hop-local
[r3-bgp]peer 2.2.2.2 next-hop-local
[r5-bgp]net 192.168.5.0 24
[r4-bgp]net 192.168.4.0 24
[r3-bgp]net 192.168.3.0 24
[r2-bgp]net 192.168.2.0 24


边栏推荐
- Arduino火焰传感器(含代码)
- 396. mine site construction
- Course design C for freshmen -- clothing management system
- ICER skills 03design compile
- Receive incoming files and download (simple usage) a tag
- 微信小程序:星际旅行飞船乘坐票制作生成
- What are the types of independent station chat robots? How to quickly create your own free chat robot? It only takes 3 seconds!
- Usage of API interface test ------ post
- JDBC调用存储过程、MySQL触发器
- Abnova liquidcell negative enrichment cell separation and recovery system
猜你喜欢

Shadertoy基础教学01、画圆(smoothstep()函数讲解)

Shadertoy basic teaching 01. Circle drawing (explanation of smoothstep() function)

Emergency response HW review

DO280OpenShift命令及故障排查--常见故障排除和章节实验

Usage of API interface test ------ post

teqc进行GNSS数据质量分析时生成的s文件介绍

dolphinscheduler海豚调度升级代码改造-UpgradeDolphinScheduler

Unity中,如何在【编辑器】和【运行时】状态下读写一个ScriptableObject对象
![[graph theory] - bipartite graph](/img/2d/999820edafe7294440cf1873a26084.png)
[graph theory] - bipartite graph
![[C language] keyword](/img/76/fa0a8aa496ef6ff704d9c417e4b37c.png)
[C language] keyword
随机推荐
超越芯片和AI,硬科技资本为什么越来越“硬核”?
强推,软件测试快速入门,一看就会
Getting started with the shutter AppBar
Cloud function realizes fuzzy search function
【Mac】安全性与隐私中没有任何来源选项
teqc进行GNSS数据质量分析时生成的s文件介绍
Cloud native database is in full swing, and the future can be expected
图片降噪DeNoise AI
笔者认为所谓的产业互联网,就是一个产业与互联网深度融合的过程
ICer技能03Design Compile
Go learning record II (window)
1183. electricity
Unity中,如何在【编辑器】和【运行时】状态下读写一个ScriptableObject对象
Is data scientist a promising profession?
Openwrt directory structure
使用PX4的ECL进行多传感器数据融合的后处理
② Cocoapods principle and podspec file uploading operation
Meituan's good article: understand swift, Objective-C and the mixing mechanism from the perspective of precompiling
Decompile
With the arrival of intelligent voice era, who is defining AI in the new era?