金科·教育
C 148.148.148.0 is directly connected, FastEthernet0/0 //R1上无法收到外部路由
需求六:Orthopaedics(R22)是新收购的事务所,由于来不及布线施工而暂时并到surgery(R33)事务所,配置使得所有网络可达(ping测试)
1) OSPF协议区域23未与骨干区域相连接要实现所以网络可达需要在R3与R6建立虚链
路。
R3(config-router)#area 36 virtual-link 6.6.6.6
R6(config-router)#area 36 virtual-link 3.3.3.3
需求七:在dental_ho(R66)事务上配置使得所有访问internet的流量都指向网络其直连的以太网络,同时把这条路由告诉OSPF区域。
第~ 11 ~页
金科·教育
1) 要使访问internet的流量都指向网络其直连的以太网络,需要在R6路由器上将默认路由
重发布进OSPF中。
R6(config-router)#default-information originate always // 加入always 即使R6路由表上默认路由不存在也能下发默认路由。
需求八:Area0基于安全的原因配置上MD5认证,密码:goldtech
1)
R6(config-if)#int s2/2.1
R6(config-subif)# ip ospf message-digest-key 1 md5 goldtech // 配置MD5密钥 R6(config-if)# area 0 authentication message-digest // 在区域里0启用区域MD5认证
R4(config)# interface Serial2/1
ip ospf message-digest-key 1 md5 goldtech router ospf 2014
area 0 authentication message-digest
R5(config)# interface Serial2/0
ip ospf message-digest-key 1 md5 goldtech router ospf 2014
第~ 12 ~页
金科·教育
area 0 authentication message-digest
需求九:pain_center(R11)是事务所总部,将其做为指定路由器,
与它直连的两个事务所邻居关系保持two-way状态。
1) 要使R1直连的R4,R5 邻居保持two-way状态 则需要把OSPF的直连接口优先级改为0
使其不参与DR与BDR的选举。
R1(config)#int fa0/0
R1(config-if)#ip ospf priority 0
R4(config)#int fa0/0
R4(config-if)#ip ospf priority 0
R5(config)#int fa0/0
R5(config-if)#ip ospf priority 0
需求十:为了减少网络流量,将pain_center(R11)所在区域汇总主类网络通告出去。
1) 要将区域148的路由汇总主类网络通告出去,则需要在区域148的ABR(R4,R5)上进行
OSPF汇总配置。
R4(config)#router ospf 2014
R4(config-router)#area 148 range 148.148.0.0 255.255.0.0
第~ 13 ~页
金科·教育
R5(config)#router ospf 2014
R5(config-router)#area 148 range 148.148.0.0 255.255.0.0
R6#show ip rout
O IA 148.148.0.0/16 [110/65] via 99.99.99.2, 00:01:41, Serial2/2.1 [110/65] via 99.99.99.1, 00:01:41, Serial2/2.1
需求十一:由于root_canals(R44)与dental_ho(R66)之间的PVC链路质量较好,适当配置使得pain_center(R11)优先选取root_canals(R44)访问自身区域除外的外部网络。
1) 要使R1在访问外网时优走R4路线,则需要修改R4 OSPF的优先级。
R4(config)#int fa0/0 R4(config-if)#ip ospf priority 200
R1#traceroute 99.99.99.3 Type escape sequence to abort. Tracing the route to 99.99.99.3
1 148.148.148.1 16 msec 44 msec 8 msec //此时 R1访问R6优走R4接口 2 99.99.99.3 24 msec 52 msec 20 msec
第~ 14 ~页
金科·教育
需求十二:在area0以外的所有区域启用OSPF明文认证,密码:goldtech
1) 需要在区域23,36,148配置明文认证,不同的区域使用不同的认证只要密码相同就能
实现认证。
R1(config)#int fa0/0
R1(config-if)#ip ospf authentication-key goldtech //配置明文密码 R1(config)#router ospf 2014
R1(config-router)#area 148 authentication
//启用区域认证
R4(config)#int fa0/0
R4(config-if)#ip ospf authentication-key goldtech R4(config)#router ospf 2014
R4(config-router)#area 148 authentication
R5(config)#int fa0/0
R5(config-if)#ip ospf authentication-key goldtech R5(config)#router ospf 2014
R5(config-router)#area 148 authentication
R6(config)#int fa0/0
R6(config-if)#ip ospf authentication-key goldtech
第~ 15 ~页