【实验目的】:
在本次实验中,你将在单个帧中继网络中配置OSPF。
在完成本次实验之后,你需要完成下列任务: <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
  • 在NAMB网络中配置OSPF
  • 配置多区域OSPF环境
【实验拓扑】:
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" />
注意:图中x为所在机架编号,y为路由器编号。
【实验帮助】:
如果出现任何问题,可以向在值的辅导老师提出并请求提供帮助。
【命令列表】:
命令
描述
(config-if)#ip ospf priority 0
设置OSPF优先级为0,防止它参与DR/BDR选择
(config-router)network 172.31.x.0 <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.0.0.255 area 0
指定一个(组)接口运行在一个OSPF在区域

【任务一】:在帧中继网络上使用NBMA网络类型。
在这个任务中,你将配置ABR允许在路由跨过区域。
实验过程:
第一步:配置边界路由器(PxR1和PxR2)为区域边界路由器(ABR)。配置这个帧中继连接172.31.1.0/24(边界路由器的S0接口)到OSPF的区域0。记住帧中继网络上缺省的OSPF网络类型是NBMA。
第二步:记住这里非常重要的一点是将核心(BBR1)作为DR。因为在这里是一个星型(Hub-and-Spoke)网络类型,仅仅BBR1有完整的连接到其他的路由器。在边界中币器上设置串行接口S0 的OSPF的优先级为0确保BBR1被选为DR。
  • 注意:在NBMA网络,邻居语句仅仅需要在DR和BDR是声明。在我们的星型拓扑,邻居声明必须是配置在HUB路由器上。但是,在一个全互连(FULL-MESH)拓扑中如果没有使用优先级命令指定DR和BDR邻居声明是需要在所有的路由器上声明的
第三步:使用no shut命令激活边界路由器的S0接口(在先前的实验中,我们关闭了这个接口)。
第四步:检查内部路由器的路由表,确认所有的OSPF路由都已经学习到,并检查与TFTP服务器的连通性。在OSPF路由中的O,O IA和O E2之间有什么区别?
你的show ip route 输出应该与下列类似:
P1R4#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
172.31.0.0/24 is subnetted, 1 subnets
O IA 172.31.1.0 [110/74] via 10.1.2.2, 00:02:28, Ethernet0
10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks
C 10.200.200.14/32 is directly connected, Loopback0
C 10.1.3.0/24 is directly connected, Serial0
C 10.1.2.0/24 is directly connected, Ethernet0
O 10.1.1.0/24 [110/74] via 10.1.3.3, 00:02:53, Serial0
O 10.1.0.0/24 [110/74] via 10.1.2.2, 00:02:53, Ethernet0
O E2 10.254.0.0/24 [110/20] via 10.1.2.2, 00:00:00, Ethernet0
P1R4#
第五步:在边界路由器上,使用show ip ospf neighbor命令验证OSPF的邻居。路由器BBR1是否是区域中的DR。
第六步:确认BBR1配置了边界路上器的邻居语句。
第七步:在边界路由器,PxR1和PxR2,验证帧中继网络接口的网络类型。哪一个网络类型是帧中继接口使用的。在路由器PxR1和PxR2之间的HDLC串口上哪一种网络类型是使用的?在以太网接口呢?记住这些OSPF NBMA网络类型之间的关键的不同。
网络类型 指定邻居 DR 拓扑需求 Hello间隔备注
NBMA YES YES Full mesh 30 如果没有全互联,至少DR和BDR应该与所有的路由器有物理连接。
P2MP NO NO Arbitrary 30
Broadcast No Yes Full mesh 10 如果没有全互联,至少DR和BDR应该与所有的路由器有物理连接。
P2P No No P2P 10
你的路由器输出应该与下列类似:
P1R1#sh ip os int
Serial0 is up, line protocol is up
Internet Address 172.31.1.1/24, Area 0
Process ID 1, Router ID 10.1.0.1, Network Type NON_BROADCAST, Cost: 64
Transmit Delay is 1 sec, State DROTHER, Priority 0
Designated Router (ID) 172.31.1.3, Interface address 172.31.1.3
No backup designated router on this network
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:25
Index 1/3, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 4 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 172.31.1.3 (Designated Router)
Suppress hello for 0 neighbor(s)
Serial1 is up, line protocol is up
Internet Address 10.1.0.1/24, Area 1
Process ID 1, Router ID 10.1.0.1, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:08
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.1.0.2
Suppress hello for 0 neighbor(s)
Ethernet0 is up, line protocol is up
Internet Address 10.1.1.1/24, Area 1
Process ID 1, Router ID 10.1.0.1, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 10.200.200.13, Interface address 10.1.1.3
Backup Designated router (ID) 10.1.0.1, Interface address 10.1.1.1
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:07
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.200.200.13 (Designated Router)
Suppress hello for 0 neighbor(s)
P1R1#
【实验验证】:
成功完成整个实验,你需要完成下列任务:
  • 你有成功的在网络核心配置OSPF。
  • 你的路由表有完成的OSPF路由。
  • 你能够PING通核心TFTP服务器。
