
C613-50186-01 Rev B
Command Reference for AR2050V
1398
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
R
OUTE
M
AP
C
OMMANDS
ROUTE
-
MAP
If it finds a match on a route map with an action of permit, then it applies any set
clauses and accepts the route. Having found a match, the route is not compared
against any further entries of the route map.
If it finds a match on a route map with an action of deny, it will discard the
matching route.
If it does not find a match, it discards the route. This means that route maps end
with an implicit deny entry. To permit all non-matching routes, end your route map
with an entry that has an action of
permit
and no match clause.
Examples
To enter route-map mode for entry 1 of the route map called “route1”, and then
add a match and set clause to it, use the commands:
awplus#
configure terminal
awplus(config)#
route-map route1 permit 1
awplus(config-route-map)#
match as-path 60
awplus(config-route-map)#
set weight 70
To enter route-map mode for entry 2 of the route map called “route1”, and then
add a match and set clause to it, use the commands:
awplus#
configure terminal
awplus(config)#
route-map route1 permit 2
awplus(config-route-map)#
match interface vlan2
awplus(config-route-map)#
set metric 20
Note how the prompt changes when you go into route map configuration mode.
To make the device process non-matching routes instead of discarding them, add
a command like the following one:
awplus(config)#
route-map route1 permit 100
Related
Commands
For BGP:
redistribute (into BGP or BGP4+)
show ip bgp route-map (BGP only)
For OSPF: