Configuring OSPFv3 Limit on Number of Redistributed Routes

Feature Information for OSPFv3 Limit on Number of Redistributed Routes

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.

Table 1. Feature Information for OSPFv3 Limit on Number of Redistributed Routes

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 are allowed to be redistributed into OSPFv3 from other protocols or other OSPFv3 processes. Such a limit could help prevent the router from being flooded by too many redistributed routes

Monitoring OSPFv3 Limit on Number of Redistributed Routes

Use the privileged EXEC commands in the following table to monitor limit on number of redistributed routes

Table 2. Commands to Monitor OSPFv3 Limit on Number of Redistributed Routes

Command

Purpose

show ipv6 ospf [process-id]

OR

show ospfv3 ipv6 [process-id]

Displays general information about OSPFv3 routing processes. The output will include the maximum limit of redistributed prefixes and the threshold for warning messages.

Configuration Examples for OSPFv3 Limit on Number of Redistributed Routes

The following sections provide configuration examples for OSPFv3 limit on number of redistributed routes:

Example: OSPFv3 Limit on Number of Redistributed Routes

This example sets a maximum of 1200 prefixes that can be redistributed into OSPFv3 process 1. Prior to reaching the limit, when the number of prefixes redistributed reaches 80 percent of 1200 (960 prefixes), a warning message is logged. Another warning 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

Example: Requesting a Warning About the Number of Redistributed Routes

This example allows two warning messages to be logged, the first if the number of prefixes 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

How to Configure an OSPFv3 Limit on the Number of Redistributed Routes

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.


Limiting the Number of OSPFv3 Redistributed Routes

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 will be redistributed.

Procedure

  Command or Action Purpose
Step 1

enable

Example:


Device> enable 

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2

configure terminal

Example:


Device# configure terminal

Enters global configuration mode.

Step 3

router ospfv3 process-id

Example:

Device(config)# router ospfv3 1

Configures an OSPFv3 routing process.

Step 4

address-family ipv6 [unicast] [vrf vrf-name]

Example:

Device(config-router)# address-family ipv6 unicast

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:

Device(config-router-af)# redistribute eigrp 10

Redistributes routes from one routing domain into another routing domain.

Step 6

redistribute maximum-prefix maximum [threshold]

Example:

Device(config-router-af)# redistribute maximum-prefix 100 80

Sets a maximum number of IPv6 prefixes that are allowed to be redistributed into OSPFv3.

  • There is no default value for the maximum argument.

  • The threshold value defaults to 75 percent.

Note 

If the warning-only keyword had been configured in this command, no limit would be enforced; a warning message is simply logged.

Step 7

exit-address-family

Example:

Device(config-router-af)# exit-address-family

Exits IPv6 address family configuration mode.

Step 8

end

Example:

Device(config-router)# end

Exits router configuration mode.

Requesting a Warning About the Number of Routes Redistributed into OSPFv3

To request a warning about the number of routes redistributed into OSPFv3, perform this procedure:

Procedure

  Command or Action Purpose
Step 1

enable

Example:

Device> enable 

Enables privileged EXEC mode.

Enter your password if prompted.

Step 2

configure terminal

Example:

Device# configure terminal

Enters global configuration mode.

Step 3

router ospfv3 process-id

Example:

Device(config)# router ospfv3 1

Configures an OSPFv3 routing process.

Step 4

address-family ipv6 [unicast] [vrf vrf-name]

Example:

Device(config-router)# address-family ipv6 unicast

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:

Device(config-router-af)# redistribute eigrp 10

Redistributes routes from one routing domain into another routing domain.

Step 6

redistribute maximum-prefix maximum [threshold ] warning-only

Example:

Device(config-router-af)# redistribute maximum-prefix 100 80 warning-only

Causes a warning message to be logged when the maximum number of IP prefixes has been redistributed into OSPFv3.

  • Because the warning-only keyword is included, no limit is imposed on the number of redistributed prefixes into OSPFv3.

  • There is no default value for the maximum argument

  • The threshold value defaults to 75 percent.

  • This example causes two warnings: one at 80 percent of 1000 (800 routes redistributed) and another at 1000 routes redistributed

Step 7

end

Example:

Device(config-router)# end

Exits router configuration mode.

Information About OSPFv3 Limit on Number of Redistributed Routes

OSPFv3 supports a user-defined maximum number of prefixes (routes) that are allowed to be redistributed into OSPFv3 from other protocols or other OSPFv3 processes. Such a limit could help prevent the device from being flooded by too many redistributed routes

For example, if large number of IPv6 routes are sent into OSPFv3, for a network that allows redistributing Border Gateway Protocol (BGP) into OSPFv3, the network can be severely flooded. Limiting the number of redistributed routes prevents this potential problem.

Prerequisites for OSPFv3 Limit on Number of Redistributed Routes

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.

Restrictions for OSPFv3 Limit on Number of Redistributed Routes

This feature is supported only for IPv6 address family.