Route map is a very useful function in zebra. There is a match and set statement permitted in a route map.
route-map test permit 10 match ip address 10 set local-preference 200
This means that if a route matches ip access-list number 10 it's local-preference value is set to 200.
Menu |
---|
Route Map Command |
Route Map Match Command |
Route Map Set Command |
Matches the specified ACCESS_LIST
Matches the specified IPV4_ADDR.
Matches the specified AS_PATH.
Matches the specified METRIC.
Matches the specified COMMUNITY_LIST