by-小世界
http://redcisco.blog.163.com
实验拓扑图:
实验需求:
1. AS65001发往AS65005:到达R7-7.7.7.0/24 经过R3;R7-70.70.70.0/24 经过R2和R4;
2. 不允许在R1上做策略,本实验请通过修改med值达到需求。
根据需求可以知道,这属于“修改出路由,影响入数据”的例子。
R5(config)#router bgp 65005
R5(config-router)#
no neighbor 35.1.1.3 route-map as-path out
R5(config-router)#exit
R5(config)#
no access-list 10
R5(config)#
no route-map as-path
R5(config)#route-map med permit 10
R5(config-route-map)#match ip address 10
R5(config-route-map)
#set metric 100//
默认是0,将该值改大,应该说通告出去的将会是次优的了。
R5(config)#route-map med permit 20//不要忘了deny any
R5(config

实验目标是通过在AS65005的R5路由器上修改route-map的MED值,影响AS65001到AS65005的数据路由。配置中通过route-map设置不同IP地址段的metric和as-path,以期望改变R1到特定网络的路由选择。然而,实验结果显示仅在AS内部改变MED值无法影响跨AS的选路,需在R3上修改metric并通告给R1。最后指出,由于初始路由选择可能基于router-id,某些情况下即使修改metric也无法改变既定路径。

1万+

被折叠的 条评论
为什么被折叠?



