Connectivity Guide

Table Of Contents
Aects BGP behavior only in outbound route maps and has no eect on other types of route maps. If the route
map contains both a set metric-type and a set metric clause, the set metric clause takes
precedence. If you enter the internal metric type in a BGP outbound route map, BGP sets the MED of the
advertised routes to the IGP cost of the next hop of the advertised route. If the cost of the next hop changes,
BGP is not forced to readvertise the route.
external — Reverts to the normal BGP rules for propagating the MED, the default.
internal — Sets the MED of a received route that is being propagated to an external peer equal to the
IGP costs of the indirect next hop.
OSPF
external — Sets the cost of the external routes so that it is equal to the sum of all internal costs and
the external cost.
internal — Sets the cost of the external routes so that it is equal to the external cost alone, the default.
The no version of this command removes the set clause from a route map.
Example
OS10(conf-route-map)# set metric-type internal
Supported Releases 10.2.0E or later
set next-hop
Sets an IPv4 or IPv6 address as the next-hop.
Syntax
set {ip | ipv6} next-hop ip-address
Parameters ip-address — Enter the IPv4 or IPv6 address for the next-hop.
Default Not congured
Command Mode ROUTE-MAP
Usage Information If you apply a route-map with the set next-hop command in ROUTER-BGP mode, it takes precedence over
the next-hop-self command used in ROUTER-NEIGHBOR mode. In a route-map conguration, to congure
more than one next-hop entry, use multiple
set {ip | ipv6} next-hop commands. When you apply a
route-map for redistribution or route updates in ROUTER-BGP mode, congure only one next-hop. Congure
multiple next-hop entries only in a route-map used for other features. The no version of this command deletes the
setting.
Example
OS10(conf-route-map)# set ip next-hop 10.10.10.2
Example (IPv6)
OS10(conf-route-map)# set ipv6 next-hop 11AA:22CC::9
Supported Releases 10.2.0E or later
set origin
Set the origin of the advertised route.
Syntax
set origin {egp | igp | incomplete}
Parameters
egp — Enter to add to existing community.
igp — Enter to send inside the local-AS.
Access Control Lists 771