![]() |
IP Routing: OSPF Configuration Guide, Cisco IOS Release 12.4T
|
|||||||||||||||||||||||||||||||||||
OSPF Limit on Number of Redistributed Routes
![]() |
||||||||||||||||||||||||||||||||||||
|
Contents
OSPF Limit on Number of Redistributed RoutesLast Updated: October 27, 2011
Open Shortest Path First (OSPF) supports a user-defined maximum number of prefixes (routes) that are allowed to be redistributed into OSPF from other protocols or other OSPF processes. Such a limit could help prevent the router from being flooded by too many redistributed routes.
Finding Feature InformationYour software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Prerequisites for OSPF Limit on Number of Redistributed RoutesIt is presumed that you have OSPF configured in your network, along with another protocol or another OSPF process you are redistributing. Information About OSPF Limit on Number of Redistributed RoutesIf someone mistakenly injects a large number of IP routes into OSPF, perhaps by redistributing Border Gateway Protocol (BGP) into OSPF, the network can be severely flooded. Limiting the number of redistributed routes prevents this potential problem. How to Configure OSPF Limit the Number of OSPF Redistributed RoutesThis section contains the following procedures, which are mutually exclusive. That is, you cannot both limit redistributed prefixes and also choose to be warned.
Limiting the Number of OSPF Redistributed RoutesThis task describes how to limit the number of OSPF redistributed routes. If the number of redistributed routes reaches the maximum value configured, no more routes will be redistributed. The redistribution limit applies to all IP redistributed prefixes, including summarized ones. The redistribution limit does not apply to default routes or prefixes that are generated as a result of Type-7 to Type-5 translation. DETAILED STEPS Requesting a Warning About the Number of Routes Redistributed into OSPFSUMMARY STEPS
DETAILED STEPS
Configuration Examples for OSPF Limit on Number of Redistributed Routes
Example OSPF Limit on Number of Redistributed RoutesThis example sets a maximum of 1200 prefixes that can be redistributed into OSPF 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. router ospf 1 router-id 10.0.0.1 domain-id 5.6.7.8 log-adjacency-changes timers lsa-interval 2 network 10.0.0.1 0.0.0.0 area 0 network 10.1.5.1 0.0.0.0 area 0 network 10.2.2.1 0.0.0.0 area 0 redistribute static subnets redistribute maximum-prefix 1200 80 Example Requesting a Warning About the Number of Redistributed RoutesThis 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. router ospf 1 network 10.0.0.0 0.0.0.255 area 0 redistribute eigrp 10 subnets redistribute maximum-prefix 600 85 warning-only Additional ReferencesMIBsTechnical Assistance
Feature Information for OSPF Limit on Number of Redistributed RoutesThe 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. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. © 2011 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||
|
|