neighbor (Protocols BGP)
语法
neighbor address { accept-remote-nexthop; advertise-bgp-static advertise-external <conditional>; advertise-inactive; (advertise-peer-as | no-advertise-peer-as); as-override; authentication-algorithm algorithm; authentication-key key; authentication-key-chain key-chain; cluster cluster-identifier; damping; description text-description; enforce-first-as; export [ policy-names ]; family { (inet | inet6 | inet-mvpn | inet6-mpvn | inet-vpn | inet6-vpn | iso-vpn | l2-vpn) { (any | flow | multicast | unicast | signaling) { accepted-prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } 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>; } aggregate-label { community community-name: } 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; topology name { community { target identifier; } } } } forwarding-context route-target { advertise-default; external-paths number; accepted-prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } } signaling { prefix-limit { maximum number; teardown <percentage> <idle-timeout (forever | minutes)>; drop-excess <percentage>; hide-excess <percentage>; } } } forwarding-context rti-name; graceful-restart { disable; restart-time seconds; stale-routes-time seconds; } hold-time seconds; import [ policy-names ]; ipsec-sa ipsec-sa; keep (all | none); local-address address; local-as autonomous-system <private>; local-interface interface-name; local-preference preference; log-updown; metric-out (metric | minimum-igp <offset> | igp <offset>); mtu-discovery; multihop <ttl-value>; multipath { multiple-as; } no-aggregator-id; no-client-reflect; out-delay seconds; passive; peer-as autonomous-system; preference preference; rfc6514-compliant-safi129; tcp-aggressive-transmission; tcp-mss segment-size; traceoptions { file filename <files number> <size size> <world-readable | no-world-readable>; flag flag <flag-modifier> <disable>; } vpn-apply-export; }
层次结构级别
[edit logical-systems logical-system-name protocols bgp group group-name], [edit logical-systems logical-system-name routing-instances routing-instance-name protocols bgp group group-name], [edit protocols bgp group group-name], [edit protocols bgp family prefix-limit (inet | inet6)(any | flow | labeled-unicast | multicast | unicast)], [edit routing-instances routing-instance-name protocols bgp group group-name]
描述
显式配置邻居(对等方)。要配置多个 BGP 对等方,请包含多个 neighbor
语句。
默认情况下,对等方的选项与组的选项相同。您可以通过在语句中包含 neighbor
特定于对等的选项语句来覆盖这些选项。
该neighbor
语句是可以包含在配置中的语句之一,用于在路由设备上定义最小 BGP 配置。(可以用语句代替allow all
neighbor
语句。)
注意:
在配置了增强型订阅者管理的 MX 系列路由器上,您可以使用此语句将订阅者的客户端 IP 地址静态置备为 BGP 邻居 IP 地址。仅 LNS 订阅者支持此功能。使用增强的订户管理时,还必须在[edit dynamic-profiles profile-name interfaces interface-name unit logical-unit-number]
层次结构级别配置routing-services
语句。
所需权限级别
路由 - 在配置中查看此语句。
路由控制 - 将此语句添加到配置中。
发布信息
在 Junos OS 7.4 版 之前引入的语句。