route-map 簡要記錄

參考地址
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

相關文章
相關標籤/搜索