180426—【网络路由技术】:OSPF 综合实验

按:

消失了一段时间。
中间信了班主任的邪去准备 CTF,说得好听,以赛带学。但是那种从原理到术语,从找工具到找文档找各种乱起八遭学着用工具半天只能搞个皮毛的东西。。还是算了吧。。
python 也暂时放下了。
社团的事情有很多要去忙。
机缘巧合,开始学习 CCIE 相关课程。
所以消失了不是放弃学习了。。

实验拓扑及需求:
这里写图片描述

1,按照如图所示配置好路由器的接口地址。在每台路由器上必须建立 loopback0 接口。
2,配置好 OSPF,区域划分如图所示,并且 ospf 的 router-id 必须为 loopback0 的地址。最终 实现全网互联。
3,在 R1、R2、R3、R4 之间的多路访问网络里面,必须是的 R1 成为 DR,R2 成为 BDR。在其余的链路里面必须保障 OSPF 邻居的快速建立,而不需要经过 wait timer。
4,在 R1 和 R2 上建立 loopback10,接口的地址为同样的 100.1.1.1/32 来模拟外网的接入。要求 R1 和 R2 都向内网通告一条缺省路由,正常的时候所有的路由器通过 R1 的缺省路由来访问外网,当 R1 无法正常工作的时候,通过 R2 来访问外网。(需要在 R7 上使用 traceroute 来测试路线。)
5,area2 为特殊区域,该区域无法学习到 ospf 其他区域的路由。R7 的 loopback0 的地址通过 redistributeconnected subnets 命令进入 ospf。(观察 R5 和 R6 上的 7.7.7.0 路由的来源,思考原因。)
6,在 R3 上创建 loopback1-3,地址为 172.16.x.1/24(x 为 1-3)。并且宣告进 OSPF 区域 1,要求在 area0 只能看到一条汇总的路由 172.16.0.0
7,area 0 需要启用明文区域认证,R3 和 R5 之间明文链路认证,R4 和 R6 之间密文链路认证。
8,禁止 area2 内的 192.168.57.0/24 和 192.168.67.0/24 被其他区域学习到。此刻思考区域 0 里面关于 7.7.7.0 的路由消失的原因,并且需要解决 7.7.7.0 消失的问题。

先解决第一步到第三步,配置 IP 地址及 ospf 进程:

R1
interface Loopback0
 ip address 1.1.1.1 255.255.255.0
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.12.1 255.255.255.0
 ip ospf network point-to-point        \\改网络类型为点对点,为了满足题目3里面的跳过wait timer的需求。
 ip ospf 1 area 0
!
interface FastEthernet0/1
 ip address 192.168.234.1 255.255.255.0
 ip ospf priority 100                 \\改接口ospf的优先级,为了让R1成为DR
 ip ospf 1 area 0
!
interface FastEthernet1/0
 ip address 192.168.13.1 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 1.1.1.1        \\设置OSPF的route-id,防止被其他的接口抢走route-id
============================================================================

R2
interface Loopback0
 ip address 2.2.2.2 255.255.255.0
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.12.2 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface FastEthernet0/1
 ip address 192.168.234.2 255.255.255.0
 ip ospf priority 10        \\设置接口的优先级,让R2成为BDR
 ip ospf 1 area 0
!
interface FastEthernet1/0
 ip address 192.168.24.2 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
router ospf 1
 router-id 2.2.2.2
============================================================================

R3
interface Loopback0
 ip address 3.3.3.3 255.255.255.0
 ip ospf 1 area 0
!
interface FastEthernet0/0
 ip address 192.168.13.3 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 0
!
interface FastEthernet0/1
 ip address 192.168.234.3 255.255.255.0
 ip ospf 1 area 0
!
interface FastEthernet1/0
 ip address 192.168.35.3 255.255.255.0
 ip ospf network point-to-point
 ip ospf 1 area 1
!
router ospf 1
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值