Matching tags
Syntax:
match tag value
no match tag value
Matches the specified tag value with that of the route. The
no
form of the command deletes the match clause
from the sequence.
value
: Value of the route tag to match against. This is an integer value between 0 and the maximum number
supported by the routing switch. The tag value is typically set by a
set
command on a different router.
Using set commands
The
set
commands described below are available for use in route maps. Multiple
set
commands may be used
in a sequence of a route map.
Setting the next hop
Syntax:
set [ip | ipv6 next-hop] [
IP-addr
|
IPv6-addr
]
no set [ip | ipv6 next-hop] [
IP-addr
|
IPv6-addr
]
Sets a next hop address. The
no
form of the command deletes the set clause from the sequence.
[ip | ipv6]
Specifies setting either an IPv4 (IP) or IPv6 address, respectively.
[IP-addr | IPv6-addr]
Specifies the IPv4 (IP) or IPv6 address, respectively, to set.
Setting the route metric
Syntax:
set metric
value
no set metric
value
Sets the route metric to the specified value. The
no
form of the command deletes the set clause from the
sequence.
value
Value to be set for the route metric. This is an integer value between 0 and the maximum number supported
by the routing switch.
Setting the metric type
Syntax:
set metric-type external [type-1 | type-2]
no set metric-type external [type-1 | type-2]
Sets the metric type of an OSPF external route. The
no
form of the command deletes the set clause from the
sequence.
type-1
Sets the metric type of an OSPF external route to type 1.
Chapter 12 Route Policy
273