ospf多区域中nssa默认路由的设置.docx

上传人:b****0 文档编号:9752146 上传时间:2023-05-21 格式:DOCX 页数:8 大小:45.67KB
下载 相关 举报
ospf多区域中nssa默认路由的设置.docx_第1页
第1页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第2页
第2页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第3页
第3页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第4页
第4页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第5页
第5页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第6页
第6页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第7页
第7页 / 共8页
ospf多区域中nssa默认路由的设置.docx_第8页
第8页 / 共8页
亲,该文档总共8页,全部预览完了,如果喜欢就下载吧!
下载资源
资源描述

ospf多区域中nssa默认路由的设置.docx

《ospf多区域中nssa默认路由的设置.docx》由会员分享,可在线阅读,更多相关《ospf多区域中nssa默认路由的设置.docx(8页珍藏版)》请在冰点文库上搜索。

ospf多区域中nssa默认路由的设置.docx

ospf多区域中nssa默认路由的设置

实验报告

实验目的:

通过本实验实现完全nssa区域,和实现默认路由的方法。

第一步:

配置路由器ip地址

Router1上的设置

R1(config)#interfaces0/0

R1(config-if)#ipadd192.168.1.1255.255.255.0

R1(config)#interfaceloopback0

R1(config-if)#ipadd1.1.1.1255.255.255.0

Router2-router4同理

第二步:

启用路由协议

Router1(asbr路由器,将loopback口重分布进OSPF协议)-router2启用OSPF协议,router4启用rip协议,router3启用OSPF和rip协议(asbr路由器)

Router1上的设置

R1(config)#routerospf1

R1(config-router)#network192.168.1.00.0.0.255area1

R1(config)#routerospf1

R1(config-router)#redistributeconnectedsubnets

R1(config-router)#area1nssa

Router2上的设置

R2(config)#routerospf1

R2(config-router)#network192.168.1.00.0.0.255area1

R2(config-router)#network192.168.2.00.0.0.255area0

R2(config-router)#network2.2.2.00.0.0.255area0

R2(config-router)#area1nssa

Router3上的设置

R3(config)#routerospf1

R3(config-router)#network192.168.2.00.0.0.255area0

R3(config-router)#network3.3.3.00.0.0.255area0

R3(config)#routerrip

R3(config-router)#version2

R3(config-router)#network192.168.3.0

R3(config-router)#noauto-summary

Router4上的设置

R4(config)#routerrip

R4(config-router)#version2

R4(config-router)#network192.168.3.0

R4(config-router)#network4.4.4.0

R4(config-router)#noauto-summary

第三步:

设置路由重分布(在router3上设置)

R3(config)#routerrip

R3(config-router)#redistributeospf1metric2

R3(config)#routerospf1

R3(config-router)#redistributeripsubnetsmetric1000

第四步:

查看路由表

Router1上的路由表

R1#showiproute

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

1.0.0.0/24issubnetted,1subnets

C1.1.1.0isdirectlyconnected,Loopback0

2.0.0.0/32issubnetted,1subnets

OIA2.2.2.2[110/65]via192.168.1.2,00:

01:

38,Serial0/0

3.0.0.0/32issubnetted,1subnets

OIA3.3.3.3[110/129]via192.168.1.2,00:

01:

38,Serial0/0

C192.168.1.0/24isdirectlyconnected,Serial0/0

OIA192.168.2.0/24[110/128]via192.168.1.2,00:

01:

38,Serial0/0

Router2上的路由条目

R2#showiproute

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

1.0.0.0/24issubnetted,1subnets

ON21.1.1.0[110/20]via192.168.1.1,00:

00:

06,Serial0/0

2.0.0.0/24issubnetted,1subnets

C2.2.2.0isdirectlyconnected,Loopback0

3.0.0.0/32issubnetted,1subnets

O3.3.3.3[110/65]via192.168.2.2,00:

07:

45,Serial0/1

4.0.0.0/24issubnetted,1subnets

OE24.4.4.0[110/1000]via192.168.2.2,00:

00:

06,Serial0/1

C192.168.1.0/24isdirectlyconnected,Serial0/0

C192.168.2.0/24isdirectlyconnected,Serial0/1

OE2192.168.3.0/24[110/1000]via192.168.2.2,00:

00:

06,Serial0/1

Router4上的路由条目

R4#showiproute

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

1.0.0.0/24issubnetted,1subnets

R1.1.1.0[120/2]via192.168.3.1,00:

00:

15,Serial0/2

2.0.0.0/32issubnetted,1subnets

R2.2.2.2[120/2]via192.168.3.1,00:

00:

15,Serial0/2

3.0.0.0/24issubnetted,1subnets

R3.3.3.0[120/2]via192.168.3.1,00:

00:

15,Serial0/2

4.0.0.0/24issubnetted,1subnets

C4.4.4.0isdirectlyconnected,Loopback0

R192.168.1.0/24[120/2]via192.168.3.1,00:

00:

15,Serial0/2

R192.168.2.0/24[120/2]via192.168.3.1,00:

00:

16,Serial0/2

C192.168.3.0/24isdirectlyconnected,Serial0/2

第五步:

在router1上验证

R1#ping192.168.3.2

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.3.2,timeoutis2seconds:

.....

Successrateis0percent(0/5)

在router2上配置,使之正常通信

方法1

Router2的设置

R2(config)#routerospf1

R2(config-router)#area1nssano-summary

在router1上查看

 

R1#showiproute

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

Gatewayoflastresortis192.168.1.2tonetwork0.0.0.0

1.0.0.0/24issubnetted,1subnets

C1.1.1.0isdirectlyconnected,Loopback0

C192.168.1.0/24isdirectlyconnected,Serial0/0

O*IA0.0.0.0/0[110/65]via192.168.1.2,00:

00:

07,Serial0/0

验证是否正常通信

R1#ping192.168.3.2

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.3.2,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=784/1107/1440ms

通信成功

方法2

在router2上的配置

R2(config)#routerospf1

R2(config-router)#area1nssadefault-information-originate

在router1上查看路由表

R1#showiproute

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

Gatewayoflastresortis192.168.1.2tonetwork0.0.0.0

1.0.0.0/24issubnetted,1subnets

C1.1.1.0isdirectlyconnected,Loopback0

2.0.0.0/32issubnetted,1subnets

OIA2.2.2.2[110/65]via192.168.1.2,00:

00:

05,Serial0/0

3.0.0.0/32issubnetted,1subnets

OIA3.3.3.3[110/129]via192.168.1.2,00:

00:

05,Serial0/0

C192.168.1.0/24isdirectlyconnected,Serial0/0

OIA192.168.2.0/24[110/128]via192.168.1.2,00:

00:

05,Serial0/0

O*N20.0.0.0/0[110/1]via192.168.1.2,00:

00:

05,Serial0/0

验证是否正常通信

R1#ping192.168.3.2

Typeescapesequencetoabort.

Sending5,100-byteICMPEchosto192.168.3.2,timeoutis2seconds:

!

!

!

!

!

Successrateis100percent(5/5),round-tripmin/avg/max=784/1107/1440ms

方法3

Router2上的设置

R2(config-router)#area1nssadefault-information-originateno-summary

查看router1上的路由表

R1#showiproute

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

Gatewayoflastresortis192.168.1.2tonetwork0.0.0.0

1.0.0.0/24issubnetted,1subnets

C1.1.1.0isdirectlyconnected,Loopback0

C192.168.1.0/24isdirectlyconnected,Serial0/0

O*IA0.0.0.0/0[110/65]via192.168.1.2,00:

00:

38,Serial0/0

 

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

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

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

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