雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 25995|回复: 70

[讨论/求助] 网络搜集的【CCNA的实验手册】 持续更新【八】

  [复制链接]
发表于 2012-5-4 09:14:48 | 显示全部楼层 |阅读模式
这次更新包含2个部分,一部分是在部署网络中常用的一些路由优化策略的配置,另一部分是关于IPv6的。
下面文字是转载于网络的关于路由优化的实验总结,希望对各位学习网络的朋友有帮助。

=================分割线===================
路由优化总结
1。过滤的三种方法:Access groups、 Distribute lists、 Route maps
访问组不能过滤路由,只过滤triffc。
IGP分配列表和BGP分配列表间的差别:IGP分配列表可使用前缀列表。
R(config-router)#distribute-list {number|prefix name} {in|out} {interface}
路由映射在它的末尾有一个拒绝全部。
Route-map中不含match表示符合全部。
2。基于策略的路由选择可应用到设备上,以便考虑设备产生的通信量。
R(config)#ip local policy route-map name
基于源的策略(set interface type/slot#)、通信量策略的类型(set ip next-hop ip)、服务策略的类型的路由选择(set ip tos min|max-{delay|reliability|throughput|normal|monetary-cost})。
R(config-if)#ip policy route-map name
例:

R(config)#access-list 1 permit 192.168.1.0 0.0.0.255
R(config)#access-list 2 permit 192.168.10.0 0.0.0.255
R(config)#route-map TOSPOLICY1 permit 10
R(config-route-map)#match ip address 1
R(config-route-map)#set ip tos max-reliability
R(config-route-map)#route-map TOSPOLICY1 permit 20
R(config-route-map)#match ip address 2
R(config-route-map)#set ip tos min-delay
R(config-route-map)#route-map TOSPOLICY1 permit 30
R(config-route-map)#set ip tos normal
R(config-route-map)#exit
R(config)#interface s1/0
R(config-if)#ip policy route-map TOSPOLICY1
R(config-if)#exit

3。验证:r#show ip policy
R#show route-map
R#Debug ip policy

4。同样的AS号时IGRP到EIGRP重新分配自动发生,但其路由表项的AD值是170而非90。
5。重新分配配置:
RIP:
R(config-router)#redistribute igrp 100 metric 1
要是:R(config-router)#redistribute igrp 100
R(config-router)#default-metric 1
则其它所有重分发AD值都变。而不是仅上句特定的igrp 100变。
AD值默认为0,如为0,RIP、IGRP、EIGRP、IS-IS不理解,该路由器将不被使用)
IGRP:
同上,仅metric 为 100 100 200 1 150(bandwidth、delay、reliability、load、MTU)
EIGRP:
同上。
OSPF:
AD默认为20
Redistribute eigrp 100 metric 100 {subnets} {metric-type1|2}
Subnets关键字将允许无类路由被重新分配到OSPF中。
类型1和类型2:类型2外部路由的度量只等于A[脏话予以屏蔽]R最初通告的重新分配开销,而不计算回到A[脏话予以屏蔽]R内部的路径的开销。
IS-IS:
不支持default-metric命令。
默认重新分配的路由为内部Level 2路由。
R(config)#router isis
R(config-router)#redistribute igrp 100 metric 10 metric-type external

R(config)#router eigrp 100
R(config-router)#redistribute isis level-1|2|1-2 metric 100 100 200 1 1500
必须指定类型!
6。要重分配的路由必须在这个路由自己的路由表里。
7。Redistribute connected|static metric ……
8。RIP、IGRP、EIGRP的默认路由重分发同静态路由重分发,而
OSPF:
R(config)#ip route 0.0.0.0 0.0.0.0 10.10.10.1
R(config-router)#default-information originate {always}
此命令强制指出当前路由器为A[脏话予以屏蔽]R,同redistribute一样。
如果有多于一个的路由器生成默认路由,就不应使用关键字always
IS-IS:
不支持always关键字。
重新分配到IS-IS的默认路由将只通告到Level 2区域。
R(config-router)#default-information originate
不允许为默认路由设置metric和metric-type,不同于OSPF。
9。无类到有类重新分配的两种方法:
1)        在到达重新分配路由器前将路由汇总好。
例:
R(config)#router ospf 1
R(config-router)#area 1 range 172.16.0.0 255.255.0.0
2)        在重新分配路由器上,创建一个静态路由,其目的地址为null0,重分配该静态地址。
例:
R(config)#ip route 172.16.0.0 255.255.0.0 null0
R(config)#router rip
R(config-router)#redistribute static metric 1
10。用重分配进行过滤
例:需重分配EIGRP AS 100中包含的路由到OSPF 1,但不想让路由192.168.200.0/24重分配到OSPF 1,而其他所有路由和将来的路由被重分配。
R#conf t
Enter configuration commands ,one per line.End with CNTL/Z.
R(config)#access-list 1 permit 192.168.200.0 0.0.0.255
R(config)#route-map EIGRPTOOSPF deny 10
R(config-router-map)#match ip address 1
R(config-router-map)#route-map EIGRPTOOSPF permit 20
R(config-router-map)#exit
R(config)#router ospf 1
R(config-router)#redistribute eigrp 100 metric 100 subnets route-map EIGRPTOOSPF
R(config-router)#^Z
11.RIPv1,RIPv2,IGRP,EIGRP,BGP都支持自动汇总。RIPv2,EIGRP,IS-IS,OSPF,BGP支持手工汇总。
EIGRP:
R(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.0.0
OSPF:
内部汇总需使用区域范围(ABR上配置):
R(config-router)#area 1 range 172.16.0.0 255.255.192.0
A[脏话予以屏蔽]R上:
R(config-router)#summary-address 172.16.0.0 255.255.192.0
IS-IS:
内部汇总同OSPF
R(config-router)#summary-address 172.16.0.0 255.255.128.0 level-1|2|1-2

==========附件分割线======================

游客,如果您要查看本帖隐藏内容请回复

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
发表于 2012-5-4 09:50:12 | 显示全部楼层
发表于 2012-5-4 13:24:56 | 显示全部楼层
  惊现IS-IS
发表于 2012-5-5 12:41:18 | 显示全部楼层
好,支持楼主!
发表于 2012-5-5 15:46:52 | 显示全部楼层
发表于 2012-5-7 06:17:31 | 显示全部楼层
发表于 2012-5-7 15:52:33 | 显示全部楼层
学习下,谢谢楼主分享
发表于 2012-5-7 16:29:29 | 显示全部楼层
发表于 2012-5-8 00:57:14 | 显示全部楼层
非常支持!!!
发表于 2012-5-14 20:19:56 | 显示全部楼层
谢谢楼主分享。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-4-19 19:45 , Processed in 0.088635 second(s), 22 queries , Gzip On.

快速回复 返回顶部 返回列表