Restrictions for OSPFv3 Limit on Number of Redistributed Routes
This feature is supported only for the IPv6 address family.
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This feature is supported only for the IPv6 address family.
You must have Open Shortest Path First version 3 (OSPFv3) configured in your network either along with another protocol, or another OSPFv3 process for redistribution.
OSPFv3 supports a user-defined maximum number of prefixes (routes) that can be redistributed into OSPFv3 from other protocols or other OSPFv3 processes. Such a limit helps prevent the device from being flooded by too many redistributed routes
For example, if a large number of IP routes are sent into OSPFv3 for a network that allows redistribution of Border Gateway Protocol (BGP) into OSPFv3, the network can get severely flooded. Limiting the number of redistributed routes prevents this potential problem.
The following sections provide information on configuring an OSPFv3 limit on the number of redistributed routes.
Note |
The following procedures are mutually exclusive, that is, you can either limit the number of redistributed routes, or request a warning about the number of routes redistributed into OSPFv3. |
This task describes how to limit the number of OSPFv3 redistributed routes. If the number of redistributed routes reaches the maximum value configured, no more routes are redistributed.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
||
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
||
Step 3 |
router ospfv3 process-id Example:
|
Configures an OSPFv3 routing process. |
||
Step 4 |
address-family ipv6 [unicast] Example:
|
Enters IPv6 address family configuration mode. |
||
Step 5 |
redistribute protocol [process-id] [as-number] [include-connected {level-1 | level-1-2 | level-2} [metric metric-value ] [metric-type type-value] [nssa-only] [tag tag-value] [route-map map-tag] Example:
|
Redistributes routes from one routing domain into another routing domain. |
||
Step 6 |
redistribute maximum-prefix maximum [threshold] Example:
|
Sets a maximum number of IPv6 prefixes that are allowed to be redistributed into OSPFv3.
|
||
Step 7 |
exit-address-family Example:
|
Exits IPv6 address family configuration mode. |
||
Step 8 |
end Example:
|
Exits router configuration mode. |
To request a warning message when the number of routes redistributed into OSPFv3 exceeds the configuration limit, perform this procedure:
Command or Action | Purpose | |
---|---|---|
Step 1 |
enable Example:
|
Enables privileged EXEC mode. Enter your password, if prompted. |
Step 2 |
configure terminal Example:
|
Enters global configuration mode. |
Step 3 |
router ospfv3 process-id Example:
|
Configures an OSPFv3 routing process. |
Step 4 |
address-family ipv6 [unicast] Example:
|
Enters IPv6 address family configuration mode. |
Step 5 |
redistribute protocol [process-id] [as-number] [include-connected {level-1 | level-1-2 | level-2} [metric metric-value ] [metric-type type-value] [nssa-only] [tag tag-value] [route-map map-tag] Example:
|
Redistributes routes from one routing domain into another routing domain. |
Step 6 |
redistribute maximum-prefix maximum [threshold ] [warning-only] Example:
|
Causes a warning message to be logged when the maximum number of IP prefixes have been redistributed to OSPFv3.
|
Step 7 |
end Example:
|
Exits router configuration mode. |
The following sections provide configuration examples for OSPFv3 limit on number of redistributed routes.
This example shows how to set a maximum of 1200 prefixes that can be redistributed into the OSPFv3 process 1. Prior to reaching the limit, when the number of prefixes that are redistributed reaches 80 percent of 1200 (960 prefixes), a warning message is logged. Another warning message is logged when the limit is reached and no more routes are redistributed.
Device> enable
Device# configure terminal
Device(config)# router ospfv3 1
Device(config-router)# address-family ipv6
Device(config-router-af)# redistribute static subnets
Device(config-router-af)# redistribute maximum-prefix 1200 80
This example shows how to enable two warning messages to be logged, the first if the number of prefixes that are redistributed reaches 85 percent of 600 (510 prefixes), and the second if the number of redistributed routes reaches 600. However, the number of redistributed routes is not limited.
Device> enable
Device# configure terminal
Device(config)# router ospfv3 11
Device(config-router)# address-family ipv6
Device(config-router-af)# redistribute eigrp 10 subnets
Device(config-router-af)# redistribute maximum-prefix 600 85 warning-only
Use the privileged EXEC commands in the following table to monitor the limit on the number of redistributed routes.
Command |
Purpose |
---|---|
show ipv6 ospf [process-id] or show ospfv3 ipv6 [process-id] |
Displays general information about the OSPFv3 routing processes. The output includes the maximum limit of redistributed prefixes and the threshold for warning messages. |
Related Topic | Document Title |
---|---|
For complete syntax and usage information for the commands used in this chapter. |
See the Routing section of the Command Reference (Catalyst 9500 Series Switches) |
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Feature Name |
Releases |
Feature Information |
---|---|---|
OSPFv3 Limit on Number of Redistributed Routes |
Cisco IOS XE Gibraltar 16.11.1 |
OSPFv3 supports a user-defined maximum number of prefixes (routes) that can be redistributed into OSPFv3 from other protocols or other OSPFv3 processes. Such a limit helps prevent a device from being flooded by too many redistributed routes. |