开放式最短路径优先路由协议OSPF 配置实验报告

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

实验报告7

实验名称开放式最短路径优先路由协议OSPF配置

姓名学号班级13计本

实验目的(1)练习OSPF动态路由协议的基本配置;(2)掌握了解OSPF路由协议原理

实验内容(1)OSPF动态路由协议配置(2)查看路由表

实验步骤(1)连接网络,(除路由器之间,其他的各设备都用直通线连接)。

关闭路由器电源,安装模块WIT-2T。(路由器之间使用DCE电缆连接到串行口),如图1所示:

图1

(2)配置Router1:

Router>enable//进入特权模式

Router#configure terminal//进入配置模式

Enter configuration commands,one per line.End with CNTL/Z.

Router(config)#interface FastEthernet0/0//配置端口

Router(config-if)#ip address172.16.0.1255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED:Interface FastEthernet0/0,changed state to up

%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/0,changed state to up Router(config-if)#exit

Router(config)#interface Serial0/1/0//配置端口

Router(config-if)#ip address192.168.0.1255.255.255.0

Router(config-if)#clock rate64000

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED:Interface Serial0/1/0,changed state to up

%LINEPROTO-5-UPDOWN:Line protocol on Interface Serial0/1/0,changed state to up Router(config-if)#route ospf1//启用OSPF协议,ID号为1

Router(config-router)#network192.168.0.00.0.0.255area0//发布网络

Router(config-router)#network172.16.0.00.0.0.255area0

Router(config-router)#exit

Router#copy running-config startup-config//写入启动文件

Destination filename[startup-config]?

Building configuration...

[OK]

(3)配置Router2:

Router>enable

Router#configure terminal

Enter configuration commands,one per line.End with CNTL/Z.

Router(config)#interface FastEthernet0/0

Router(config-if)#ip address172.17.0.1255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED:Interface FastEthernet0/0,changed state to up

%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/0,changed state to up Router(config-if)#exit

Router(config)#interface Serial0/1/0

Router(config-if)#ip address192.168.0.2255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED:Interface Serial0/1/0,changed state to upno shutdown

%LINEPROTO-5-UPDOWN:Line protocol on Interface Serial0/1/0,changed state to up Router(config-if)#exit

Router(config)#interface Serial0/1/1

Router(config-if)#ip address192.168.1.1255.255.255.0

Router(config-if)#clock rate64000

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED:Interface Serial0/1/1,changed state to up

%LINEPROTO-5-UPDOWN:Line protocol on Interface Serial0/1/1,changed state to up Router(config-if)#router ospf1

Router(config-router)#network192.168.0.00.0.0.255area0

Router(config-router)#network192.168.1.00.0.0.255area0

Router(config-router)#network172.17.0.00.0.0.255area0

Router(config-router)#exit

Router(config)#exit

%SYS-5-CONFIG_I:Configured from console by console

Router#copy running-config startup-config

Destination filename[startup-config]?

Building configuration...

[OK]

Router#

00:13:29:%OSPF-5-ADJCHG:Process1,Nbr192.168.2.1on Serial0/1/1from LOADING to FULL,Loading Done

(4)配置Router3:

Router>enable

Router#configure terminal

Enter configuration commands,one per line.End with CNTL/Z.

Router(config)#interface FastEthernet0/0

Router(config-if)#ip address172.18.0.1255.255.255.0

Router(config-if)#no shutdown

%LINK-5-CHANGED:Interface FastEthernet0/0,changed state to up

%LINEPROTO-5-UPDOWN:Line protocol on Interface FastEthernet0/0,changed state to up Router(config-if)#exit

Router(config)#interface Serial0/1/0

Router(config-if)#ip address192.168.1.2255.255.255.0

Router(config-if)#

%LINK-5-CHANGED:Interface Serial0/1/0,changed state to upno shutdown

Router(config-if)#exit

Router(config)#interface Serial0/1/1

Router(config-if)#ip address192.168.2.1255.255.255.0

Router(config-if)#clock rate64000

Router(config-if)#no shutdown

Router(config-if)#

%LINK-5-CHANGED:Interface Serial0/1/1,changed state to up

Router(config-if)#exit

Router(config)#route ospf1

相关文档
最新文档