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
相关推荐
岸边的风2 小时前
无需公网IP的文件交互:FileCodeBox容器化部署技术解析
网络·网络协议·tcp/ip
jingyu飞鸟2 小时前
linux系统源代码安装apache、编译隐藏版本号
linux·运维·apache
世事如云有卷舒2 小时前
Ubunt20.04搭建GitLab服务器,并借助cpolar实现公网访问
linux·服务器·gitlab
Zonda要好好学习2 小时前
Python入门Day4
java·网络·python
Little-Hu3 小时前
QML TextEdit组件
java·服务器·数据库
riverz12273 小时前
TCP backlog工作机制
服务器·网络·tcp/ip
2401_858286113 小时前
OS15.【Linux】gdb调试器的简单使用
linux·运维·服务器·开发语言·gdb
yqcoder3 小时前
1. http 有哪些版本,你是用的哪个版本,怎么查看
网络·网络协议·http
c30%005 小时前
内网渗透——红日靶场五
运维·服务器
zjw_rp5 小时前
centos停止维护后更换yum源
linux·运维·centos