5.11作业

拓扑图:

需求分析: 要求五台路由器的环回地址均可以相互访问

配置:

r1

复制代码
int g 0/0/0
ip address 12.0.0.1 24
int l 0
ip address 1.1.1.1 32
bgp 100
router-id 1.1.1.1
peer 12.0.0.2 as-number 200
network 1.1.1.1 32

r2

复制代码
int g 0/0/0
ip address 12.0.0.2 24
int g 0/0/1
ip address 23.0.0.2 24
int l 0
ip address 2.2.2.2 32
ospf 1 router-id 2.2.2.2
area 0
network 23.0.0.2 0.0.0.0
network 2.2.2.2 0.0.0.0
bgp 200
router-id 2.2.2.2
peer 12.0.0.1 as-number 100
import-route ospf 1
peer 3.3.3.3 as-number 200
peer 3.3.3.3 connect-interface LoopBack 0
peer 3.3.3.3 next-hop-local
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack 0
peer 4.4.4.4 next-hop-local

r3

复制代码
int g 0/0/0
ip address 23.0.0.3 24
int g 0/0/1
ip address 34.0.0.3 24
int l 0
ip address 3.3.3.3 32
ospf 1 router-id 3.3.3.3
area 0
network 3.3.3.3 0.0.0.0
network 23.0.0.3 0.0.0.0
network 34.0.0.3 0.0.0.0
bgp 200
router-id 3.3.3.3
peer 2.2.2.2 as-number 200
peer 2.2.2.2 connect-interface l 0
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface l 0

r4

复制代码
int g 0/0/0
ip address 34.0.0.4 24
int g 0/0/1
ip address 45.0.0.4 24
int l 0
ip address 4.4.4.4 32
ospf 1 router-id 4.4.4.4
area 0
network 4.4.4.4 0.0.0.0
network 34.0.0.4 0.0.0.0
bgp 200
import-route ospf 1
router-id 4.4.4.4
ip route-static 5.5.5.5 32 45.0.0.5
peer 3.3.3.3 as-number 200
peer 3.3.3.3 connect-interface l 0
peer 2.2.2.2 as-number 200
peer 2.2.2.2 connect-interface l 0
peer 5.5.5.5 as-number 300
peer 5.5.5.5 ebgp-max-hop 3
peer 5.5.5.5 connect-interface l 0

r5

复制代码
int g 0/0/0
ip address 45.0.0.5 24
int l 0
ip address 5.5.5.5 32
bgp 300
router-id 5.5.5.5
ip route-static 4.4.4.4 32 45.0.0.4
peer 4.4.4.4 as-number 200
peer 4.4.4.4 connect-interface LoopBack 0
peer 4.4.4.4 ebgp-max-hop 2

实验结果

复制代码
[R1]ping 5.5.5.5
PING 5.5.5.5: 56 data bytes, press CTRL_C to break
Reply from 5.5.5.5: bytes=56 Sequence=1 ttl=255 time=80 ms
Reply from 5.5.5.5: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 5.5.5.5: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 5.5.5.5: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 5.5.5.5: bytes=56 Sequence=5 ttl=255 time=30 ms
相关推荐
网硕互联的小客服3 小时前
Linux服务器磁盘应该如何合理分区?
linux·运维·服务器
楚识科技3 小时前
合同比对全流程自动化:OCR识别+差异比对+法律风险字段抽取实战指南
运维·自动化·ocr
Johny_Zhao3 小时前
FreeRADIUS + 华为AC/AP + 802.1X/WPA2-Enterprise 无线认证对接部署完整指南
网络·网络安全·信息安全·ldap·radius·huawei·系统运维·centos8
代码方舟3 小时前
零信任架构实战:基于天远人企关联构建自动化供应链金融网关
运维·人工智能·架构·自动化
lisanmengmeng4 小时前
nacos nrpe 监控机及被监控机部署
服务器·nacos·nagios·nrpe
天远API4 小时前
零信任架构实战:基于天远人企关联构建自动化图谱网关
网络·人工智能·架构·自动化
贵沫末4 小时前
Ubuntu——常用软件安装
linux·运维·ubuntu
Doraemomo5 小时前
Linux内核驱动开发——中断与定时器
linux·运维·驱动开发
2301_808414385 小时前
Linux中动静态库的理解
linux·运维·服务器
分布式存储与RustFS5 小时前
模型 checkpoint 放对象存储:分片上传、断点续传与残留清理
运维·云原生·开源·对象存储·分布式存储·s3·性能基准