【路由器配置】:
P1R1:
hostname P1R1
!
boot-start-marker
boot-end-marker
!
no aaa new-model
ip subnet-zero
no ip domain lookup
!
interface Ethernet0
ip address 10.1.1.1 255.255.255.0
!
interface Serial0
ip address 172.31.1.1 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 172.31.1.3 111 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.1.0.1 255.255.255.0
clockrate 64000
!
router ospf 1
router-id 10.1.0.1
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
network 172.31.1.0 0.0.0.255 area 0
!
no ip http server
ip classless
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
login
End
P1R2:
hostname P1R2
!
boot-start-marker
boot-end-marker
no aaa new-model
ip subnet-zero
no ip domain lookup
!
interface Ethernet0
ip address 10.1.2.2 255.255.255.0
!
interface Serial0
ip address 172.31.1.2 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 172.31.1.3 112 broadcast
no frame-relay inverse-arp
!
interface Serial1
ip address 10.1.0.2 255.255.255.0
!
router ospf 1
router-id 10.1.0.2
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
network 172.31.1.0 0.0.0.255 area 0
!
no ip http server
ip classless
!
line con 0
exec-timeout 30 0
logging synchronous
line aux 0
line vty 0 4
login
!
End
P1R3:
hostname P1R3
!
boot-start-marker
boot-end-marker
!
no aaa new-model
ip subnet-zero
!
interface Loopback0
ip address 10.200.200.13 255.255.255.255
!
interface Ethernet0
ip address 10.1.1.3 255.255.255.0
!
interface Serial0
ip address 10.1.3.3 255.255.255.0
clockrate 64000
!
interface Serial1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
!
no ip http server
ip classless
!
line con 0
line aux 0
line vty 0 4
login
!
End
P1R4:
hostname P1R4
!
boot-start-marker
boot-end-marker
!
no aaa new-model
ip subnet-zero
!
interface Loopback0
ip address 10.200.200.14 255.255.255.255
!
interface Ethernet0
ip address 10.1.2.4 255.255.255.0
ip ospf priority 0
!
interface Serial0
ip address 10.1.3.4 255.255.255.0
!
interface Serial1
no ip address
shutdown
!
router ospf 1
log-adjacency-changes
network 10.1.0.0 0.0.255.255 area 1
!
no ip http server
ip classless
!
line con 0
line aux 0
line vty 0 4
login
!
end

转载于:https://blog.51cto.com/xghe110/69413

