ospf路由配置.docx

上传人:b****3 文档编号:11086658 上传时间:2023-05-29 格式:DOCX 页数:27 大小:594.75KB
下载 相关 举报
ospf路由配置.docx_第1页
第1页 / 共27页
ospf路由配置.docx_第2页
第2页 / 共27页
ospf路由配置.docx_第3页
第3页 / 共27页
ospf路由配置.docx_第4页
第4页 / 共27页
ospf路由配置.docx_第5页
第5页 / 共27页
ospf路由配置.docx_第6页
第6页 / 共27页
ospf路由配置.docx_第7页
第7页 / 共27页
ospf路由配置.docx_第8页
第8页 / 共27页
ospf路由配置.docx_第9页
第9页 / 共27页
ospf路由配置.docx_第10页
第10页 / 共27页
ospf路由配置.docx_第11页
第11页 / 共27页
ospf路由配置.docx_第12页
第12页 / 共27页
ospf路由配置.docx_第13页
第13页 / 共27页
ospf路由配置.docx_第14页
第14页 / 共27页
ospf路由配置.docx_第15页
第15页 / 共27页
ospf路由配置.docx_第16页
第16页 / 共27页
ospf路由配置.docx_第17页
第17页 / 共27页
ospf路由配置.docx_第18页
第18页 / 共27页
ospf路由配置.docx_第19页
第19页 / 共27页
ospf路由配置.docx_第20页
第20页 / 共27页
亲,该文档总共27页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

ospf路由配置.docx

《ospf路由配置.docx》由会员分享,可在线阅读,更多相关《ospf路由配置.docx(27页珍藏版)》请在冰点文库上搜索。

ospf路由配置.docx

ospf路由配置

OSPF路由的配置

1.OSPF路由的具体配置拓扑图

其中

Router0

Router1

Router2

Router3

Router4

2.配置过程

⑴准备工作

先配置Router0,Router1,Router2,Router3和Router4的基本信息,注意Router4作为DCE提供时钟频率

Router0

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostrouter0

router0(config)#intf0/0

router0(config-if)#ipadd192.168.1.2255.255.255.0

