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. |
MAC lists
A MAC list is a collection of MAC addresses and optional MAC masks used to permit or deny network traffic based on MAC address matching.
-
Consists of MAC addresses and optional wild-card MAC masks.
-
Used to permit or deny MAC addresses or ranges of addresses.
-
Filtering involves matching packet MAC addresses with entries in the MAC list; unmatched addresses are implicitly denied.
How MAC lists work
MAC lists are evaluated in sequence, and each entry has an associated sequence number. Cisco NX-OS processes the first successful match for a given MAC address and applies the permit or deny action. Once a match occurs, the rest of the MAC list is not evaluated for that address.
MAC list usage
For example, you can configure multiple entries in a MAC list to permit or deny specific MAC addresses. Each entry is assigned a sequence number, and the system evaluates entries starting with the lowest sequence number. The first matching entry determines whether the MAC address is permitted or denied.
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.
Default sequence number for a route map
The default sequence number for a route-map with no specified sequence value is 10.
-
If you create a new route-map without specifying a sequence number, the default sequence number is 10.
-
If a route-map already exists with sequence number 10 and you configure the same route-map again without specifying a sequence number, any modifications will be applied to sequence number 10 of that route-map.
-
If a route-map already has sequence numbers assigned (20, 30, 40, etc.) and you configure it again without specifying a sequence number, a new entry with sequence number 10 will be created for that route-map.
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.
Configure NX-OS BGP large communities
About NX-OS BGP large communities
NX-OS BGP large communities are standardized 12-byte values (per IETF RFC 8092) that provide enhanced flexibility for classifying BGP routes, especially when using 4-byte ASNs.
-
Allow classification of routes from different data centers and ASNs using large communities.
-
Remove the 4-byte restriction of standard BGP communities by supporting 12-byte large communities.
-
Enable more flexible configuration of networks and routing policies in NX-OS BGP.
Beginning with Cisco NX-OS Release 10.6(2)F, BGP large community is supported on EVPN address-family. In earlier releases, it is supported on IPv4 and IPv6 unicast address family.
Configure a large community list (expanded)
The following are the steps to configure large community list in expanded form:
Procedure
|
Step 1 |
configure terminal Example:
Enters global configuration mode. |
|
Step 2 |
ip large-community-list expanded Example:
This option adds an expanded large community list entry. |
|
Step 3 |
ip large-community-list expanded list-name Example:
This option provides the name of the expanded large community list. The list-name can be any case-sensitive, alphanumeric string up to 63 characters. |
|
Step 4 |
ip large-community-list expanded abcd seq Example:
This option provides the sequence number of the entry. |
|
Step 5 |
ip large-community-list expanded abcd seq 10 {deny | permit } Example:
The first option specifies the large community to reject. The second option specifies the large community to accept. |
|
Step 6 |
ip large-community-list expanded abcd seq 10 permit XX:YY:ZZ Example:
This option provides the regular expression which uses a XX:YY:ZZ format. XX can have a range of <0-4294967294> and is a four octet global administrator field which represents ASN. Whereas, YY and ZZ are four octet local data fields, which are defined by an owner of the ASN. The ":" is a separator between global and local data fields. |
The following example shows how to create a large community list in expanded form:
switch(config)# ip large-community-list expanded abcd seq 10 permit ”^100:200:300$"
switch(config)# sh run rpm
<<SNIP>>
ip large-community-list expanded abcd seq 10 permit ”^100:200:300$"
Configure a large community list (standard)
The following are the steps to configure large community list in standard form:
Procedure
|
Step 1 |
configure terminal Example:
Enters global configuration mode. |
|
Step 2 |
ip large-community-list standard Example:
This option adds a standard large community list entry. |
|
Step 3 |
ip large-community-list standard list-name Example:
This option provides the name of the standard large community list. The list-name can be any case-sensitive, alphanumeric string up to 63 characters. |
|
Step 4 |
ip large-community-list standard efgh seq Example:
This option provides the sequence number of the entry. |
|
Step 5 |
ip large-community-list standard efgh seq 15 {deny | permit } Example:
The first option specifies the large community to reject. The second option specifies the large community to accept. |
|
Step 6 |
ip large-community-list standard efgh seq 15 deny XX:YY:ZZ Example:
This option provides the regular expression which uses a XX:YY:ZZ format. XX can have a range of <0-4294967294> and is a four octet global administrator field which represents ASN. Whereas, YY and ZZ are four octet local data fields, which are defined by an owner of the ASN. The ":" is a separator between global and local data fields. |
The following example shows how to create a large community list in standard form:
switch(config-route-map)# ip large-community-list standard efgh seq 15 deny 1000300:123:456
switch(config)# sh run rpm
<<SNIP>>
ip large-community-list standard efgh seq 15 deny 1000300:123:456
Configure a route-map match for large community
The following are the steps to configure route-map match for large community:
Procedure
|
Step 1 |
configure terminal Example:
Enters global configuration mode. |
|
Step 2 |
match large-community Example:
This option matches BGP large community list. |
|
Step 3 |
match large-community list-name Example:
This option provides the name of the community list. The list-name can be any case-sensitive, alphanumeric string up to 63 characters. |
|
Step 4 |
match large-community abcd exact-match Example:
This option does the exact matching of the communities. |
The following example shows how to create a large community list in expanded form:
switch(config-route-map)# sh run rpm
<<SNIP>>
route-map test permit 10
match large-community abcd efgh
Configure a route map set for large community
The following are the steps to configure route-map set for large community:
Procedure
|
Step 1 |
configure terminal Example:
Enters global configuration mode. |
|
Step 2 |
set large-community-list Example:
This option sets BGP large community attribute. |
|
Step 3 |
set large-community-list list-name Example:
This option sets the name of the large community list. The list-name can be any case-sensitive, alphanumeric string up to 63 characters. |
|
Step 4 |
set large-community-list list-name delete Example:
This option deletes the matching large communities. Example:
|
|
Step 5 |
set large-community {none | XX:YY:ZZ [additive ] | additive } Example:
This command sets the large-community attribute for a BGP route update.
Example:
|
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