这个就是OSPF下,将rip进程中的路由重分布进OSPF进程用的,因为默认路由表是显示O E2,即type-2的,这里用了metric-type 1就是强制使其重分布进来后是type-1的,即路由表显示OE 1了,这样内部不会累加metric。
redistribute static subnets exit 1. 2. 3. 4. 在这一段代码中,conf t进入全局配置模式,router ospf 1进入OSPF路由进程的配置模式,redistribute static subnets命令将静态路由重分配到OSPF中。 2. 配置RIP路由的重分配 conf t router ospf 1 redistribute rip metric-type 1 subnets exit 1. 2. 3. 4. 这里...
这个在思科里面应该是重发布静态路由到OSPF内。
rip协议是用达到目的网络的路由跳数计算路由metric的。一般情况下也不需要这么精确的计算。更多的使用实例是:从路由器A到目的网络192.168.0.0有两个下一跳A和B,假设下一跳是A的路由metric是10、下一跳是B的路由metric是20则会选择下一跳是A的路由来转发流量。所以在配置的时候,就看你优选哪个下...
redistribute static (把静态重发布进rip默认metric是1) 重发布直连rip r1: router rip redistribute connected(把直连重发布到rip默认metric是1) 把rip重发布到ospf r1: router ospf 110 redistribute rip subnets (默认只有有类的网络重发布进ospf) default-metric (更改metric) ...
R2(config)#router rip R2(config-router)#redistribute ospf 1 metric 1 R2(config)#router ospf 1 R2(config-router)#redistribute rip subnets ///这里的subnets,就是让RIP 也支持无类路由,如果不输入这个关键词的话,那么rip就只支持主类的IP 需要注意的有两点 ...
2.静态重分布:重分布静态时,默认metric就是1,无需加metric参数 3.直连重分布: R1(config-router)#redistribute connected 1. 代表将本路由器的所有直连接口都重分布进RIP中 4.链路状态协议对于重分布静态命令:redistibute static subnets不能讲默认路由重分布进来,只能重分布静态路由 ...
这个是将rip重发布, subnets的意思是, 我举个例子把 比如10.0.0.0/8和10.0.0.0/24, 加subnets都能发布,不加subnets只能发布主类,也就是10.0.0.0/8.
R1(config-router)#redistribute rip subnets metric 10 (默认Seed Cost=20,如果将BGP->OSPF,默认=1) R1(config-router)#redistribute rip subnets metric 10 metric-type 1 (加上路径Cost,默认为E2) R1(config-router)#redistribute connected subnets
1.Seed Metrics 命令default-metricNumber 2.实验 路由进程中 A--->B R1(config-router)#redistribute ospf 110 metric1 重分布静态R1(config-router)#redistribute static 重分布直连R1(config-router)#redistribute connected 重分布进OSPF R1(config-router)#redistribute rip subnets Ospf中重分布...