router0(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

router0(config-if)#intf0/1

router0(config-if)#ipadd192.168.10.1255.255.255.0

router0(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/1,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/1,changedstatetoup

router0(config-if)#end

router0#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router0#copyrunstart

Destinationfilename[startup-config]?

?

Badfilename

%Errorparsingfilename(Badfilenumber)

router0#

Router1

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#host1

^

%Invalidinputdetectedat'^'marker.

Router(config)#hostrouter1

router1(config)#intf0/0

router1(config-if)#ipadd192.168.20.1255.255.255.0

router1(config-if)#noshut

router1(config-if)#

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

router1(config-if)#intf0/1

router1(config-if)#ipadd192.168.2.2255.255.255.0

router1(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/1,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/1,changedstatetoup

router1(config-if)#end

router1#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router1#copyrunstart

Destinationfilename[startup-config]?

 

Router2

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostrouter2

router2(config)#intf0/0

router2(config-if)#ipadd192.168.30.1255.255.255.0

router2(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

router2(config-if)#ints0/0

router2(config-if)#ipadd192.168.3.2255.255.255.0

router2(config-if)#noshut

router2(config-if)#

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetoup

router2(config-if)#end

router2#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router2#copy

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/0,changedstatetoup

ru

%Incompletecommand.

router2#

router2#copyrunstart

Destinationfilename[startup-config]?

Router3

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostrouter3

router3(config)#intf0/0

router3(config-if)#ipadd192.168.40.1255.255.255.0

router3(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

router3(config-if)#ints0/0

router3(config-if)#ipadd192.168.4.2255.255.255.0

router3(config-if)#nomshut

^

%Invalidinputdetectedat'^'marker.

router3(config-if)#noshut

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetoup

router3(config-if)#end

router3#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router3#copyrunstar

%LINEPROTO-5-UPDOWN:

LineprotocolonInterfaceSerial0/0,changedstatetoup

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

router3#copyrunstart

Destinationfilename[startup-config]?

 

Router4

Router>en

Router#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

Router(config)#hostrouter4

router4(config)#intf0/0

router4(config-if)#ipadd192.168.1.1255.255.255.0

router4(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/0,changedstatetoup

router4(config-if)#intf0/1

router4(config-if)#ipadd192.168.2.1255.255.255.0

router4(config-if)#noshut

%LINK-5-CHANGED:

InterfaceFastEthernet0/1,changedstatetoup

router4(config-if)#ints0/0

router4(config-if)#ipadd192.168.3.1255.255.255.0

router4(config-if)#clockrate56000

router4(config-if)#noshut

%LINK-5-CHANGED:

InterfaceSerial0/0,changedstatetodown

router4(config-if)#ints0/1

router4(config-if)#ipadd192.168.4.1255.255.255.0

router4(config-if)#clockrate56000

router4(config-if)#noshut

%LINK-5-CHANGED:

InterfaceSerial0/1,changedstatetodown

router4(config-if)#end

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router4#

router4#copyrunstart

Destinationfilename[startup-config]?

再分别配置PC0、PC1、PC2和PC3的基本信息

PC0

PC1

 

PC2

PC3

(2)配置OSPF路由并验证

Router0:

router0#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

router0(config)#routerospf10

router0(config-router)#net

%Incompletecommand.

router0(config-router)#net192.168.1.00.0.0.255area0

router0(config-router)#net192.168.10.00.0.0.255area0

router0(config-router)#end

router0#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router0#copy

00:

22:

16:

%OSPF-5-ADJCHG:

Process10,Nbr192.168.4.1onFastEthernet0/0fromLOADINGtoFULL,LoadingDone

%Incompletecommand.

router0#copyrunstart

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

router0#shiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

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

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

C192.168.1.0/24isdirectlyconnected,FastEthernet0/0

O192.168.2.0/24[110/2]via192.168.1.1,00:

00:

09,FastEthernet0/0

O192.168.3.0/24[110/65]via192.168.1.1,00:

00:

09,FastEthernet0/0

O192.168.4.0/24[110/65]via192.168.1.1,00:

00:

09,FastEthernet0/0

C192.168.10.0/24isdirectlyconnected,FastEthernet0/1

router0#

router0#

router0#shipospf

RoutingProcess"ospf10"withID192.168.10.1

SupportsonlysingleTOS(TOS0)routes

SupportsopaqueLSA

SPFscheduledelay5secs,HoldtimebetweentwoSPFs10secs

MinimumLSAinterval5secs.MinimumLSAarrival1secs

NumberofexternalLSA0.ChecksumSum0x000000

NumberofopaqueASLSA0.ChecksumSum0x000000

NumberofDCbitlessexternalandopaqueASLSA0

NumberofDoNotAgeexternalandopaqueASLSA0

Numberofareasinthisrouteris1.1normal0stub0nssa

Externalfloodlistlength0

AreaBACKBONE(0)

Numberofinterfacesinthisareais2

Areahasnoauthentication

SPFalgorithmexecuted3times

Arearangesare

NumberofLSA3.ChecksumSum0x011899

NumberofopaquelinkLSA0.ChecksumSum0x000000

NumberofDCbitlessLSA0

NumberofindicationLSA0

NumberofDoNotAgeLSA0

Floodlistlength0

Router1:

router1#

router1#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

router1(config)#

router1(config)#routerospf10

router1(config-router)#net192.168.2.00.0.0.255area0

router1(config-router)#net192.168.20.00.0.0.255area0

router1(config-router)#end

00:

23:

06:

%OSPF-5-ADJCHG:

Process10,Nbr192.168.4.1onFastEthernet0/1fromLOADINGtoFULL,LoadingDone

router1#

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

router1#copyrunstart

Destinationfilename[startup-config]?

Buildingconfiguration...

[OK]

router1#shiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

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

*-candidatedefault,U-per-userstaticroute,o-ODR

P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

O192.168.1.0/24[110/2]via192.168.2.1,00:

00:

13,FastEthernet0/1

C192.168.2.0/24isdirectlyconnected,FastEthernet0/1

O192.168.3.0/24[110/65]via192.168.2.1,00:

00:

13,FastEthernet0/1

O192.168.4.0/24[110/65]via192.168.2.1,00:

00:

13,FastEthernet0/1

O192.168.10.0/24[110/3]via192.168.2.1,00:

00:

13,FastEthernet0/1

C192.168.20.0/24isdirectlyconnected,FastEthernet0/0

router1#

router1#shipospf

RoutingProcess"ospf10"withID192.168.20.1

SupportsonlysingleTOS(TOS0)routes

SupportsopaqueLSA

SPFscheduledelay5secs,HoldtimebetweentwoSPFs10secs

MinimumLSAinterval5secs.MinimumLSAarrival1secs

NumberofexternalLSA0.ChecksumSum0x000000

NumberofopaqueASLSA0.ChecksumSum0x000000

NumberofDCbitlessexternalandopaqueASLSA0

NumberofDoNotAgeexternalandopaqueASLSA0

Numberofareasinthisrouteris1.1normal0stub0nssa

Externalfloodlistlength0

AreaBACKBONE(0)

Numberofinterfacesinthisareais2

Areahasnoauthentication

SPFalgorithmexecuted2times

Arearangesare

NumberofLSA5.ChecksumSum0x02c062

NumberofopaquelinkLSA0.ChecksumSum0x000000

NumberofDCbitlessLSA0

NumberofindicationLSA0

NumberofDoNotAgeLSA0

Floodlistlength0

Router2:

router2#

router2#

router2#conft

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

router2(config)#routerospf10

router2(config-router)#net192.168.3.00.0.0.255area0

router2(config-router)#net192.168.3.00.0.0.255area0

00:

23:

57:

%OSPF-5-ADJCHG:

Process10,Nbr192.168.4.1onSerial0/0fromLOADINGtoFULL,LoadingDone

router2(config-router)#net192.168.30.00.0.0.

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

当前位置:首页 > 小学教育 > 语文

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2