CCNP实验4-2:配置多区域和NBMA OSPF相关推荐

  1. CCNP实验:路由重分布注意事项

    CCNP实验:路由重分布注意事项之一.重分布基础: 大家都知道,一般来说一个组织或者一个跨国公司很少只使用一个路由协议,而如果一个公司同时运行了多个路由协议,或者一个公司和另外一个公司合并的时候两个公 ...

  2. BSCI实验之十三:配置点到点链路OSPF及认证

    实验拓扑: 实验要求:分别在RA/RB/RC(即图中的R1/R2/R3)上启用OSPF,注意观察它们的网络类型以及邻居关系,并观察认证后的特点. 实验目的:熟练进行点到点OSPF的基本配置和认证调试. ...

  3. 计算机交换机配置实验心得,网络配置实验心得

    <网络配置实验心得>由会员分享,可在线阅读,更多相关<网络配置实验心得(10页珍藏版)>请在人人文库网上搜索. 1.网络配置实验心得 #网络配置实验心得1#1.实验目的理解IC ...

  4. CCNA实验三十八 ZFW(区域防火墙)

    CCNA实验三十八 ZFW(区域防火墙) 环境:Windows XP .Packet Tracert5.3 目的:了解ZFW的原理与基本配置 说明: ZFW(Zone-Based Policy Fir ...

  5. 配置基于区域策略的防火墙

    配置基于区域策略的防火墙 拓扑以及地址规划 实验前确保网络连通 service-0 ping通PC-0 创建一个内部区域. R2(config)# zone security IN-ZONE R2(c ...

  6. 华为eNSP实验-防火墙模拟配置(采用ping命令逐步分析)

    ensp防火墙模拟配置-采用ping命令逐步分析 1.各设备的IP地址配置. 按如图所示配置好各个设备对应的IP地址. 注意点: 1.图中cloud2云处需要关联电脑上对应的虚拟网卡. 2.实验中我使 ...

  7. 实验七:配置交换机管理地址和默认网关(远程登陆)

    实验拓扑: 实验目标: 1.理解交换机默认VLAN的作用: 2.理解交换机默认网关的作用: 3.实现交换机远程管理. 实验步骤: 1.根据拓扑所示,配置对应的IP地址: 2.配置SW1的管理地址,使其 ...

  8. CCNP实验:CHAP认证、MGRE技术

    文章目录 CCNP实验:CHAP认证.MGRE技术 1.规划IP: 2.配置: (1)底层: (2)路由: ①配置缺省: ②搭建MGRE环境: ③路由宣告: ④在R1上做NAT: ⑤CHAP认证: C ...

  9. 实验5:配置通过静态工厂方法创建的bean、实例工厂方法创建的bean、(FactoryBean测试)★

    实验5:配置通过静态工厂方法创建的bean.实例工厂方法创建的bean.(FactoryBean测试)★ bean的创建默认就是框架利用反射new出来的bean实例 工厂模式:工厂帮我们创建对象:有一 ...

最新文章

  1. kernel 3.10代码分析--KVM相关--虚拟机创建\VCPU创建\虚拟机运行
  2. 计算机网络探究一之利用双网卡主机共享上网
  3. jQuery的无new构建
  4. SAP Customer Experience Extensibility gold rule
  5. C语言试题二十七之请编写程序,实现矩阵(3行3列)的转置(即行列互换)。
  6. html浮动标签调整位置,HTML 获取当前标签在页面的位置,并且把其他的浮动窗口显示过来...
  7. 汇编 一星题目字符串合集:输入字符,操作,在屏幕上显示
  8. MyBatis3_[tp_41-42-43]-_动态sql_trim_自定义字符串截取_choose分支选择_update的set与if-trim 结合的动态更新...
  9. 【SAS系列】SAS入门书籍推荐
  10. 苹果测试应用可一键生成ios测试UDID证书,IOS怎么安装APP?怎么测试APP?一键搞定
  11. 《自己动手写网络爬虫》笔记3-宽度优先遍历互联网
  12. uni-app开发和常规Vue开发
  13. Linux系统不同颜色文件代表什么意思?绿色、蓝色、白色、红色等代表的意义是什么?
  14. 对比汇新云和猪八戒?
  15. Windows PE (老毛桃) 介绍功能介绍
  16. ASP.NET 安全认证(三)
  17. Gin:路由抽离与分组
  18. 软件实施工程师需要掌握的技能
  19. UMLChina公众号文章精选(20210706更新精选)
  20. 纳米材料与技术类毕业论文文献有哪些?

热门文章

  1. 软件测试的基础知识(二)
  2. RColorBrewer | R语言中的配色方法汇总(Ⅰ)
  3. 计算机基础与应用2,计算机基础与应用(作业2)
  4. mysql 可逆编码,简单明白彻底解决 MySQL 中文编码问题
  5. 事务例子_图文详解:数据库事务与锁
  6. dmol3给定关键字不在字典中_一日一技:举例说明python中的map()方法
  7. 学UI设计好不好找工作?零基础能学UI设计吗?
  8. 字符集_超详细的MySQL数据库字符集总结,值得收藏
  9. VS对.ini文件的操作
  10. oracle sysau,ORACLE 10GR2 ASM 如何修改AU_SIZE的大小