OSPF特殊区域的配置案例.docx

上传人:b****5 文档编号:7881683 上传时间:2023-01-26 格式:DOCX 页数:22 大小:120.04KB
下载 相关 举报
OSPF特殊区域的配置案例.docx_第1页
第1页 / 共22页
OSPF特殊区域的配置案例.docx_第2页
第2页 / 共22页
OSPF特殊区域的配置案例.docx_第3页
第3页 / 共22页
OSPF特殊区域的配置案例.docx_第4页
第4页 / 共22页
OSPF特殊区域的配置案例.docx_第5页
第5页 / 共22页
点击查看更多>>
下载资源
资源描述

OSPF特殊区域的配置案例.docx

《OSPF特殊区域的配置案例.docx》由会员分享,可在线阅读,更多相关《OSPF特殊区域的配置案例.docx(22页珍藏版)》请在冰豆网上搜索。

OSPF特殊区域的配置案例.docx

OSPF特殊区域的配置案例

上机报告

学号

专业

、级计科1101

课程

名称

路由交换技术

指导

教师

机房

名称

上机

日期

2013年10月14日

上机项目名称

上机步骤及内容:

一、实验目的

•掌Hbspf协议的stub区域配置方法

•掌Sospf协议的nssa区域配置方法

二、实验仪器设备和材料清单

器材:

路由器4台,交换机2台,导线若T

三、实验内容

•掌Hbspf协议的stub区域配置方法

•掌Sospf协议的nssa区域配置方法

四、实验步骤

任务一stub区域配置

30.0.02

4.4.4.4

图1.1实验拓扑图

配置stub区域

1、R1的配置代码

[R1]discu

#

version5.20,Release1808,Standard

#

sysnameR1

#

domaindefaultenablesystem

#

#

interfaceEthernet。

/。

portlink-moderoute

ipaddress192.168.2.1255.255.255.0#

interfaceEthernet0/0.1

vlan-typedot1qvid1

ipaddress202.168.0.1255.255.255.0#

interfaceEthernet0/0.2

vlan-typedot1qvid2

ipaddress202.168.1.1255.255.255.0

#

interfaceEthernet0/0.3

vlan-typedot1qvid3

ipaddress202.168.2.1255.255.255.0

#

interfaceEthernet0/0.4

vlan-typedot1qvid4

ipaddress202.168.3.1255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

ipaddress10.0.0.1255.255.255.0

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

#

interfaceNULL0

#

interfaceLoopBack0

ipaddress1.1.1.1255.255.255.255

#

ospf1router-id1.1.1.1

import-routedirect

area0.0.0.1

network10.0.0.00.0.0.255

network1.1.1.00.0.0.255

#

[R1]

2、R2的配置代码

[R2]discur

#

version5.20,Release1808,Standard

#

darp2psignature-filecfa0:

/p2p_default.mtd

#

port-securityenable

#

vlan1

#

domainsystem

#

interfaceAux0

asyncmodeflow

link-protocolppp

#

interfaceEthernet。

/。

portlink-moderoute

ipaddress10.0.0.2255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

ipaddress20.0.0.1255.255.255.0

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

#

interfaceNULL0

#

interfaceLoopBack0

ipaddress2.2.2.2255.255.255.255

#

ospf1router-id2.2.2.2

area0.0.0.0

network20.0.0.00.0.0.255

network2.2.2.00.0.0.255

area0.0.0.1

network10.0.0.00.0.0.255

#

[R2]

3、R3的配置代码

[R3]discur

#

#

interfaceEthernet0/0

portlink-moderoute

ipaddress20.0.0.2255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

ipaddress30.0.0.1255.255.255.0

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

#

interfaceNULL0

#

interfaceLoopBack0

ipaddress3.3.3.3255.255.255.255

#

ospf1router-id3.3.3.3

area0.0.0.0

network20.0.0.00.0.0.255

network3.3.3.00.0.0.255

area0.0.0.2

network30.0.0.00.0.0.255

stub

#

[R3]

4、R4的配置代码

[R4]discur

#

sysnameR4

#

interfaceEthernet。

/。

portlink-moderoute

ipaddress40.0.0.1255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

ipaddress30.0.0.2255.255.255.0

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

#

interfaceNULL0

#

interfaceLoopBack0

ipaddress4.4.4.4255.255.255.255

#

ospf1router-id4.4.4.4

area0.0.0.2

network30.0.0.00.0.0.255

network40.0.0.00.0.0.255

network4.4.4.00.0.0.255

stub

#

[R4]

5、查看R1中的路由表信息

[R1]di5iprouting-table

RoutingTables:

Public

Destinations:

21

Routes:

21

Dp^tination/Ma^k

Proto

Pre

Co^t

N^XtHop

Interface

1,1.1.1/32

Direct

9

0

127.0.0.1

InLoopD

2.2.2.2/32

OSPF

10

1

10.0.0.2

Ethfl/1

3.3.3.3/32

OSPF

10

2

18,0.0.2

EthB/1

4.4.4.V32

