303
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
redistribute maximum-prefix (OSPF)
redistribute maximum-prefix (OSPF)
To limit the number of routes redistributed into Open Shortest Path First (OSPF), use the redistribute
maximum-prefix command. To return to the default setting, use the no form of this command.
redistribute maximum-prefix max [threshold] [warning-only | withdraw [num-retries timeout]]
no redistribute maximum-prefix max [threshold] [warning-only | withdraw [num-retries
timeout]]
Syntax Description
Command Default No limit
Command Modes Router configuration mode
VRF configuration mode
Command History
Usage Guidelines Use the clear ip ospf redistribute command if all routes are withdrawn.
This command requires the LAN Enterprise Services license.
Examples This example shows how to limit the number of redistributed routes into OSPF:
switch# configure terminal
switch(config)# router ospf 201
switch(config-router)# redistribute bgp route-map FilterExternalBGP
switch(config-router)# redistribute maximum-prefix 1000 75
switch(config-router)#
max Maximum number of prefixes that OSPF will distribute. The range is from
0 to 65535.
threshold (Optional) Percentage of maximum prefixes that triggers a warning
message. The range is from 1 to 100. The default is 75 percent.
warning-only (Optional) Logs a warning message when the maximum number of prefixes
is exceeded.
widthdraw (Optional) Withdraws all redistributed routes.
num-retries (Optional) Number of times OSPF tries to retrieve the redistributed routes.
The range is from 1 to 12. The default is 1.
timeout (Optional) Time between retry attempts. The range is from 60 to 600
seconds. The default is 300.
Release Modification
5.0(3)A1(1) This command was introduced.