prefix-limit
Syntax
prefix-limit {
maximumnumber;teardown <percentage> <idle-timeout (forever |timeout-in-minutes)>;}Hierarchy Level
[edit protocols bgpfamilyinet (any | multicast | unicast)],[edit protocols bgp groupgroup-namefamilyinet (any | multicast | unicast)],[edit protocols bgp groupgroup-nameneighboraddressfamilyinet (any | multicast | unicast)],
[edit routing-instancesrouting-instance-nameprotocols bgpfamilyinet
(any|multicast|unicast)],[edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-namefamilyinet,
(any | multicast | unicast)][edit routing-instancesrouting-instance-nameprotocols bgp groupgroup-name
neighboraddressfamilyinet (any | multicast | unicast)]Description
Limit the number of prefixes received on a BGP peering and a rate-limit logging when injected prefixes exceed a set limit.
Options
maximumnumber—When you set the maximum number of prefixes, a message is logged when that number is reached.
Range: 1 through 4,294,967,295
teardown<percentage>—If you include the teardown statement, the session is torn down when the maximum number of prefixes is reached. If you specify a percentage, messages are logged when the number of prefixes reaches that percentage. Once the session is torn down, it will reestablish in a short time unless you include theidle-timeoutstatement. Then the session can be kept down for a specified amount of time, or forever. If you specifyforever, the session is reestablished only after you issue aclear bgp neighborcommand.
Range: 0 through 100
idle-timeout (forever |timeout-in-minutes)—If you include theidle-timeoutstatement, the session is torn down for a specified amount of time, or forever. If you specify a period of time, the session is allowed to reestablish after this timeout period. If you specifyforever, the session will be reestablished only after you intervene with aclear bgp neighborcommand.
Range: 0 through 2400Usage Guidelines
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.