□SPF

10

3

10.0.0.2

Ethfl/1

10.0.9.3,2>i

nlrfrct

9

a

10.0.3.1

EthB/1

10.D.0.1/82

Direct

0

a

127.0.D.1

InLoapO

20.0.9.8/24

O£PF

10

2

18.0.0.2

Eth0/1

30.9.9.0/2U

□SPF

10

3

10.0.0.2

Ethfl/1

4土。

.。

・印/2天

□SPF

10

4

10.0.0.2

Etti财1

127.0.0.VS

Direct

9

0

127.0.0.1

InLoopO

127.0.0.1/32

Oirect

9

0

127.8.0.1

InLoopO

192.168.2.V24

Direct

a

a

192.168.2d

Ethfl/Ck

19Z.1&8.2.1/3Z

Direct

0

a

127.0.队1

InLoopO

202.168.0.0/24

Direct

0

0

202.16B.9.1

Ethva.1

202.148-0-1/32

Direct

0

0

12^.0.0.1

InLoopO

20Z.1&8.1,9/24

Direct

0

a

202,168.1.1

Ettl9/0.2

Z0Z.1&&.1.1/32

Direct

0

0

127.0.0.1

inLoopO

202.168.2-O/2U

Direct

0

0

202.168*2.1

Etna/a.3

202.148-2-1/32

Direct

0

0

12?

.0.0.1

InLoopO

20Z.168.3,8/24

Direct

0

a

ZDZ,168.3.1

Etria/a.4

20Z.1&8.3.1/32

Direct

0

0

127.0.0.1

InLoapO

[R1]

图1.2R1的路由信息

查看R4上面未配置和配置特殊区域对比:

