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:

[no] set [ ip | ipv6 next-hop ] [ IP-addr | IPv6-addr ]

Sets a next hop address.

[ 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.

The no form of the command deletes the set clause from the sequence.

Setting the route metric

Syntax:

[no] set metric value

Sets the route metric to the specified value.

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.

The no form of the command deletes the set clause from the sequence.

Setting the metric type

Syntax:

[no] set metric-type external [ type-1 | type-2 ]

Sets the metric type of an OSPF external route.

type-1

Sets the metric type of an OSPF external route to type 1.

type-2

Sets the metric type of an OSPF external route to type 2.

The no form of the command deletes the set clause from the sequence.

Setting the tag value

Syntax:

[no] set tag value

Sets the tag value of the route.

value

Value of the route tag. This is an integer value between 0 and the maximum number supported by the routing switch.

The no form of the command deletes the set clause from the sequence.