ospf配置笔记.docx

上传人:b****6 文档编号:5626554 上传时间:2022-12-29 格式:DOCX 页数:17 大小:21.74KB
下载 相关 举报
ospf配置笔记.docx_第1页
第1页 / 共17页
ospf配置笔记.docx_第2页
第2页 / 共17页
ospf配置笔记.docx_第3页
第3页 / 共17页
ospf配置笔记.docx_第4页
第4页 / 共17页
ospf配置笔记.docx_第5页
第5页 / 共17页
点击查看更多>>
下载资源
资源描述

ospf配置笔记.docx

《ospf配置笔记.docx》由会员分享,可在线阅读,更多相关《ospf配置笔记.docx(17页珍藏版)》请在冰豆网上搜索。

ospf配置笔记.docx

ospf配置笔记

NBMA环境

R3配置

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

r3(config)#routerospf1

*Mar100:

19:

59.083:

%OSPF-5-ADJCHG:

Process100,Nbr8.8.8.6onSerial1/1fromLOADINGtoFULL,LoadingDone

r3(config-router)#net

r3(config-router)#network8.8.8.30.0.0.0are

r3(config-router)#network8.8.8.30.0.0.0area0

r3(config-router)#^Z

r3#

*Mar100:

20:

33.067:

%SYS-5-CONFIG_I:

Configuredfromconsolebyconsole

r3#

r3#

r3#

r3#shipospfnei

NeighborIDPriStateDeadTimeAddressInterface

8.8.8.51FULL/DROTHER00:

01:

514.4.4.2Serial1/1

8.8.8.61FULL/DR00:

01:

464.4.4.3Serial1/1

r3#shrun

Buildingconfiguration...

hostnamer3

interfaceLoopback0

ipaddress8.8.8.3255.255.255.255

interfaceSerial1/1

ipaddress4.4.4.1255.255.255.0

encapsulationframe-relay

serialrestart-delay0

routerospf100

log-adjacency-changes

network4.4.4.10.0.0.0area1

neighbor4.4.4.2priority1

neighbor4.4.4.3priority1

!

routerospf1

log-adjacency-changes

network8.8.8.30.0.0.0area0

!

R5配置

Router#shrun

Buildingconfiguration...

hostnameRouter

interfaceLoopback0

ipaddress8.8.8.5255.255.255.255

!

interfaceSerial1/1

ipaddress4.4.4.2255.255.255.0

encapsulationframe-relay

serialrestart-delay0

!

routerospf100

log-adjacency-changes

network4.4.4.20.0.0.0area1

network8.8.8.50.0.0.0area1

!

r6配置

Router#shrun

Buildingconfiguration...

hostnameRouter

interfaceLoopback0

ipaddress8.8.8.6255.255.255.255

interfaceSerial1/1

ipaddress4.4.4.3255.255.255.0

encapsulationframe-relay

serialrestart-delay0

routerospf100

log-adjacency-changes

network4.4.4.30.0.0.0area1

network8.8.8.60.0.0.0area1

配置OSPF网络类型非广播

r3#shipospfnei

NeighborIDPriStateDeadTimeAddressInterface

8.8.8.51FULL/DROTHER00:

01:

524.4.4.2Serial1/1

8.8.8.61FULL/DR00:

01:

444.4.4.3Serial1/1

可能是r3比较早开启,所以作为DR。

R5和r6配上frame-relaymapip4.4.4.3100broadcast和frame-relaymapip4.4.4.3200broadcast后才能ping通

在一个自治area中,没有area0依然能通信。

竞选DR:

让r5和r6的优先级为0,丧失竞选:

r5(config)#ints1/1

r5(config-if)#ipospfp

r5(config-if)#ipospfpriority0

r6(config)#ints1/1

r6(config-if)#ipospfp

r6(config-if)#ipospfpriority0

在三台路由器上运行

clearipospfprocess

r3#shipospfnei

NeighborIDPriStateDeadTimeAddressInterface

8.8.8.502WAY/DROTHER00:

01:

