当前位置:网站首页>HCIP-第九天-BGP(边界网关协议)
HCIP-第九天-BGP(边界网关协议)
2022-07-30 05:37:00 【m0_72586049】
一、实验目的
通过使用BGP边界网关协议让如下图所示的拓扑环境达到实验要求
二、实验需求
1.R1/2/4/5为边界路由器,且各有环回
2.AS2环境中通过OSPF协议配置使得AS1自治系统内网可达
3.AS1-AS3通过各自边界路由器环回接口建邻使得自治系统间达到全网可达
4.AS4-AS5备份选路
三、实验步骤
1.更改设备器名称
以R1为例:
[Huawei]sysname r1
[r1]

2.OSPF协议(AS2)
1)R2
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 2.2.2.0 0.0.0.2552)R3
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 3.3.3.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]network 34.1.1.0 0.0.0.2553)R4
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 34.1.1.0 0.0.0.255
[R4-ospf-1-area-0.0.0.0]network 4.4.4.0 0.0.0.255查看R2路由表看ospf是否配置成功

3.BGP协议配置
1)对等体建立
首先需要通过各自自治区域的边界路由器的环回接口进行BGP对等体建邻,所以需要在各自边界路由器手配静态路由到对等体环回接口;以R1和R2为例
R1
[R1]ip route-static 2.2.2.0 24 12.1.1.2R2
[R2]ip route-static 1.1.1.0 24 12.1.1.1
2)BGP协议
①R1
[R1]bgp 1
[R1-bgp]router-id 1.1.1.1
[R1-bgp]peer 2.2.2.2 as-number 2
[R1-bgp]peer 2.2.2.2 ebgp-max-hop 2
[R1-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R1-bgp]network 11.11.11.0 24
②R2
[R2]bgp 2
[R2-bgp]router-id 2.2.2.2
[R2-bgp]peer 1.1.1.1 as-number 1
[R2-bgp]peer 1.1.1.1 ebgp-max-hop 2
[R2-bgp]peer 1.1.1.1 connect-interface LoopBack 0
[R2-bgp]peer 3.3.3.3 as-number 2
[R2-bgp]peer 3.3.3.3 connect-interface LoopBack 0

③R3
[R3]bgp 2
[R3-bgp]router-id 3.3.3.3
[R3-bgp]peer 2.2.2.2 as-number 2
[R3-bgp]peer 4.4.4.4 as-number 2
[R3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R3-bgp]peer 4.4.4.4 connect-interface LoopBack 0

④R4
[R4]bgp 2
[R4-bgp]router-id 4.4.4.4
[R4-bgp]peer 3.3.3.3 as-number 2
[R4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[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

⑤R5
[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
[R5-bgp]network 55.55.55.0 24 
3)更改AS2区域内的下一跳
以R2为例
[R2-bgp]peer 3.3.3.3 next-hop-local
[R2-bgp]peer 4.4.4.4 next-hop-local四、测试
用R1的lookback1环回去pingR5的lookback1环回

终上所述:该实验的所有要求已经达成 ,实验成功。
边栏推荐
- [Mysql] CONVERT function
- 质数(清华大学机试题)(DAY 86)
- [Koltin Flow (2)] The end operator of the Flow operator
- MySQL索引常见面试题(2022版)
- MySQL - Function and Constraint Commands
- JVM之GC 调优工具 Arthas 实战使用(二)
- MySQL (2)
- mysql 中 in 的用法
- Teach you to completely uninstall MySQL
- Programmers care guide, give yourself a chance to make the occasional relaxation of body and mind
猜你喜欢

JVM 垃圾回收 超详细学习笔记(二)

JVM之GC 调优基础知识(一)

程序员赚钱实操,手把手教你做付费课程,自媒体,付费文章及付费技术课赚钱

MySQL stored procedure

MySQL-Explain详解

net start mysql MySQL service is starting. MySQL service failed to start.The service did not report any errors.

Different lower_case_table_names settings for server ('1') and data dictionary ('0') solution
![[其他] DS5](/img/20/6863bb7b58d2e60b35469ba32e5830.png)
[其他] DS5

It's time to have to learn English, give yourself multiple paths

MySQL模糊查询性能优化
随机推荐
Programmers care guide, give yourself a chance to make the occasional relaxation of body and mind
[GStreamer] 插件的名字要和GST_PLUGIN_DEFINE匹配
从字节码角度带你彻底理解异常中catch,return和finally,再也不用死记硬背了
ugly programmer
[GLib] 什么是GType
4461. 范围分区(Google Kickstart2022 Round C Problem B)
Ranking of grades (Huazhong University of Science and Technology postgraduate examination questions) (DAY 87)
Teach you to completely uninstall MySQL
MySQL索引从入门到深入学习
期末作业C#实现学生宿舍管理系统
Mysql8.+学习笔记
【图像处理】基于中轴变换实现图像骨架提取附matlab代码
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements
Summary of SQL classic interview questions in 2022 (with analysis)
一个老程序员的2020年总结回顾,2021年如何变的更牛逼
MySQL的存储过程
CISP-PTE Zhenti Demonstration
[GStreamer] The name of the plugin should match GST_PLUGIN_DEFINE
JVM面试总结
MySql模糊查询大全