OSPF子网划分练习题

OSPF子网划分练习题

任务 1:设计一个编址方案并记录下来。

使用 172.16.0.0/16 创建一个符合下列要求的有效地址方案:(依网络规模从大到小的顺序进行。首先为从 R5 到 R2 的 WAN 链路分配地址,然后为从 R4 到 R6 的 WAN 链路分配地址。)

主机名

接口

主机数量

R2

Fa0/1

1000

R3

Fa0/1

400

R4

Fa0/1

120

R5

Fa0/1

6000

R5

Fa0/0

800

R6

Fa0/1

2000

R6

Fa0/0

500

还需要为拓扑中的两个串行链路分配子网。

注意:R1、R2、R3 和 R4 上的 Fa0/0 接口已预先配置。

任务 2:应用基本配置。

使用下表在每台路由器上完成基本路由器配置。同时,确保配置地址和主机名。(R5 将获得它与 R2 之间的链路上的第一个 IP 地址 [DCE]。R4 [DCE] 将获得它与 R6 之间的链路上的第一个 IP 地址。)

控制台口令

VTY 口令

使能加密口令

时钟频率(如果适用)

cisco

cisco

cisco

56000

R5(config)#int f0/1

R5(config-if)#no sh

R5(config-if)#ip address 172.16.0.1 255.255.255.224

R5(config)#int f0/0

R5(config-if)#no sh

R5(config-if)#ip address 172.16.44.1 255.255.252.0

R5(config)#int s0/0/0

R5(config-if)#no sh

R5(config-if)#ip address 172.16.52.129 255.255.255.252

R6(config)#int f0/1

R6(config-if)#no sh

R6(config-if)#ip address 172.16.32.1 255.255.248.0

R6(config)#int f0/0

R6(config-if)#no sh

R6(config-if)#ip address 172.16.48.1 255.255.254.0

R6(config)#int s0/0/0

R6(config-if)#no sh

R6(config-if)#ip address 172.16.52.134 255.255.255.252

R2(config)#int f0/1

R2(config-if)#no sh

R2(config-if)#ip address 172.16.40.1 255.255.252.0

R2(config)#int s0/0/0

R2(config-if)#no sh

R2(config--if)#clock rate 56000(设置时钟频率)

R2(config-if)#ip address 172.16.52.130 255.255.255.252

R3(config)#int f0/1

R3(config-if)#no sh

R3(config-if)#ip address 172.16.50.1 255.255.254.0

R4(config)#int f0/1

R4(config-if)#no sh

R4(config-if)#ip address 172.16.52.1 255.255.255.128

R4(config)#int s0/0/0

R4(config-if)#no sh

R4(config-if)#ip address 172.16.52.133 255.255.255.252

R4(config-if)#clock rate 56000(设置时钟频率)

任务 3:配置单区域 OSPF 路由。

步骤 1:在每台路由器上配置 OSPF(进程 ID 为 1)。

步骤 2:检验是否已获知所有路由。

任务 4:微调 OSPF。

步骤 1:使用下列知道原则设置 OSPF 优先级:

• R1 绝不参与 DR/BDR 选举。

• R2 将始终成为 DR。

• R3 和 R4 将具有相同的优先级 100。

• R4 应该始终成为 BDR。

注意:所有优先级均应在 FA0/0 接口上设置。

就是说:先开R4,再开R3,把R1优先级设为0就行了

步骤 2:在接口上使用 Shutdown/No Shutdown 命令强制进行 DR/BDR 选举。

R5(config)#do show ip rou

R5(config)#router ospf 1(启动OSPF协议)

R5(config-router)#network 172.16.0.0 0.0.31.255 area0

R5(config-router)#network 172.16.44.0 0.0.3.255 area0(区域号为0)

R5(config-router)#network 172.16.52.128 0.0.0.127 area0

R2(config)#router ospf 1(启动OSPF协议)

R2(config)#do show ip rou

R2(config-router)#network 10.10.10.0 0.0.0.7 area0

R2(config-router)#network 172.16.40.0 0.0.3.255 area0

R2(config-router)#network 172.16.52.128 0.0.0.3area0

Exit

R2(config)#int f0/0

R2(config-if)#ip ospf priority 255(设置优先级最大255)

R2(config-if)#shutdown(关闭)

R3(config)#do show ip router

R3(config)#router ospf 1

R3(config-router)#network 10.10.10.0 0.0.0.7 area 0

R3(config-router)#network 172.16.50.0 0.0.1.255 area 0

R3(config-if)#ip ospf priority 100

R3(config-if)#shutdown

R1(config)#do show ip router

R1(config)#router ospf 1

R1(config-router)#network 10.10.10.0 0.0.0.7 area 0

Exit

R1(config)#int f 0/0

R1(config-if)#ip ospf priority 0(没有参选资格)

R1(config-if)#shutdown

R4(config)#router ospf 1

R4(config-router)#network 10.10.10.0 0.0.0.7 area 0

R4(config-router)#network 172.16.52.0 0.0.0.127 area 0

R4(config-router)#network 172.16.52.132 0.0.0.3 area 0

Exit

R4(config)#int f 0/0

R4(config-if)#ip ospf priority 100

R4(config-router)#network172.16.48.0 0.0.1.255 area 0

R4(config-router)#network 172.16.52.132 0.0.0.3 area 0

依次开启R2,R4,R3.R1

R2(config)#no shutdown

任务 5:配置环回接口。

步骤 1:在 R1 上使用地址 1.1.1.1/32 配置 loopback0 接口。

步骤 2:使用本地接口参数创建通向环回接口的默认路由。

步骤 3:在 OSPF 更新中传播该路由。

任务 6:查看 OSPF 更新。

步骤 1:进入模拟模式。

步骤 2:在过滤器中仅选择 OSPF。

步骤 3:查看更新。

R1(config)#interface loopback 0

R1(config-if)#ip address 1.1.1.1 255.255.255.255

同时配置默认路由

R1(config)#ip route 0.0.0.0 0.0.0.0 loopback 0

R1(config)#router ospf 1

R1(config-router)#deafult-informmation originate(默认路由充分发际)

SSH配置

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

小野猪都有白菜拱

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值