[H4](lls05pfIsdb

OSPFProcess1withRouterIDLinkStateDatabase

Area:

0.0.O_2

Type

LinkStateID

AduRouter

Age

Len

Sequence

Metric

Router

9.3.3.3

3-3.3.3

7U

36

8皿皿H

0

Router

h-h.h.U

y

60

30000093

a

Netuork

38-0.0-1

3-9.3.3

70

95

800(10002

0

Sun-Het

20.0.0.1

333.3

276

28

80090001

1

Sun-Net

9.a.3.3

3,3.3.3

276

28

80000091

a

Sun-Het

2.2.2.2

3.3.3.3

276

2&

1

Sun-Het

10.0,0.9

3.333

276

2&

8航网

2

Sun-Het

1.1d.1

3*3*3■3

276

28

对网网01

2

Sun-ftsbr

1.1.1.1

3.3・3・3

277

28

8网知网1

2

ASExternalDatabase

Tgpp

LinkstateID

RdvRouter

Age

Len

Sequence

Metric

External

10.0.0.0

1.1.1.1

1291

36

8倾蛔2

1

External

192.168.2.0

1.1.1_1

1287

36

8顺皿2

1

External

202.168.2.0

1.1.1.1

1287

36

8^000002

1

External

202.168.3.0

1.1,1.1

1287

36

冏皿职

1

External

202.168.0,0

1,1.1.1

1287

36

80000092

1

External

202.168.1.0

1.1.1.1

1287

36

80000092

1

External

1_1.1.1

1.1.1.1

159B

36

8^900091

i

图1.3未配置时的状态

[R4]di5ospfisdb

O£PFProcess1uithRouterID4-4.4.-ULirkstateDataUasp

 

图1.4配置后的状态

任务二、配置totallystub区域

1、R3中的配置代码

#

ospf1

area0.0.0.1

network20.0.0.00.0.0.255

area0.0.0.2

network30.0.0.0.0.0.0.255

stubno-summary

#

2、R4中的配置代码

#

ospf1

area0.0.0.2

network30.0.0.00.0.0.255

network40.0.0.00.0.0.255

stubno-summary

#

3、R4的路由信息

[R4]disospfIsdb

OSPFProcess1withRouterIDLM.如也

LinkStateDatabase

Area:

6.0.0_2

Type

LinkstateID

AduRoute^r

Age

Lcn

Sequence

Metric

Router-

3.333

3.3.3.3

41

36

8UO0OGO4

0

Router

4G

60

0

Hetwork

30.O.fl.2

37

107

32

60000002

0

Sum-Net

0.0.0,0

3.3.3.3

28

BO0ODQO1

1

图3.1R1中的路由信息

任务2Nssa区域配置

202163O12620XM

2C21舶1.1R1

302,168.2,1

202.168.3.1

200-0-23,33.3

"邳XM艺皿,1684,

财2K.IMS.

202.I脚,&

202.16®.T.

 

 

图1.1实验拓扑图

一、ospf的配置

R1的代

注:

ospf的配置中,只有R1的配置代码不一样,所以只需要改写

码即可。

1、R1的配置代码

#

interfaceEthernet0/0

portlink-moderouteipaddress192.169.5.1255.255.255.0

#

interfaceEthernet0/0.1

vlan-typedot1qvid1

ipaddress192.169.6.1255.255.255.0

#

interfaceEthernet0/0.2

ipaddress192.169.7.1255.255.255.0

#

interfaceEthernet0/0.3

vlan-typedot1qvid3ipaddress192.169.8.1255.255.255.0

#

interfaceEthernet0/0.4

ipaddress192.169.9.1255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

#

interfaceSerial1/0

link-protocolppp

ipaddress10.0.3.2255.255.255.0

#

interfaceLoopBack0

ipaddress1.1.1.1255.255.255.255

#

ospf1

area0.0.0.2

network10.0.3.00.0.0.255

network192.169.5.00.0.0.255

network192.169.6.00.0.0.255

network192.169.7.00.0.0.255

network192.169.8.00.0.0.255

network192.169.9.00.0.0.255

#

2、R1的路由信息

RoutingTables:

Public

Destinations:

23Routes:

Cestinatlon/M^Ek

LLMZ32

10,0,1.0/24

U\020,24

00,3十0X34

10.0.3*1/32

10*0*3+2/32

127tCt0+0/9127,0.0.1/32192.165.0.0/24192.1694.0/24

1^2.169.2.0/24

192.169.3.0/24

152.169.4^/24

1^2.169.5.0/24

192.16^.5.1/32IK.169.6.07241^2.169.6.1/32192.16^.7.0/24

归2J的

192.169.8.0/24

132J豹.8*1/32

132J的抵q/24

192,169+9A/32

ProtoPreCost

Direct00

□SFF

□SFF

Direct

Direct

Direct

Direct

Direct

□SFF

□EPF

□SPF

□SFF

uSPF

Direct

Direct

Direct

Direct

Direct

Direct

Direct

Direct

Direct

Direct

23

NextHop

127.0t0+l10.0.3.10031

W,0t3t2

LO03.1127*001127.W

12兀OQJ10,0,3.1W.031w.o.iaLO03.1

0.3.1

192.169.5.1127.0Q*】

192.1^9*6.1

12兀OQJ

127*001

L92+169+e,l

127*001

152+lega

127*001

图2.1R1的路由信息

二、配置NSSA区域

R3上面的配置信息:

[R3]discur

#

version5.20,Release1808,Standard

#

interfaceEthernet。

/。

portlink-moderoute

ipaddress20.0.0.2255.255.255.0

#

interfaceEthernet0/1

portlink-moderouteipaddress30.0.0.1255.255.255.0

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

#

interfaceNULL0

#

interfaceLoopBack0

ipaddress3.3.3.3255.255.255.255

#

ospf1router-id3.3.3.3

area0.0.0.0

network20.0.0.00.0.0.255

network3.3.3.00.0.0.255

area0.0.0.2

network30.0.0.00.0.0.255nssadefault-route-advertise

#

return

[R3]

R4上面的配置信息:

[R4]discur

#

interfaceEthernet0/0.1vlan-typedot1qvid1ipaddress202.168.4.1255.255.255.0

#

interfaceEthernet0/0.2

vlan-typedotlqvid2

ipaddress202.168.5.1255.255.255.0

#

interfaceEthernet0/0.3

vlan-typedot1qvid3

ipaddress202.168.6.1255.255.255.0

#

interfaceEthernet0/0.4

vlan-typedot1qvid4

ipaddress202.168.7.1255.255.255.0

#

interfaceEthernet0/1

portlink-moderoute

ipaddress30.0.0.2255.255.255.0

#

interfaceSerial1/0

link-protocolppp

#

interfaceSerial2/0

link-protocolppp

#

interfaceNULL0

#

interfaceLoopBack0

ipaddress4.4.4.4255.255.255.255

#

ospf1router-id4.4.4.4import-routedirectarea0.0.0.2

network30.0.0.00.0.0.255

network4.4.4.00.0.0.255

nssa

#

return

[R4]

R4上面的特殊区域LSDB链路状态数据库

[叫]

[RJi]disospfIsdb

OSPFProcess1

枇thRouterID

LinkStateDatabase

Area:

0.@.6.2

1卯£

LinKStateID

AdvRouterAge

Len

Sequence

Metric

Router

3b3■3h3

3.3.3.3220

80000094

a

Router

4.LL4219

48

8岫理眄

o

Network

30.0,0.2

4.4,4.4218

32

8皿。

0

Sum-Net

20.0.0.0

3.3.3.3276

28

80000091

1

sum-Net

3.3.3.3

3.3-3.3276

28

sooouoai

0

Sum-Het

2.2*2.2

3.3.3.3276

28

89000001

1

Sum-Net

18.S.D.D

3.3.3.327。

28

S0000001

2

Sum-Net

1.1.1.1

3.3-3.3276

28

80900091

2

NSSri

202.1^8.6.0

4.4.4.426A

36

90000001

1

HSSA

202.1^8.7.0

11.4,4.4264

36

89090001

1

NSSA

LL4网

4・L4.4204

36

90000001

1

NMM

2D2.168.4.0

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

当前位置:首页 > 工程科技 > 冶金矿山地质

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

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