group (Protocols BGP)
语法
group group-name { advertise-bgp-static advertise-inactive; allow [ network/mask-length ]; authentication-key key; cluster cluster-identifier; damping; description text-description; enforce-first-as; export [ policy-names ]; family { (inet | inet6 | inet-vpn | inet6-vpn | l2-vpn) { (any | multicast | unicast | signaling) { accepted-prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } add-path { receive; send { include-backup-path backup_path_number; multipath; path-count number; path-selection-mode { (all-paths | equal-cost-paths); } prefix-policy [ policy-names ]; } } aigp [disable]; damping; prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } rib-group group-name; topology name { community { target identifier; } } } flow { no-validate policy-name; } labeled-unicast { accepted-prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } explicit-null { connected-only; } prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } resolve-vpn; rib inet.3; rib-group group-name; } } route-target { accepted-prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } advertise-default; external-paths number; prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } } } graceful-restart { long-lived { receiver { enable: disable; } advertise-to-non-llgr-neighbor { omit-no-export; } } } graceful-restart { long-lived { disable-notification-flag; disable-notification-extensions { omit-no-export; } forwarding-state-bit (from-fib | set); /* Configurable to be common for all address families */ forwarding-state-bit (as-rr-client | from-fib); /* Configurable for each address family */ restarter { disable; stale-time interval; } } } hold-time seconds; import [ policy-names ]; ipsec-sa ipsec-sa; keep (all | none); local-address address; local-as autonomous-system <private>; local-preference local-preference; log-updown; link-bandwith auto-sense; metric-out metric; multihop <ttl-value>; multipath { multiple-as; } mvpn-iana-rt-import; no-aggregator-id; no-client-reflect; out-delay seconds; passive; peer-as autonomous-system; preference preference; remove-private; rfc6514-compliant-safi129; send-non-transitive-link-bandwidth; tcp-aggressive-transmission; tcp-mss segment-size; traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; } type type; neighbor address { ... peer-specific-options ... } }
层次结构级别
[edit logical-systems logical-system-name protocols bgp], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp], [edit protocols bgp], [edit protocols bgp family prefix-limit (inet | inet6)(any | flow | labeled-unicast | multicast | unicast)], [edit routing-instances routing-instance-name protocols bgp]
描述
定义 BGP 对等组。BGP 对等方组共享通用类型、对等自治系统 (AS) 编号和群集 ID(如果存在)。要配置多个 BGP 组,请包含多个 group
语句。
默认情况下,组的选项与全局 BGP 选项相同。要覆盖全局选项,请在语句中包含 group
特定于组的选项。
该 group
语句是在路由设备上运行 BGP 时必须包含在配置中的语句之一。
每个组必须至少包含一个对等方,并且最多可以建立 2048 个对等方。在建立 BGP 会话之前,RPD 会检查组的已建立对等计数。如果对等计数大于 2048,则 BGP 会话失败。
选项
group-name | BGP 组的名称 |
link-bandwith auto-sense | 启用此选项可自动检测朝向对等方的带宽,并将链路带宽值附加到接收 BGP 路由的接口速度。这可以防止在接口的链路带宽发生变化时出现策略变动。请确保还在导入策略中包含语句 |
send-non-transitive-link-bandwidth | 启用此选项可仅针对链路带宽社区向 EBGP 邻接方发送非传递链路带宽扩展社区。所有带有社区值的非传递链路带宽都会被公布,包括发起或接收以及重新通告的 link-bw 社区。 |
其余语句将单独解释。请参阅 CLI 资源管理器。
所需权限级别
路由 - 在配置中查看此语句。
路由控制 - 将此语句添加到配置中。
发布信息
在 Junos OS 7.4 版之前引入的语句。
link-bandwith auto-sense
,以及 send-non-transitive-link-bandwidth
Junos OS 24.2R1 版中引入的选项。