- prefix-limit {
- maximum number;
- teardown <percentage> <idle-timeout
(forever | minutes)>;
- }
- [edit logical-systems logical-system-name protocols bgp family (inet | inet6) (any
| flow | labeled-unicast | multicast | unicast)],
- [edit logical-systems logical-system-name protocols bgp group group-name family (inet | inet6) (any | flow | labeled-unicast
| multicast | unicast)],
- [edit logical-systems logical-system-name protocols bgp group group-name neighbor address family (inet |
inet6) (any | flow | labeled-unicast | multicast | unicast)],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
bgp family (inet | inet6) (any | flow
| labeled-unicast | multicast | unicast)],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols
bgp group group-name family (inet | inet6) (any | flow | labeled-unicast | multicast
| unicast)],
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp
group group-name neighbor address family (inet |
inet6) (any | flow | labeled-unicast | multicast | unicast)],
- [edit protocols bgp family (inet
| inet6) (any | flow | labeled-unicast | multicast | unicast)],
- [edit protocols bgp group group-name family (inet | inet6) (any | labeled-unicast
| multicast | unicast)],
- [edit protocols bgp group group-name neighbor address family (inet | inet6) (any | flow | labeled-unicast
| multicast | unicast)],
- [edit routing-instances routing-instance-name protocols bgp family (inet | inet6) (any |
flow | labeled-unicast | multicast | unicast)],
- [edit routing-instances routing-instance-name protocols bgp group group-name family (inet | inet6) (any | flow | labeled-unicast
| multicast | unicast)],
- [edit routing-instances routing-instance-name protocols bgp group group-name neighbor address family (inet |
inet6) (any | flow | labeled-unicast | multicast | unicast)]
Statement introduced before JUNOS Release 7.4.
Limit the number of prefixes received on a BGP peering session and a rate-limit logging when injected prefixes exceed a set limit.
maximum number—When you set the maximum number of prefixes, a message is logged when that number is exceeded.
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 exceeds that percentage. After the session is torn down, it is reestablished in a short time unless you include the idle-timeout statement. Then the session can be kept down for a specified amount of time, or forever. If you specify forever, the session is reestablished only after you issue a clear bgp neighbor command.
idle-timeout (forever | timeout-in-minutes)—(Optional) If you include the idle-timeout statement, 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 specify forever, the session is reestablished only after you intervene with a clear bgp neighbor command.
See Limiting the Number of Prefixes Received on a BGP Peering Session.
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.