Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Limiting the Number of Paths and Prefixes Accepted from CE Routers in Layer 3 VPNs

You can configure a maximum limit on the number of prefixes and paths that can be installed into the routing tables. Using prefix and path limits, you can curtail the number of prefixes and paths received from a CE router in a VPN. Prefix and path limits apply only to dynamic routing protocols, and are not applicable to static or interface routes.

To limit the number of paths accepted by a PE router from a CE router, include the maximum-paths statement:

maximum-paths path-limit <log-interval interval | log-only | threshold percentage>;

For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.

Specify the log-only option to generate warning messages only (an advisory limit). Specify the threshold option to generate warnings before the limit is reached. Specify the log-interval option to configure the minimum time interval between log messages.

There are two modes for route limits: advisory and mandatory. An advisory limit triggers warnings. A mandatory limit rejects additional routes after the limit is reached.

Note: Application of a route limit may result in unpredictable dynamic routing protocol behavior. For example, when the limit is reached and routes are rejected, BGP may not reinstall the rejected routes after the number of routes drops back below the limit. BGP sessions may need to be cleared.

To limit the number of prefixes accepted by a PE router from a CE router, include the maximum-prefixes statement:

maximum-prefixes prefix-limit <log-interval interval | log-only | threshold percentage>;

For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.

There are two modes for route limits: advisory and mandatory. An advisory limit triggers warnings. A mandatory limit rejects additional routes after the limit is reached.

Note: Application of a route limit may result in unpredictable dynamic routing protocol behavior. For example, when the limit is reached and routes are rejected, BGP may not reinstall the rejected routes after the number of routes drops back below the limit. BGP sessions may need to be cleared.

A mandatory path or prefix limit, in addition to triggering a warning message, rejects any additional paths or prefixes once the limit is reached.

Note: Setting a path or prefix limit might result in unpredictable dynamic routing protocol behavior.

You can also configure the following options for both the maximum-paths and maximum-prefixes statements:

  • log-interval—Specify the interval at which log messages are sent. This option generates warning messages only (an advisory limit).

    Specify the log-interval option to configure the minimum time interval between log messages.

  • log-only—Generate warning messages only. No limit is placed on the number of paths or prefixes stored in the routing tables.
  • threshold—Generate warning messages after the specified percentage of the maximum paths or prefixes has been reached.

Published: 2013-07-31

Published: 2013-07-31