prefix-limit
语法
prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; }
层次结构级别
[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 family prefix-limit (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)]
描述
限制在 BGP 对等会话上接收的前缀数,并在注入的前缀超过设定限制时进行速率限制日志记录。
此功能与 accepted-prefix-limit
功能相同,只是它针对收到的前缀而不是接受的前缀进行操作。
选项
maximum number |
设置最大前缀数时,当超过该数量时,将记录一条消息。
|
teardown <percentage> |
(可选)如果包含该 如果未配置该
|
idle-timeout (forever | timeout-in-minutes) |
(可选)如果包含该
|
drop-excess <percentage> |
(可选)如果包括该 |
hide-excess <percentage> |
(可选)如果包括该 若要从隐藏状态恢复路由,请运行以下命令以刷新路由并获取路由的完整重新评估:
|
您可以一次包含一个 teardown <percentage>
、 drop-excess <percentage>
或 hide-excess <percentage>
语句选项。
所需权限级别
路由 - 在配置中查看此语句。
路由控制 - 将此语句添加到配置中。
发布信息
在 Junos OS 7.4 版之前引入的语句。
drop-excess <percentage>
以及 hide-excess <percentage>
Junos OS 21.2 版中引入的选项。
drop-excess <percentage>
以及 hide-excess <percentage>
Junos OS 演化版 21.3R1 中引入的选项。