实验23 多区域OSPF配置实验(路由器—路由器—路由器)
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
实验二十三:多区域OSPF 配置实验
一、实验介绍:
1、实验名称:多区域OSPF 配置实验
2、实验目的:R2624路由器多个自治系统OSPF 配置技术
3、实验设备:R2624路由器、V35DCE 、V35DTE
4、实验时间:30分钟
二、实验拓扑
说明:PC 机与路由器接口连接使用“交叉线”,或者使用2条“直通线”通过“交换机”作为渡过连接。
三、实验配置
R1配置:(DCE )
R1 (config)# hostname R1
R1(config)# interface FastEthernet0
R1(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# no shut
R1(config-if)# exit
R1(config)# interface Serial2
R1(config-if)# encapsulation ppp !封装接口协议为PPP
R1(config-if)# ip address 172.16.1.1 255.255.255.0
R1(config-if)# bandwidth 2000000 !定义带宽为2M
R1(config-if)# clock rate 64000 !定义时钟频率为64000(在DCE 端设置) R1(config-if)# no shut
R1(config-if)#
exit
R1(DCE )
R3(DTE ) IP 192.168.10.2/24 网关 192.168.10.1 IP 192.168.20.2/24 网关 192.168.20.1
R2
R1(config)# router ospf 1
R1(config-router)# network 172.16.1.0 255.255.255.252 area 0
R1(config-router)# network 192.168.10.0 255.255.255.0 area 0
R1(config-router)# exit
R2配置:(DTE-DCE)
R2 (config)# hostname R2
R2(config)# interface Serial0
R2(config-if)# encapsulation ppp !封装接口协议为PPP
R2(config-if)# ip address 172.16.1.2 255.255.255.0
R2(config-if)# no shut
R2(config-if)# exit
R2(config)# interface Serial2
R2(config-if)# encapsulation ppp !封装接口协议为PPP
R2(config-if)# ip address 172.16.2.1 255.255.255.0
R2(config-if)# bandwidth 2000000 !定义带宽为2M
R2(config-if)# clock rate 64000 !定义时钟频率为64000(在DCE端设置)R2(config-if)# no shut
R2(config-if)# exit
R2(config)# router ospf 1
R2(config-router)# network 172.16.1.0 255.255.255.252 area 0
R2(config-router)# network 172.16.2.0 255.255.255.252 area 1
R2(config-router)# exit
R3配置:(DTE)
R3 (config)# hostname R3
R3(config)# interface FastEthernet0
R3(config-if)# ip address 192.168.20.1 255.255.255.0
R3(config-if)# no shut
R3(config-if)# exit
R3(config)# interface Serial0
R3(config-if)# encapsulation ppp !封装接口协议为PPP
R3(config-if)# ip address 172.16.2.2 255.255.255.0
R3(config-if)# no shut
R3(config-if)# exit
R3(config)# router ospf 1
R3(config-router)# network 172.16.2.0 255.255.255.252 area 1
R3(config-router)# network 192.168.20.0 255.255.255.0 area 1
R3(config-router)# exit
四、验证命令:
Show ip ospf
Show ip ospf interface Show ip ospf neighbor Show ip ospf border-router Show ip route。