134.4.4.2Serial1/1

8.8.8.602WAY/DROTHER00:

01:

384.4.4.3Serial1/1

配置OSPF网络类型点到多点

r3(config)#ints1/1

r3(config-if)#ipospfnetworkpoint-to-multipoint

r5(config)#ints1/1

r5(config-if)#ipospfnetworkpoint-to-multipoint

r5(config-if)#noipospfpriority0

r6(config)#ints1/1

r6(config-if)#ipospfnetworkpoint-to-multipoint

r6(config-if)#noipospfpriority0

r3#shipospfnei

NeighborIDPriStateDeadTimeAddressInterface

8.8.8.61FULL/-00:

01:

314.4.4.3Serial1/1

8.8.8.51FULL/-00:

01:

434.4.4.2Serial1/1

r5#shipospfnei

NeighborIDPriStateDeadTimeAddressInterface

8.8.8.30FULL/-00:

01:

404.4.4.1Serial1/1

r6#shipospfnei

NeighborIDPriStateDeadTimeAddressInterface

8.8.8.30FULL/-00:

01:

444.4.4.1Serial1/1

r6#ping8.8.8.5

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto8.8.8.5,timeoutis2seconds:

!

!

!

!

!

为什么8.8.8.3优先级为0?

配置汇总(使用设备:

r5,r6,r3,r4,switch)

Router(config)#hostnamer4

r4(config)#ints1/0

r4(config-if)#ipadd

r4(config-if)#ipaddress3.3.3.2255.255.255.0

r4(config-if)#noshut

r4(config)#intloopback0

r4(config-if)#ipadd

r4(config-if)#ipaddress8.8.8.4255.255.255.255

r4(config-if)#exit

r4(config)#ospf

r4(config)#routerospf100

r4(config-router)#net

r4(config-router)#network3.3.3.20.0.0.0are

r4(config-router)#network3.3.3.20.0.0.0area0

r4(config-router)#net

r4(config-router)#network8.8.8.40.0.0.0area0

 

r3(config)#ints1/0

r3(config-if)#ipadd

r3(config-if)#ipaddress3.3.3.1255.255.255.0

r3(config-if)#noshut

r3(config-router)#network3.3.3.10.0.0.0area0

r3#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

3.0.0.0/24issubnetted,1subnets

C3.3.3.0isdirectlyconnected,Serial1/0

4.0.0.0/8isvariablysubnetted,3subnets,2masks

C4.4.4.0/24isdirectlyconnected,Serial1/1

O4.4.4.2/32[110/64]via4.4.4.2,00:

16:

24,Serial1/1

O4.4.4.3/32[110/64]via4.4.4.3,00:

16:

24,Serial1/1

8.0.0.0/32issubnetted,4subnets

C8.8.8.3isdirectlyconnected,Loopback0

O8.8.8.4[110/65]via3.3.3.2,00:

05:

16,Serial1/0

O8.8.8.5[110/65]via4.4.4.2,00:

16:

24,Serial1/1

O8.8.8.6[110/65]via4.4.4.3,00:

16:

24,Serial1/1

 

r4#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

3.0.0.0/24issubnetted,1subnets

C3.3.3.0isdirectlyconnected,Serial1/0

4.0.0.0/32issubnetted,3subnets

OIA4.4.4.1[110/64]via3.3.3.1,00:

01:

00,Serial1/0

OIA4.4.4.2[110/128]via3.3.3.1,00:

01:

00,Serial1/0

OIA4.4.4.3[110/128]via3.3.3.1,00:

01:

00,Serial1/0

8.0.0.0/32issubnetted,4subnets

O8.8.8.3[110/65]via3.3.3.1,00:

01:

00,Serial1/0

C8.8.8.4isdirectlyconnected,Loopback0

OIA8.8.8.5[110/129]via3.3.3.1,00:

01:

00,Serial1/0

OIA8.8.8.6[110/129]via3.3.3.1,00:

01:

00,Serial1/0

 

r5#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

3.0.0.0/24issubnetted,1subnets

