OSPF中的路由汇总配置.docx
- 文档编号:24669653
- 上传时间:2023-05-30
- 格式:DOCX
- 页数:8
- 大小:48.47KB
OSPF中的路由汇总配置.docx
《OSPF中的路由汇总配置.docx》由会员分享,可在线阅读,更多相关《OSPF中的路由汇总配置.docx(8页珍藏版)》请在冰豆网上搜索。
OSPF中的路由汇总配置
∙OSPF中的路由汇总配置
(1)
∙ 2008-04-2315:
44 佚名 中国IT实验室 我要评论(0)
本篇文章讲述了通过汇总减少路由器由于路由表中的路由条目过多产生的负担。
目的:
通过汇总减少路由器由于路由表中的路由条目过多产生的负担
路由器的基本配置:
r1#shorun
!
interfaceLoopback0
ipaddress199.172.16.1255.255.255.0
!
interfaceLoopback1
ipaddress199.172.17.1255.255.255.0
!
interfaceLoopback2
ipaddress199.172.18.1255.255.255.0
!
interfaceLoopback3
ipaddress199.172.19.1255.255.255.0
!
interfaceFastEthernet0/0
ipaddress12.0.0.1255.255.255.0
duplexhalf
!
routerospf110
log-adjacency-changes
network0.0.0.0255.255.255.255area12
!
!
End
r2#shorun
!
interfaceFastEthernet0/0
ipaddress12.0.0.2255.255.255.0
duplexhalf
!
interfaceSerial2/2
ipaddress23.0.0.2255.255.255.0
serialrestart-delay0
!
routerospf110
log-adjacency-changes
area12range199.172.16.0255.255.252.0//路由汇总
network12.0.0.00.0.0.255area12
network23.0.0.00.0.0.255area0
!
End
r3#shorun
!
interfaceSerial2/1
ipaddress23.0.0.3255.255.255.0
serialrestart-delay0
!
interfaceSerial2/2
ipaddress34.0.0.3255.255.255.0
serialrestart-delay0
!
routerospf110
log-adjacency-changes
network23.0.0.00.0.0.255area0
network34.0.0.00.0.0.255area34
!
End
r4#shorun
!
interfaceLoopback0
ipaddress151.100.32.1255.255.255.0
!
interfaceLoopback1
ipaddress151.100.33.1255.255.255.0
!
interfaceLoopback2
ipaddress151.100.34.1255.255.255.0
!
interfaceLoopback3
ipaddress151.100.35.1255.255.255.0
!
interfaceSerial2/1
ipaddress34.0.0.4255.255.255.0
serialrestart-delay0
!
routerospf110
log-adjacency-changes
summary-address151.100.32.0255.255.252.0
//路由汇总把区域外的路由条目汇总成一条,
redistributeconnectedsubnetsroute-maphhh
//把域外的路由条目重分布到域内
network34.0.0.00.0.0.255area34
!
route-maphhhpermit10
matchinterfaceLoopback0Loopback1Loopback2Loopback3
!
End
查看路由表:
r1#shoiproute
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
34.0.0.0/24issubnetted,1subnets
OIA34.0.0.0[110/129]via12.0.0.2,00:
11:
38,FastEthernet0/0
23.0.0.0/24issubnetted,1subnets
OIA23.0.0.0[110/65]via12.0.0.2,00:
11:
38,FastEthernet0/0
C199.172.18.0/24isdirectlyconnected,Loopback2
C199.172.19.0/24isdirectlyconnected,Loopback3
C199.172.16.0/24isdirectlyconnected,Loopback0
C199.172.17.0/24isdirectlyconnected,Loopback1
12.0.0.0/24issubnetted,1subnets
C12.0.0.0isdirectlyconnected,FastEthernet0/0
151.100.0.0/22issubnetted,1subnets
OE2151.100.32.0[110/20]via12.0.0.2,00:
03:
40,FastEthernet0/0
//经过汇总后重分布到域内的路由条目
r2#shoiproute
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
34.0.0.0/24issubnetted,1subnets
OIA34.0.0.0[110/128]via23.0.0.3,00:
11:
17,Serial2/2
23.0.0.0/24issubnetted,1subnets
C23.0.0.0isdirectlyconnected,Serial2/2
199.172.18.0/32issubnetted,1subnets
O199.172.18.1[110/2]via12.0.0.1,00:
11:
17,FastEthernet0/0
199.172.19.0/32issubnetted,1subnets
O199.172.19.1[110/2]via12.0.0.1,00:
11:
17,FastEthernet0/0
199.172.16.0/32issubnetted,1subnets
O199.172.16.1[110/2]via12.0.0.1,00:
11:
17,FastEthernet0/0
199.172.17.0/32issubnetted,1subnets
O199.172.17.1[110/2]via12.0.0.1,00:
11:
17,FastEthernet0/0
12.0.0.0/24issubnetted,1subnets
C12.0.0.0isdirectlyconnected,FastEthernet0/0
151.100.0.0/22issubnetted,1subnets
OE2151.100.32.0[110/20]via23.0.0.3,00:
04:
38,Serial2/2
//经过汇总后重分布到域内的路由条目
O199.172.16.0/22isasummary,00:
11:
28,Null0
//经过汇总后的路由条目
r3#shoiproute
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
34.0.0.0/24issubnetted,1subnets
C34.0.0.0isdirectlyconnected,Serial2/2
23.0.0.0/24issubnetted,1subnets
C23.0.0.0isdirectlyconnected,Serial2/1
12.0.0.0/24issubnetted,1subnets
OIA12.0.0.0[110/65]via23.0.0.2,00:
13:
25,Serial2/1
151.100.0.0/22issubnetted,1subnets
OE2151.100.32.0[110/20]via34.0.0.4,00:
05:
06,Serial2/2
//经过汇总后重分布到域内的路由条目
OIA199.172.16.0/22[110/66]via23.0.0.2,00:
11:
57,Serial2/1
//经过汇总后的路由条目
r4#shoiproute
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
34.0.0.0/24issubnetted,1subnets
C34.0.0.0isdirectlyconnected,Serial2/1
23.0.0.0/24issubnetted,1subnets
OIA23.0.0.0[110/128]via34.0.0.3,01:
06:
25,Serial2/1
12.0.0.0/24issubnetted,1subnets
OIA12.0.0.0[110/129]via34.0.0.3,00:
25:
26,Serial2/1
151.100.0.0/16isvariablysubnetted,5subnets,2masks
C151.100.35.0/24isdirectlyconnected,Loopback3
C151.100.34.0/24isdirectlyconnected,Loopback2
C151.100.33.0/24isdirectlyconnected,Loopback1
O151.100.32.0/22isasummary,00:
05:
41,Null0
C151.100.32.0/24isdirectlyconnected,Loopback0
OIA199.172.16.0/22[110/130]via34.0.0.3,00:
12:
31,Serial2/1
///经过汇总后的路由条目
r1#ping151.100.32.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto151.100.32.1,timeoutis2seconds:
!
!
!
!
!
r4#ping199.172.19.1
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto199.172.19.1,timeoutis2seconds:
!
!
!
!
!
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- OSPF 中的 路由 汇总 配置