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.
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.
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: