实验20 OSPF基本配置实验(路由器—路由器)

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

实验二十一:OSPF 基本配置实验

一、实验介绍:

1、实验名称:OSPF 基本配置实验

2、实验目的:R2624路由器OSPF 基本配置技术

3、实验设备:R2624路由器、V35DCE 、V35DTE

4、实验时间:10分钟

二、实验拓扑:

PC1 PC2

三、实验配置:

R1配置:(DCE )

R1 (config)# hostname R1 R1(config)# interface F0

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)# clock rate 64000 !定义时钟频率为64000(在DCE 端设置) R1(config-if)# no shut R1(config-if)# exit

R1(config)# router ospf 1

R1(config-router)# network 172.16.1.0 0.0.0.255 area 0 R1(config-router)# network 192.168.10.0 0.0.0.255 area 0 R1(config-router)# exit

R2配置:(DTE )

R1(DCE )

R2(DTE )

IP 192.168.10.2/24 网关 192.168.10.1

IP 192.168.20.2/24 网关 192.168.20.1

R2(config)# hostname R2

R2(config)# interface F0

R2(config-if)# ip address 192.168.20.1 255.255.255.0

R2(config-if)# no shut

R2(config-if)# exit

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)# router ospf 1

R2(config-router)# network 172.16.1.0 0.0.0.255 area 0 R2(config-router)# network 192.168.20.0 0.0.0.255 area 0 R2(config-router)# exit

四、验证命令

Show ip ospf

Show ip ospf interface

Show ip ospf neighbor

Show ip route

Show running-config

相关文档
最新文档