About route policy manager
Route Policy Manager is a feature that supports route maps and IP prefix lists for route redistribution and filtering.
-
Supports route maps and IP prefix lists.
-
Enables route redistribution and filtering between routing domains.
-
Prefix lists contain IPv4 or IPv6 network prefixes and associated prefix length values.
Route Policy Manager enables the use of route maps and prefix lists for advanced routing control.
-
Route maps can apply to both routes and IP packets.
-
Prefix lists can be used in BGP templates, route filtering, or redistribution of routes exchanged between routing domains.
Prefix lists
Prefix lists are a method to filter network routes or packets by matching their prefixes against a defined list of permitted or denied prefixes.
-
Permit or deny an address or range of addresses based on prefix matching.
-
Multiple entries can be configured, each with an associated sequence number.
-
Evaluation starts with the lowest sequence number, and processing stops after the first match.
How prefix lists work
Filtering by a prefix list involves matching the prefixes of routes or packets with the prefixes listed in the prefix list. If a given prefix does not match any entries, an implicit deny is assumed.
![]() Note |
An empty prefix list permits all routes. |
Prefix List Masks
Cisco NX-OS supports masks for IPv4 and IPv6 prefix lists. Masking uses the number 1 and the number 0 to specify how the software treats the corresponding IP address bits.
-
A mask bit 0 means ignore the corresponding bit value.
-
A mask bit 1 means check the corresponding bit value for an exact match.
You can use a prefix list to match the IP address in a route map, which in turn is used in routing protocols during redistribution. The IP address is matched against the prefix list, where the bits corresponding to the mask bit 1 are the same as the subnet provided in the prefix list.
By carefully setting masks, you can select a single or several IP addresses for permit or deny tests.
The prefix list mask allows noncontiguous bits in the mask. You can thus define a range of even- or odd-numbered IP addresses.
Route maps
Route maps are a category of configuration tools that allow you to control route redistribution by specifying match and set criteria for routes or packets.
-
Each route map entry includes a sequence number to determine processing order.
-
Entries specify permission (permit or deny), match criteria, and set changes.
-
Route maps can process entries in a linear or user-defined order using the continue statement.
Route map structure and processing
Route maps are composed of one or more entries, each identified by a sequence number under a unique route map name. Each entry defines how routes or packets are matched and what actions are taken.
The route map entry has the following parameters:
-
Sequence number
-
Permission—permit or deny
-
Match criteria
-
Set changes
By default, a route map processes routes or IP packets in a linear fashion (that is, starting from the lowest sequence number). Route map can be confgured to process in a different order using the continue statement, which determines the route map entry that needs to be processed next.
Default action for sequences in a route map
The default action for any sequence in a route map is permit.
-
If you configure a new sequence in a route map without explicitly specifying either permit or deny. , the default action is permit.
-
If you edit a configured sequence in a route map and do not specify an action, the permit action is applied, even if the sequence was originally configured with deny.
-
Always set the correct action when configuring or editing a sequence of a route map; otherwise, the default action, permit , is applied.
Match criteria
Match criteria are the set of parameters used to determine whether a route or IP packet meets specific conditions in a route map.
-
Some criteria, such as BGP community lists, are applicable only to a specific routing protocol.
-
Other criteria, such as the IP source or destination address, can be used for any route or IP packet.
-
Match criteria are evaluated by comparing the route or packet to each configured match statement in the route map.
Types of match criteria and processing behavior
The match categories and parameters are as follows:
-
BGP parameters—Match based on AS numbers, AS-path, community attributes, or extended community attributes.
-
Prefix lists—Match based on an address or range of addresses.
-
Multicast parameters—Match based on rendezvous point, groups, or sources.
-
Other parameters—Match based on IP next-hop address or packet length.
For match processing:
-
If multiple match statements of the same type exist within the same route-map sequence, they are processed as an OR operation. This processing applies whether the match statements are on the same line or not.
-
If multiple match statements of a different type exist within the same route-map sequence, they are processed as an AND operation.
Set changes
Set changes are modifications applied to a route or packet after it matches an entry in a route map, based on configured set statements.
-
Change BGP parameters such as AS-path, tag, community, extended community, dampening, local preference, origin, or weight attributes.
-
Change metrics, including the route-metric or the route-type.
-
Change other parameters, such as the forwarding address or the IP next-hop address.
Set changes are used in route maps to modify route or packet attributes after a match occurs.
Access lists
-
IP access lists can match packets to fields such as source or destination IPv4 or IPv6 address.
-
They can match on protocol, precedence, and ToS.
-
Access lists can be used in a route map for policy-based routing only.
AS numbers for BGP
AS numbers for BGP are identifiers that allow BGP to match peers and establish sessions based on configured Autonomous System numbers.
-
You can configure a list or range of AS numbers to match against BGP peers.
-
If a BGP peer matches an AS number in the list and matches the other BGP peer configuration, BGP creates a session.
-
If the BGP peer does not match an AS number in the list, BGP ignores the peer.
BGP uses AS numbers to determine whether to establish a session with a peer. You can configure these as a list, a range, or use an AS-path list with a regular expression.
AS-path lists for BGP
An AS-path list is a configuration tool that allows filtering of BGP route updates based on the AS-path attribute.
-
Filters inbound or outbound BGP route updates using AS-path attributes.
-
Processes routes according to permit or deny conditions configured in the AS-path list.
-
Supports multiple AS-path entries under the same list name; the router processes the first matching entry.
AS-path list configuration and processing in BGP
You can configure an AS-path list to filter inbound or outbound BGP route updates. If the route update contains an AS-path attribute that matches an entry in the AS-path list, the router processes the route based on the permit or deny condition configured. You can configure AS-path lists within a route map. Multiple AS-path entries can be configured in an AS-path list by using the same AS-path list name. The router processes the first entry that matches.
Community lists for BGP
Community lists for BGP are mechanisms that allow filtering and matching of BGP route updates based on the community attribute using route maps.
-
Community lists can match the community attribute in BGP routes and set the community attribute using route maps.
-
A community list contains one or more community attributes; all must match for a route to be considered a match within a single entry.
-
Multiple community attributes can be configured as individual entries with the same community list name, and the router processes the first matching entry according to its permit or deny action.
Community list formats and usage in BGP
Community attributes in a community list can be configured in several formats to match BGP routes as needed.
-
A named community attribute, such as internet or no-export .
-
In aa:nn format, where the first two bytes represent the two-byte AS number and the last two bytes represent a user-defined network number.
-
A regular expression.
Extended community lists for BGP
Extended community lists for BGP are a category of access lists that support 4-byte AS numbers and allow configuration of community attributes in specific formats.
-
Support 4-byte AS numbers for BGP community attributes.
-
Allow configuration in aa4:nn format, where the first four bytes represent the AS number and the last two bytes represent a user-defined network number.
-
Permit use of regular expressions for matching community attributes.
Properties and behavior of extended community lists
Extended community lists in Cisco NX-OS provide similar functionality to regular community lists for four-byte AS numbers and can be configured with specific properties.
-
Transitive: BGP propagates the community attributes across autonomous systems.
-
Nontransitive: BGP removes community attributes before propagating the route to another autonomous system.
Route redistribution and route maps
Route redistribution with route maps is a process that controls which routes are redistributed between routing domains and how their attributes are modified.
-
Route maps match on route attributes to selectively redistribute routes that meet specific criteria.
-
Route maps can modify route attributes during redistribution using set actions.
-
Routes are evaluated against each route map entry or sequence until a match is found or all entries are processed.
How route maps control route redistribution
Route maps provide granular control over which routes are redistributed and how their attributes are set during the redistribution process.
-
Routes are matched against each route map entry or sequence.
-
If multiple match statements exist under a route-map sequence, the route must satisfy all match criteria.
-
If a route matches the criteria, the set actions are executed.
-
If a route does not match, it is compared against subsequent route map entries or sequences.
-
If no match is found after all entries are processed, the route is denied (either acceptance for inbound or forwarding for outbound route maps).
![]() Note |
When redistributing BGP to IGP, iBGP routes are redistributed by default. To override this behavior, insert an additional deny statement into the route map. |

Feedback