Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

allow

date_range 12-Dec-23

Syntax

content_copy zoom_out_map
allow (all | [ network/mask-length ]);

Hierarchy Level

content_copy zoom_out_map
[edit logical-systems name protocols bgp group name],
[edit logical-systems name routing-instances name protocols bgp group name],
[edit protocols bgp group name],
[edit routing-instances name protocols bgp group name],
[edit logical-systems name protocols bgp group name dynamic-neighbor dyn-name],
[edit logical-systems name routing-instances name protocols bgp group name dynamic-neighbor dyn-name],
[edit logical-systems name tenants name routing-instances name protocols bgp group name dynamic-neighbor dyn-name],
[edit protocols bgp group name dynamic-neighbor dyn-name],
[edit routing-instances name protocols bgp group name dynamic-neighbor dyn-name]

Description

Implicitly configure BGP peers, allowing peer connections from any of the specified networks or hosts. To configure multiple BGP peers, configure one or more networks and hosts within a single allow statement or include multiple allow statements.

You can configure authentication for all implicitly configured peers at [edit protocols bgp group] level and to configure different authentication values for each prefix, you must configure allow under dynamic-neighbor dyn-name hierarchy.

You can limit the number of BGP sessions belonging to a given subnet using the peer-limit statement.

Note:

When set protocols bgp group group-name allow network is configured to accept dynamic BGP sessions, unconfigured-peer-graceful-restart statement should be configured to avoid traffic drop during graceful restart or graceful Routing Engine switchover.

Options

all—Allow all addresses, which is equivalent to 0.0.0.0/0 (or ::/0).

network/mask-length—IPv6 or IPv4 network number of a single address or a range of allowable addresses for BGP peers, followed by the number of significant bits in the subnet mask.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 7.4.

Statement introduced under [edit protocols bgp group group-name dynamic-neighbor dyn-name] hierarchy in Junos OS Release 19.1.

footer-navigation