当前位置:网站首页>BGP实验
BGP实验
2022-06-10 00:18:00 【xnasda】

1.如图连接网络,合理规格P地址,AS200内IGP协议为OSPF
如图配置各个接口ip与环回
AS200 运行IGP OSPF协议
R2 3 4 5 6 7上运行ospf
[R2]ospf 1 router-id 92.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 25.1.1.1 0.0.0.0
[R3]ospf 1 router-id 93.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.2 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 34.1.1.1 0.0.0.0
[R4]ospf 1 router-id 94.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 34.1.1.2 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 47.1.1.1 0.0.0.0
[R5]ospf 1 router-id 95.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 25.1.1.2 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 56.1.1.1 0.0.0.0
[R6]ospf 1 router-id 96.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 6.6.6.6 0.0.0.0
[R6-ospf-1-area-0.0.0.0]network 56.1.1.2 0.0.0.0
[R6-ospf-1-area-0.0.0.0]network 67.1.1.1 0.0.0.0
[R7]ospf 1 router-id 97.7.7.7
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]network 7.7.7.7 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 67.1.1.2 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 47.1.1.2 0.0.0.0
查看ospf路由表;
2.R1属于AS100;R2-R3-R4小AS234R5-R6-R7小AS567,同时声明大AS200,R8属于AS300
[R1]bgp 100
[R1-bgp]router-id 1.1.1.1
[R1-bgp]network 1.1.1.1 255.255.255.0
[R1-bgp]peer 12.1.1.2 as-number 200
[R2]bgp 234
[R2-bgp]router-id 2.2.2.2
[R2-bgp]confederation id 200
[R2-bgp]network 2.2.2.2 255.255.255.0
[R2-bgp]peer 3.3.3.3 as-number 234
[R2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R2-bgp]peer 3.3.3.3 next-hop-local
[R2-bgp]peer 12.1.1.1 as-number 100
[R3]bgp 234
[R3-bgp]router-id 3.3.3.3
[R3-bgp]confederation id 200
[R3-bgp]network 3.3.3.3 255.255.255.0
[R3-bgp]peer 2.2.2.2 as-number 234
[R3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R3-bgp]peer 4.4.4.4 as-number 234
[R3-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[R4]bgp 234
[R4-bgp]router-id 4.4.4.4
[R4-bgp]confederation id 200
[R4-bgp]network 4.4.4.4 255.255.255.0
[R4-bgp]peer 3.3.3.3 as-number 234
[R4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R4-bgp]peer 3.3.3.3 next-hop-local
[R5]bgp 567
[R5-bgp]router-id 5.5.5.5
[R5-bgp]confederation id 200
[R5-bgp]network 5.5.5.5 255.255.255.0
[R5-bgp]peer 6.6.6.6 as-number 567
[R5-bgp]peer 6.6.6.6 connect-interface LoopBack 0
[R5-bgp]peer 6.6.6.6 next-hop-local
[R6]bgp 567
[R6-bgp]router-id 6.6.6.6
[R6-bgp]confederation id 200
[R6-bgp]network 6.6.6.6 255.255.255.0
[R6-bgp]peer 5.5.5.5 as-number 567
[R6-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[R6-bgp]peer 7.7.7.7 as-number 567
[R6-bgp]peer 7.7.7.7 connect-interface LoopBack 0
[R7]bgp 567
[R7-bgp]router-id 7.7.7.7
[R7-bgp]confederation id 200
[R7-bgp]network 7.7.7.7 255.255.255.0
[R7-bgp]peer 6.6.6.6 as-number 567
[R7-bgp]peer 6.6.6.6 connect-interface LoopBack 0
[R7-bgp]peer 6.6.6.6 next-hop-local
[R7-bgp]peer 78.1.1.2 as-number 300
[R8]bgp 300
[R8-bgp]router-id 8.8.8.8
[R8-bgp]network 8.8.8.8 255.255.255.0
[R8-bgp]peer 78.1.1.1 as-number 200
查看bgp邻居表



打破igp水平分割;

水平分割前后对比:



3.R2-R5R4-R7之间为联邦EBGP邻居关系
[R2-bgp]confederation peer-as 567
[R2-bgp]peer 5.5.5.5 as-number 567
[R2-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[R2-bgp]peer 5.5.5.5 ebgp-max-hop 5
[R5-bgp]confederation peer-as 234
[R5-bgp]peer 2.2.2.2 as-number 234
[R5-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R5-bgp]peer 2.2.2.2 ebgp-max-hop 5
[R4-bgp]confederation peer-as 567
[R4-bgp]peer 7.7.7.7 as-number 567
[R4-bgp]peer 7.7.7.7 connect-interface LoopBack 0
[R4-bgp]peer 7.7.7.7 ebgp-max-hop 5
[R7-bgp]confederation peer-as 234
[R7-bgp]peer 4.4.4.4 as-number 234
[R7-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[R7-bgp]peer 4.4.4.4 ebgp-max-hop 5

4.R1-R8之间通信
边栏推荐
- AQUANEE将在近期登陆Gate以及BitMart,低位布局的良机
- Masao Kudo: how to publish 5 SCI articles a year
- 力扣 两数之和 C语言 题解
- Enterprise worry free | apipost privatization deployment activity is about to start
- 采云端&采云链:从订单协同到采购供应链,让采购供应链互联互通
- Mat数据的深浅拷贝
- JS logic empty allocation double question mark syntax, double vertical bar syntax and optional chain syntax
- [vscode] the problem that the vscode SFTP plug-in cannot be used after upgrading to version 1.59
- Pta7-6 quietly follows
- PTP授时服务器(NTP网络时间服务器)技术方案应用
猜你喜欢

Where is the bookmark saved in Google browser and how to import and export bookmarks

The problem of connecting the computer to the printer (the printer display is not specified) solution
Bubble sorting and optimization clear and intuitive C language

Learning notes of zhouzhihua in machine learning
试题 历届真题 完全二叉树的权值【第十届】【省赛】【B组】

Is it necessary for a bank to establish a data center? You will understand after reading it

Facial Emotion Recognition: State of the Art Performance on FER2013

Gartner 2021年全球IaaS报告:AWS蛋糕被蚕食,中国云厂商稳步进击

Deep and shallow copy of mat data

采云端&采云链:从订单协同到采购供应链,让采购供应链互联互通
随机推荐
Illustration Google V8 06: prototype chain: how does V8 implement object inheritance?
RHCSA第三天
Bubble sorting and optimization clear and intuitive C language
Several syntax for adding events to elements in a page
js 邏輯空分配雙問號語法 、雙豎杠語法 與 可選鏈語法
AQUANEE将在近期登陆Gate以及BitMart,低位布局的良机
工程伦理课后习题答案
Win10 how to delete an account
加解密及验签
试题 历届真题 成绩分析【第十一届】【省赛】【B组】
Solution to C language problems of force buckle rotation string
2022最新版阿里开发手册发布!!!
二分查找(折半查找)总结
Learning notes of zhouzhihua in machine learning
运算符 (第二天)
Ups and downs of network status
[typecho]some problems in SQL programming
wps合并单元格内容都保留在一个单元格怎么实现
BP neural network inversion of water quality parameters based on MATLAB
收藏备用 | 关于OAuth2的一些常见问题总结