OIA3.3.3.0[110/128]via4.4.4.1,00:

00:

15,Serial1/1

4.0.0.0/8isvariablysubnetted,3subnets,2masks

C4.4.4.0/24isdirectlyconnected,Serial1/1

O4.4.4.1/32[110/64]via4.4.4.1,00:

11:

13,Serial1/1

O4.4.4.3/32[110/128]via4.4.4.1,00:

11:

13,Serial1/1

8.0.0.0/32issubnetted,4subnets

OIA8.8.8.3[110/65]via4.4.4.1,00:

11:

13,Serial1/1

OIA8.8.8.4[110/129]via4.4.4.1,00:

00:

05,Serial1/1

C8.8.8.5isdirectlyconnected,Loopback0

O8.8.8.6[110/129]via4.4.4.1,00:

11:

13,Serial1/1

在r3上做汇总:

r3(config)#routerospf100

r3(config-router)#area1ra

r3(config-router)#area1range4.4.4.0255.255.255.248

r3(config-router)#area0range3.3.3.0255.255.255.252

r4#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

3.0.0.0/24issubnetted,1subnets

C3.3.3.0isdirectlyconnected,Serial1/0

4.0.0.0/29issubnetted,1subnets

OIA4.4.4.0[110/64]via3.3.3.1,00:

00:

55,Serial1/0

8.0.0.0/32issubnetted,4subnets

O8.8.8.3[110/65]via3.3.3.1,00:

09:

57,Serial1/0

C8.8.8.4isdirectlyconnected,Loopback0

OIA8.8.8.5[110/129]via3.3.3.1,00:

09:

57,Serial1/0

OIA8.8.8.6[110/129]via3.3.3.1,00:

09:

57,Serial1/0

 

r5#shiproute

Codes:

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

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

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

i-IS-IS,su-IS-ISsummary,L1-IS-ISlevel-1,L2-IS-ISlevel-2

ia-IS-ISinterarea,*-candidatedefault,U-per-userstaticroute

o-ODR,P-periodicdownloadedstaticroute

Gatewayoflastresortisnotset

3.0.0.0/24issubnetted,1subnets

OIA3.3.3.0[110/128]via4.4.4.1,00:

12:

16,Serial1/1

4.0.0.0/8isvariablysubnetted,3subnets,2masks

C4.4.4.0/24isdirectlyconnected,Serial1/1

O4.4.4.1/32[110/64]via4.4.4.1,00:

23:

13,Serial1/1

O4.4.4.3/32[110/128]via4.4.4.1,00:

23:

13,Serial1/1

8.0.0.0/32issubnetted,4subnets

OIA8.8.8.3[110/65]via4.4.4.1,00:

23:

13,Serial1/1

OIA8.8.8.4[110/129]via4.4.4.1,00:

12:

06,Serial1/1

C8.8.8.5isdirectlyconnected,Loopback0

O8.8.8.6[110/129]via4.4.4.1,00:

23:

13,Serial1/1

R5#shipospfdatabase

OSPFRouterwithID(8.8.8.5)(ProcessID100)

RouterLinkStates(Area1)

LinkIDADVRouterAgeSeq#ChecksumLinkcount

8.8.8.38.8.8.315550x800000070x0053A33

8.8.8.58.8.8.516950x800000080x0041FC3

8.8.8.68.8.8.616700x800000020x0083BB3

SummaryNetLinkStates(Area1)

LinkIDADVRouterAgeSeq#Checksum

3.3.3.08.8.8.38930x800000010x00CC0C

8.8.8.38.8.8.315500x800000010x008184

8.8.8.48.8.8.38830x800000010x00F9CA

r3#shipospfdatabase

OSPFRouterwithID(8.8.8.3)(ProcessID100)

RouterLinkStates(Area0)

LinkIDADVRouterAgeSeq#ChecksumLinkcount

8.8.8.38.8.8.39700x800000030x00729D3

8.8.8.48.8.8.49700x800000040x

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

当前位置:首页 > 经管营销 > 经济市场

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

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