首页 | 互联网 | IT动态 | IT培训 | Cisco | Windows | Linux | Java | .Net | Oracle | 软件测试 | C/C++ | 嵌入式开发 | 存储世界 | 服务器
网络设备 | IDC | 安全 | 求职招聘 | 数字网校 | 网页设计 | 平面设计 | 技术专题 | 电子书下载 | 教学视频 | 源码下载 | 搜索 | 博客 | 论坛
欢迎光临中国IT实验室思科频道
Google
您现在的位置: 中国IT实验室 >> Cisco >> 网络协议 >> OSPF >> 正文

OSPF中的路由汇总配置

 

  查看路由表:

r1#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
Gateway of last resort is not set
     34.0.0.0/24 is subnetted, 1 subnets
O IA    34.0.0.0 [110/129] via 12.0.0.2, 00:11:38, FastEthernet0/0
     23.0.0.0/24 is subnetted, 1 subnets
O IA    23.0.0.0 [110/65] via 12.0.0.2, 00:11:38, FastEthernet0/0
C    199.172.18.0/24 is directly connected, Loopback2
C    199.172.19.0/24 is directly connected, Loopback3
C    199.172.16.0/24 is directly connected, Loopback0
C    199.172.17.0/24 is directly connected, Loopback1
     12.0.0.0/24 is subnetted, 1 subnets
C       12.0.0.0 is directly connected, FastEthernet0/0
     151.100.0.0/22 is subnetted, 1 subnets
O E2    151.100.32.0 [110/20] via 12.0.0.2, 00:03:40, FastEthernet0/0
//经过汇总后重分布到域内的路由条目
r2#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
Gateway of last resort is not set
     34.0.0.0/24 is subnetted, 1 subnets
O IA    34.0.0.0 [110/128] via 23.0.0.3, 00:11:17, Serial2/2
     23.0.0.0/24 is subnetted, 1 subnets
C       23.0.0.0 is directly connected, Serial2/2
     199.172.18.0/32 is subnetted, 1 subnets
O       199.172.18.1 [110/2] via 12.0.0.1, 00:11:17, FastEthernet0/0
     199.172.19.0/32 is subnetted, 1 subnets
O       199.172.19.1 [110/2] via 12.0.0.1, 00:11:17, FastEthernet0/0
     199.172.16.0/32 is subnetted, 1 subnets
O       199.172.16.1 [110/2] via 12.0.0.1, 00:11:17, FastEthernet0/0
     199.172.17.0/32 is subnetted, 1 subnets
O       199.172.17.1 [110/2] via 12.0.0.1, 00:11:17, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.0.0.0 is directly connected, FastEthernet0/0
     151.100.0.0/22 is subnetted, 1 subnets
O E2    151.100.32.0 [110/20] via 23.0.0.3, 00:04:38, Serial2/2
//经过汇总后重分布到域内的路由条目
O    199.172.16.0/22 is a summary, 00:11:28, Null0
//经过汇总后的路由条目
r3#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
Gateway of last resort is not set
     34.0.0.0/24 is subnetted, 1 subnets
C       34.0.0.0 is directly connected, Serial2/2
     23.0.0.0/24 is subnetted, 1 subnets
C       23.0.0.0 is directly connected, Serial2/1
     12.0.0.0/24 is subnetted, 1 subnets
O IA    12.0.0.0 [110/65] via 23.0.0.2, 00:13:25, Serial2/1
     151.100.0.0/22 is subnetted, 1 subnets
O E2    151.100.32.0 [110/20] via 34.0.0.4, 00:05:06, Serial2/2
//经过汇总后重分布到域内的路由条目
O IA 199.172.16.0/22 [110/66] via 23.0.0.2, 00:11:57, Serial2/1
//经过汇总后的路由条目
r4#sho ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route
Gateway of last resort is not set
     34.0.0.0/24 is subnetted, 1 subnets
C       34.0.0.0 is directly connected, Serial2/1
     23.0.0.0/24 is subnetted, 1 subnets
O IA    23.0.0.0 [110/128] via 34.0.0.3, 01:06:25, Serial2/1
     12.0.0.0/24 is subnetted, 1 subnets
O IA    12.0.0.0 [110/129] via 34.0.0.3, 00:25:26, Serial2/1
     151.100.0.0/16 is variably subnetted, 5 subnets, 2 masks
C       151.100.35.0/24 is directly connected, Loopback3
C       151.100.34.0/24 is directly connected, Loopback2
C       151.100.33.0/24 is directly connected, Loopback1
O       151.100.32.0/22 is a summary, 00:05:41, Null0
C       151.100.32.0/24 is directly connected, Loopback0
O IA 199.172.16.0/22 [110/130] via 34.0.0.3, 00:12:31, Serial2/1
///经过汇总后的路由条目
r1#ping 151.100.32.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 151.100.32.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 296/440/564 ms

上一页  [1] [2] [3] 下一页

【责编:Kittoy】
中国IT教育
相关产品和培训
文章评论
 友情推荐精华
 专题推荐

 ·节省成本才是“王道” VOIP案例应用…
 ·巧用网络流量 打造健康内网…
 ·无线路由器设置从入门到精通
 ·企业网管如何部署你的网络监控系统?
 ·负载均衡技术方案攻略
 ·中国IT实验室2007年技术热点盘点
 ·利用路由实现VPN的配置方法
 ·让你的局域网网速更上一层楼
 ·小命令大作用---Ping
 ·OSPF路由协议专题
 今日更新
 认证培训
 频道精选
 思科频道导航