Supported Platforms
Related Documentation
- ACX, J, M, MX, SRX, T Series
- OSPF Configuration Overview
- ACX, M, MX, T Series
- Understanding OSPF Route Summarization
- ACX, M, MX, PTX, QFX, T Series
- Example: Summarizing Ranges of Routes in OSPF Link-State Advertisements
Example: Limiting the Number of Prefixes Exported to OSPF
This example shows how to limit the number of prefixes exported to OSPF.
Requirements
Before you begin:
- Configure the device interfaces. See the Junos® OS Network Interfaces.
- Configure the router identifiers for the devices in your OSPF network. See Example: Configuring an OSPF Router Identifier.
- Control OSPF designated router election. See Example: Controlling OSPF Designated Router Election
- Configure a single-area OSPF network. See Example: Configuring a Single-Area OSPF Network.
- Configure a multiarea OSPF network. See Example: Configuring a Multiarea OSPF Network.
Overview
By default, there is no limit to the number of prefixes (routes) that can be exported into OSPF. By allowing any number of routes to be exported into OSPF, the routing device can become overwhelmed and potentially flood an excessive number of routes into an area.
You can limit the number of routes exported into OSPF to minimize the load on the routing device and prevent this potential problem. If the routing device exceeds the configured prefix export value, the routing device purges the external prefixes and enters into an overload state. This state ensures that the routing device is not overwhelmed as it attempts to process routing information. The prefix export limit number can be a value from 0 through 4,294,967,295.
In this example, you configure a prefix export limit of 100,000 by including the prefix-export-limit statement.
Configuration
CLI Quick Configuration
To quickly limit the number of prefixes exported to OSPF, copy the following command and paste it into the CLI.
Step-by-Step Procedure
To limit the number of prefixes exported to OSPF:
- Configure the prefix export limit value.
Note: For OSPFv3, include the ospf3 statement at the [edit protocols] hierarchy level.
[edit]user@host# set protocols ospf prefix-export-limit 100000 - If you are done configuring the device, commit the configuration.[edit]user@host# commit
Results
Confirm your configuration by entering the show protocols ospf command. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
To confirm your OSPFv3 configuration, enter the show protocols ospf3 command.
Verification
Confirm that the configuration is working properly.
Verifying the Prefix Export Limit
Purpose
Verify the prefix export counter that displays the number or routes exported into OSPF.
Action
From operational mode, enter the show ospf overview command for OSPFv2, and enter the show ospf3 overview command for OSPFv3.
Related Documentation
- ACX, J, M, MX, SRX, T Series
- OSPF Configuration Overview
- ACX, M, MX, T Series
- Understanding OSPF Route Summarization
- ACX, M, MX, PTX, QFX, T Series
- Example: Summarizing Ranges of Routes in OSPF Link-State Advertisements
Published: 2012-12-08
Supported Platforms
Related Documentation
- ACX, J, M, MX, SRX, T Series
- OSPF Configuration Overview
- ACX, M, MX, T Series
- Understanding OSPF Route Summarization
- ACX, M, MX, PTX, QFX, T Series
- Example: Summarizing Ranges of Routes in OSPF Link-State Advertisements