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