实验 OSPF单区域配置.docx

上传人:b****6 文档编号:6291071 上传时间:2023-01-05 格式:DOCX 页数:10 大小:126.81KB
下载 相关 举报
实验 OSPF单区域配置.docx_第1页
第1页 / 共10页
实验 OSPF单区域配置.docx_第2页
第2页 / 共10页
实验 OSPF单区域配置.docx_第3页
第3页 / 共10页
实验 OSPF单区域配置.docx_第4页
第4页 / 共10页
实验 OSPF单区域配置.docx_第5页
第5页 / 共10页
点击查看更多>>
下载资源
资源描述

实验 OSPF单区域配置.docx

《实验 OSPF单区域配置.docx》由会员分享,可在线阅读,更多相关《实验 OSPF单区域配置.docx(10页珍藏版)》请在冰豆网上搜索。

实验 OSPF单区域配置.docx

实验OSPF单区域配置

实验OSPF单区域配置

【实验名称】

配置OSPF单区域

【实验目的】

配置OSPF单区域实验,实现简单的OSPF配置。

【背景描述】

拓扑图中有三台路由器,共有五个网段,并且是无类的子网。

【需求分析】

在本拓扑图中使用OSPF路由协议学习路由信息,并且使用的是单区域,所有的路由器都在区域0中。

【实验拓扑】

图8-2实验拓扑图

【实验设备】

路由器3台

【预备知识】

路由器基本配置知识、OSPF

【实验原理】

在路由器上启用OSFP进程,使用所有的路由信息通过OSFP路由协议传递。

【实验步骤】

第一步:

在路由器上配置IP地址

RA#configt

RA(config)#interfaceFastEthernet0/0

RA(config-if)#ipaddress192.168.20.1255.255.255.252

RA(config)#interfaceLoopback0

RA(config-if)#ipaddress192.168.30.9255.255.255.248

RB#configt

RB(config)#interfaceFastEthernet0/0

RB(config-if)#ipaddress192.168.20.2255.255.255.252

RB(config)#interfaceFastEthernet0/1

RB(config-if)#ipaddress192.168.10.1255.255.255.224

RC#configt

RC(config)#interfaceFastEthernet0/0

RC(config-if)#ipaddress192.168.10.2255.255.255.224

RC(config)#interfaceLoopback0

RC(config-if)#ipaddress192.168.10.33255.255.255.240

RC(config)#interfaceLoopback1

RC(config-if)#ipaddress192.168.10.65255.255.255.192

第二步:

配置OSPF

RA(config)#routerospf10

RA(config-router)#network192.168.30.80.0.0.7area0

RA(config-router)#network192.168.20.00.0.0.3area0

RB(config)#routerospf10

RB(config-router)#network192.168.10.00.0.0.31area0

RB(config-router)#network192.168.20.00.0.0.3area0

RC(config)#routerospf10

RC(config-router)#network192.168.10.00.0.0.31area0

RC(config-router)#network192.168.10.320.0.0.15area0

RC(config-router)#network192.168.10.640.0.0.63area0

第三步:

验证测试

RA#showipinterfacebrief

InterfaceIP-Address(Pri)OK?

Status

FastEthernet0/0192.168.20.1/30YESUP

FastEthernet0/1noaddressYESDOWN

Loopback0192.168.30.9/29YESUP

RB#showipinterfacebrief

InterfaceIP-Address(Pri)OK?

Status

FastEthernet0/0192.168.20.2/30YESUP

FastEthernet0/1192.168.10.1/27YESUP

RC#showipinterfacebrief

InterfaceIP-Address(Pri)OK?

Status

FastEthernet0/0192.168.10.2/27YESUP

FastEthernet0/1noaddressYESDOWN

Loopback0192.168.10.33/28YESUP

Loopback1192.168.10.65/26YESUP

用命令showiproute和shipospfneighbor来验证配置

RA#shiproute

Codes:

C-connected,S-static,R-RIPB-BGP

O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault

Gatewayoflastresortisnoset

O192.168.10.0/27[110/2]via192.168.20.2,00:

01:

32,FastEthernet0/0

C192.168.30.8/29isdirectlyconnected,Loopback0

C192.168.30.9/32islocalhost.

O192.168.10.33/32[110/2]via192.168.20.2,00:

01:

32,FastEthernet0/0

O192.168.10.65/32[110/2]via192.168.20.2,00:

01:

32,FastEthernet0/0

C192.168.20.0/30isdirectlyconnected,FastEthernet0/0

C192.168.20.1/32islocalhost.

RB#showiproute

Codes:

C-connected,S-static,R-RIPB-BGP

O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault

Gatewayoflastresortisnoset

C192.168.10.0/27isdirectlyconnected,FastEthernet0/1

C192.168.10.1/32islocalhost.

O192.168.10.33/32[110/1]via192.168.10.2,00:

02:

25,FastEthernet0/1

O192.168.10.65/32[110/1]via192.168.10.2,00:

