侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

route-map 简历记录

2023-04-01 星期六 / 0 评论 / 0 点赞 / 72 阅读 / 944 字

参考地址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 语句中的动作,只是对"要的"路由条目的属性进行设置;

.

广告 广告

评论区