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


边栏推荐
- Cloud native database is in full swing, and the future can be expected
- Course design C for freshmen -- clothing management system
- [graph theory] - bipartite graph
- Brief ideas and simple cases of JVM tuning - why do you need JVM tuning?
- Laravel 8.4 routing problem. At the end is the cross reference table on the left side of the editor, which can be understood by Xiaobai
- Parameter passing of 18 generator function
- QT elidedtext only works for Chinese conformity, but not for English
- Dolphin scheduler 2.0.5 spark task test summary (source code optimization)
- PHP move_uploaded_file上传移动图片失败
- 单行或多行文本溢出,省略号代替
猜你喜欢

Install and run mongodb under win10

实战| 记一次借Viper来多重内网渗透

rtklib新版本2.4.3 b34测试对比

Laravel 8.4 routing problem. At the end is the cross reference table on the left side of the editor, which can be understood by Xiaobai

Usage of apipost interface test ------ get

Talk about the composite pattern in C #

Shadertoy basic teaching 02. Drawing smiling faces

Shadertoy基础教学02、画笑脸

2022-06-22:golang选择题,以下golang代码输出什么?A:3;B:1;C:4;D:编译失败。 package main import ( “fmt“ ) func mai

Apache atlas quick start
随机推荐
Three operation directions of integral mall
硬核,成为高素质测试人员:学会和产品沟通需求
工作5-8年的外包测试员,平均年薪有多少?
Direct insertion sort - [common sort method (1/8)]
Meituan's good article: understand swift, Objective-C and the mixing mechanism from the perspective of precompiling
VGg Chinese herbal medicine identification
新晋职场人的 技术进击?之旅
Abnova liquidcell negative enrichment cell separation and recovery system
2020:VL-BERT: Pre-training of generic visual-linguistic representation
Cve-2019-14287 (sudo right raising)
8年经验之谈:月薪3000到30000,测试工程师的变“行”记
【Mac】安全性与隐私中没有任何来源选项
Flask Foundation: environment setup + configuration + mapping between URL and attempt + redirection + database connection
如何更好地组织最小 WEB API 代码结构
微信小程序:微信也可以发闪照了闪照制作生成微信小程序源码下载,自定义闪照时间
MVC三层架构
单行或多行文本溢出,省略号代替
聊聊 C# 中的 Composite 模式
Composer by installation laravel
Notepad++ find replace group replace retain