02:

14,FastEthernet0/1

C192.168.20.0/30isdirectlyconnected,FastEthernet0/0

C192.168.20.2/32islocalhost.

O192.168.30.9/32[110/1]via192.168.20.1,00:

05:

16,FastEthernet0/0

RC#showiproute

Codes:

C-connected,S-static,R-RIPB-BGP

O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault

Gatewayoflastresortisnoset

C192.168.10.0/27isdirectlyconnected,FastEthernet0/0

C192.168.10.2/32islocalhost.

C192.168.10.32/28isdirectlyconnected,Loopback0

C192.168.10.33/32islocalhost.

C192.168.10.64/26isdirectlyconnected,Loopback1

C192.168.10.65/32islocalhost.

O192.168.20.0/30[110/2]via192.168.10.1,00:

01:

23,FastEthernet0/0

O192.168.30.9/32[110/2]via192.168.10.1,00:

01:

23,FastEthernet0/0

RB#showipospfneighbor

OSPFprocess1:

NeighborIDPriStateDeadTimeAddressInterface

192.168.10.651Full/BDR00:

00:

38192.168.10.2FastEthernet0/1

192.168.30.91Full/DR00:

00:

33192.168.20.1FastEthernet0/0

RB#showipospfneighbordetail

Neighbor192.168.10.65,interfaceaddress192.168.10.2

Inthearea0.0.0.0viainterfaceFastEthernet0/1

Neighborpriorityis1,StateisFull,5statechanges

DRis192.168.10.1,BDRis192.168.10.2

Optionsis0x42(*|O|-|-|-|-|E|-)

Deadtimerduein00:

00:

37

Neighborisupfor00:

04:

33

DatabaseSummaryList0

LinkStateRequestList0

LinkStateRetransmissionList0

CryptSequenceNumberis0

ThreadInactivityTimeron

ThreadDatabaseDescriptionRetransmissionoff

ThreadLinkStateRequestRetransmissionoff

ThreadLinkStateUpdateRetransmissionoff

Neighbor192.168.30.9,interfaceaddress192.168.20.1

Inthearea0.0.0.0viainterfaceFastEthernet0/0

Neighborpriorityis1,StateisFull,6statechanges

DRis192.168.20.1,BDRis192.168.20.2

Optionsis0x42(*|O|-|-|-|-|E|-)

Deadtimerduein00:

00:

30

Neighborisupfor00:

07:

50

DatabaseSummaryList0

LinkStateRequestList0

LinkStateRetransmissionList0

CryptSequenceNumberis0

ThreadInactivityTimeron

ThreadDatabaseDescriptionRetransmissionoff

ThreadLinkStateRequestRetransmissionoff

ThreadLinkStateUpdateRetransmissionoff

【备注事项】

在做本实验前,注意子网掩码的换算。

【参考配置】

RA#showrunning-config

Buildingconfiguration...

Currentconfiguration:

587bytes

!

versionRGNOS10.1.00(4),Release(18443)(TueJul1720:

50:

30CST2007-ubu1server)

hostnameRA

!

interfaceFastEthernet0/0

ipaddress192.168.20.1255.255.255.252

duplexauto

speedauto

!

interfaceFastEthernet0/1

duplexauto

speedauto

!

interfaceLoopback0

ipaddress192.168.30.9255.255.255.248

!

routerospf1

network192.168.20.00.0.0.3area0

network192.168.30.80.0.0.7area0

!

linecon0

lineaux0

linevty04

login

!

end

RB#showrunning-config

Buildingconfiguration...

Currentconfiguration:

563bytes

!

versionRGNOS10.1.00(4),Release(18443)(TueJul1720:

50:

30CST2007-ubu1server)

hostnameRB

!

interfaceFastEthernet0/0

ipaddress192.168.20.2255.255.255.252

duplexauto

speedauto

!

interfaceFastEthernet0/1

ipaddress192.168.10.1255.255.255.224

duplexauto

speedauto

!

routerospf1

network192.168.10.00.0.0.31area0

network192.168.20.00.0.0.3area0

!

linecon0

lineaux0

linevty04

login

!

end

RC#showrunning-config

Buildingconfiguration...

Currentconfiguration:

699bytes

!

versionRGNOS10.1.00(4),Release(18443)(TueJul1720:

50:

30CST2007-ubu1server)

hostnameRC

!

interfaceFastEthernet0/0

ipaddress192.168.10.2255.255.255.224

duplexauto

speedauto

!

interfaceFastEthernet0/1

duplexauto

speedauto

!

interfaceLoopback0

ipaddress192.168.10.33255.255.255.240

!

interfaceLoopback1

ipaddress192.168.10.65255.255.255.192

!

routerospf1

network192.168.10.00.0.0.31area0

network192.168.10.320.0.0.15area0

network192.168.10.640.0.0.63area0

!

linecon0

lineaux0

linevty04

login

!

end

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 表格模板 > 合同协议

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1