参考地址
route-map总结:
1.一个route-map语句中,若是没有match语句,则匹配全部
2.末尾隐含deny any
3.单条match语句包括多个条件时,使用逻辑or运算;多条match语句时,使用逻辑and运算。
4.从一个示例来看route-map做用:html
access-list 1 permit 10.1.1.0 access-list 2 permit 10.1.2.0 route-map test_route-map permit 10 match ip address 1 set metric 20 route-map test_route-map permit 20 match ip address 2 set metric 10 router ospf 1 redistrubute static route-map test_route-map // 静态路由表中,只有router-map 匹配上的路由才会重发布进ospf进程
route-map 的deny/permit动做是决定"要不要"match到的路由条目(没有match,表示匹配全部);而 route-map 语句中的动做,只是对"要的"路由条目的属性进行设置;redis