比如说这张拓扑图,在R1上使用redistribute rip eigrp metric...将RIP路由重分发进EIGRP,然后又在R2上使用redistribute eigrp subnets将EIGRP的路由重分发进OSPF,这个时候在
R3上就会出现到达RIP路由域的172.16.1.0网络的次优路径。
为什么呢?因为之前在R1上做了将RIP路由域重分发进EIGRP操作,在R2和R3的路由表上
会出现有一条DEX的路由,管理距离为170,之后又在R2上做了将EIRP的路由重分发进OSPF,
而在R3上同时收到了分别又OSPF域内的R2和EIGRP域内的R1收到的172.16.1.0路由,一比较管理距离
,发现来自有OSPF的外部路由管理距离小些,所以强R2给它的加入路由表。
解决这个问题,最简单的方法就是在R3的OSPF配置模式下使用这条命令:
distance ospf external 180,来配置来自于R2发过来的外部路由,这样R3就会将管理距离为170的EIGRP重新
加表了。
现在我有个疑问:那能否在R2上建立一个route-map,使用ACL定义172.16.1.0这条路由条目,
然后在Route-map使用match匹配这条路由,然后使用set直接设置管理距离?
我尝试了下,发现不可以,那有没有别的方法解决这个问题?
tic-tag Automatically compute TAG value
clns OSI summary address
comm-list set BGP community list (for deletion)
community BGP community attribute
dampening Set BGP route flap dampening parameters
default Set default information
extcomm-list Set BGP/VPN extended community list (for deletion)
extcommunity BGP extended community attribute
global Set to global routing table
interface Output interface
ip IP specific information
ipv6 IPv6 specific information
level Where to import route
local-preference BGP local preference path attribute
metric Metric value for destination routing protocol
metric-type Type of metric for destination routing protocol
mpls-label Set MPLS label for prefix
origin BGP origin code
tag Tag value for destination routing protocol
traffic-index BGP traffic classification number for accounting
vrf Define VRF name
weight BGP weight for routi