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
相关推荐
一条泥憨鱼几秒前
【从0开始学习计算机网络】| 邮件协议入门:SMTP、POP3、IMAP
linux·运维·计算机网络·github
LJianK11 小时前
服务器、节点 、 集群、分布式
运维
姚不倒1 小时前
etcd 学习系列(四):存储模型 —— WAL 和 Snapshot 是如何配合的
运维·etcd
come112342 小时前
Nginx `location` 配置说明(后端开发版)
运维·nginx
z落落3 小时前
C# WinForm Socket 转串口设备服务器+Modbus CRC16校验+Socket 客户端
服务器·开发语言·c#
春风解人意8 小时前
从零开始学习嵌入式P32----网络基础之TCP
c语言·网络·学习·tcp/ip
SkyWalking中文站9 小时前
SkyWalking 11 与 BanyanDB 0.11:在存储引擎内部实现 Trace 尾部采样
运维·监控·自动化运维
云絮.9 小时前
网络原理---- 网络层,数据链路层,应用层
网络
姚不倒9 小时前
etcd 学习系列(二):集群架构 —— 3 节点是如何工作的
运维·架构·etcd
pt104310 小时前
网络自动化Python课程:Cisco PyATS网络自动化测试框架
运维·自动化