Route-Map:功能性非常强的策略列表,可以用来过滤路由也可以调整路由的属性,自身具备过滤功能。
Route-Map的作用:
1.在重发布的过程中做route-map,重发布过程中可以改变路由的属性;(次要作用)
2.PBR 策略路由;(次要作用)
3.BGP(基于属性的路由选路) ;(主要作用)
Route-Map的逻辑语句:
1.Match语句,匹配的作用,自上而下的匹配顺序;
2.Set语句,执行的作用;
Route-Map的写法:
1.横向match:
R1(config-route-map)#Match ip address acl 1 2 3 //逻辑or关系,match任何一个都执行set语句
R1(config-route-map)#Set tag 99
2.竖向match(三个不同的macth,逻辑and的关系,match所有,才执行下边的set语句):
R1(config-route-map)#Match ip address acl 1
R1(config-route-map)#Match metric 100
R1(config-route-map)#Match tag 99
R1(config-route-map)#Set type 1
3.竖向set(被match上的话执行所有,all的关系):
R1(config-route-map)#Set