Cisco 路由重分发 简述

标签:
it |
分类: Cisco |
1.
2.
关于redistribute命令
完整的redistribute命令格式如下:
redistribute protocol [process-id] [level-1 | level-1-2 | level-2]
[as-number] [metric metric-value] [metric-type type-value] [match
{internal | external 1 | external 2}] [tag tag-value] [route-map
map-tag] [subnets]
redistribute命令标明了重分发路由的来源,而router命令则标明了广播路由的进程。例如,命令redistribute
eigrp 1表示路由器取来自EIGRP进程1的路由进行重分发;如果该命令在router
rip下,则该路由被重分发为RIP路由,这样其他RIP路由器就可以看到来自EIGRP AS 1的路由了。
3. 路由重分发示例
http://img1.51cto.com/attachment/200801/200801181200667139367.jpg路由重分发
1)R1在不同IGP——RIP、EIGRP和OSPF之间实现路由重分发;
2)使用默认的metric;
3)在重分发到OSPF时使用非默认的subnets参数;
4)其他参数保持默认值。
R1的配置:
router eigrp 1
redistribute ospf 1 metric 1544 5 255 1 1500
redistribute rip metric 1544 5 255 1 1500
network 14.0.0.0
no auto-summary
!
router ospf 1
router-id 1.1.1.1
redistribute eigrp 1 subnets
redistribute rip subnets
network 15.0.0.0 0.255.255.255 area 0
!
router rip
version 2
redistribute eigrp 1 metric 2
redistribute ospf 1 metric 3
network 13.0.0.0
no auto-summary
配置说明:
4. 设置重分发路由的metric信息
redistribute命令也可以设置metric-type选项,实际它所标识的是路由类型。下表列出了IGP路由重分发中默认的metric和metric-type:
重分发的路由类型 |
|
|
RIP |
无 |
无外部路由的概念 |
EIGRP |
无 |
外部路由 |
OSPF |
20/1 |
E2(E1或E2) |
IS-IS |
0 |
L1(L1, L2, L1/L2或外部) |