Configuring a Routemap
Configuring a Routemap
Syntax:
|
Parameters:
Parameter |
Description |
---|---|
|
The name of the routemap. |
|
The ID of the routemap. You can enter the keyword " |
|
Control the routemap:
|
|
Allow routes that match the routemap. |
|
Temporarily disable a routemap. To activate the routemap, use the " |
|
Routes that match the routemap are not allowed. |
Configuring Actions for a Routemap
Syntax:
|
Note - Some statements affect only a particular protocol (see Supported Route Map Statements by Protocol). The same parameter cannot appear both as a match and action statement in a routemap. These include Community, Metric, and Nexthop. |
|
Parameters:
Parameter |
Description |
---|---|
|
Specifies the name of the routemap. |
|
Specifies the ID of the routemap. You can enter the keyword |
|
Specifies to affix AS numbers at the beginning of the AS path. It indicates the number of times the local AS number should be prepended to the ASPATH before sending out an update. Applies only to BGP. |
|
Operate on a BGP community string. A community string can be formed using multiple community action statements. You can specify keywords append, replace, or delete for the kind of operation to be performed using the community string. The default operation is append. Applies only to BGP. |
|
Specifies a BGP community value. |
|
Routes received that carry a communities attribute containing this value must not be advertised outside a BGP confederation boundary (a stand-alone autonomous system that is not part of a confederation should be considered a confederation itself) |
|
Routes received that carry a communities attribute containing this value must not be advertised to other BGP peers. |
|
All routes received carrying a communities attribute containing this value MUST NOT be advertised to external BGP peers (this includes peers inside a BGP confederation that belong to the autonomous systems of other members). |
|
In action statement, this statement makes sense only if used with replace. This deletes all communities associated with a route so that the route has no communities associated with it. Using it with append or delete would be a no-operation. The CLI returns an error if you turn " |
|
Set the local preference for BGP route. Applies only to BGP. |
|
Add to or subtract from the metric value. Applies only to RIPv1. |
|
Set metric to IGP metric value or add to or subtract from the IGP metric value. Applies only to RIPv1. |
|
Set the metric value. Protocol metrics:
|
|
Set IPv4 Nexthop Address. Applies only to BGP. |
|
Sets the rank of the route. Precedence works across protocols. Use this setting to bias routes of one protocol over the other. The lower value has priority. |
|
This is equivalent to the BGP weight (in Cisco terms) of the route. However, unlike Cisco, the route with lower value will be preferred. This value is only relevant for the local router. Applies only to BGP. |
|
Type of OSPF external route. The metric type of AS External route is set to the specified value. Applies only to routes redistributed to OSPF. |
|
Remove the specified action from the routemap. For community, it removes all community statements. Accepted values are:
|
|
Configures the automatic tag for OSPF external routes that match the Route Map. This action only applies when you export non-OSPF routes into OSPF with the " See RFC 1403 for more information on OSPF tags. |
|
Configures the manual tag for OSPF external routes that match this Route Map ID. This action only applies when you export non-OSPF routes into OSPF with the " See RFC 1403 for more information on OSPF tags. |
|
Creates a RIP tag for external routes that match the given Route Map ID. This action only applies to export of non-RIP routes into RIP with the " See RFC 2453 for more information on RIP tags. |
Configuring the Criteria that must be Matched for the Routemap to Take Effect
Syntax:
|
Note - Some statements affect only a particular protocol (see Supported Route Map Statements by Protocol). The same parameter cannot appear both as a match and action statement in a routemap. These include Community, Metric, and Nexthop. |
|
Parameters:
Parameter |
Description |
---|---|
|
Match the specified autonomous system number with the AS number of a BGP peer. Applies only to BGP. |
|
Match the specified ASpath regular expression. Note - You must enter the regular expression in quotation marks. Use the empty keyword to match a null ASpath. Applies only to BGP. |
|
Specify the BGP community value. |
|
Specify that the communities present in the route must exactly match all the communities in the routemap. In absence of the exact clause, the route can have other community values associated with it in addition to the ones contained in the routemap. You can have multiple community statements in a route map to form a community string. |
|
All routes received that carry a communities attribute containing this value must not be advertised outside a BGP confederation boundary (a stand-alone AS that is not part of a confederation should be considered a confederation itself). |
|
All routes received carrying a communities attribute containing this value must not be advertised to other BGP peers. |
|
All routes received carrying a communities attribute containing this value must not be advertised to external BGP peers (this includes peers in other members autonomous systems inside a BGP confederation). |
|
Matches an empty community string, i.e. a route which does not have any communities associated with it. The CLI returns an error if you turn "none" on and other community values already defined, or if "none" is defined and you add some other community value. |
|
Match the specified interface address. There can be multiple if address statements. |
|
Match the route if the nexthop lies on the specified interface name. There can be multiple interface statements. |
|
Match the specified metric value. |
|
Match the neighbors IP address. There can be multiple neighbor statements. Applies only to BGP and RIPv1. |
|
Match the network as specified:
There can be multiple network match statements in a route map. |
|
Match the specified nexthop address. |
|
Match the specified protocol. Use this for route redistribution. |
|
As a match statement in routemap for export policy, it can be used by any protocol to redistribute OSPF routes. If you specify " If you specify " While exporting OSPF ASE routes to other protocol, if metric match condition is set but the " There can be multiple route-type match statements. |
|
Remove the specified match condition from the routemap. For match conditions which can have multiple match statements (such as network, neighbor), this argument removes all of them. |