Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

allow

Syntax

Hierarchy Level

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.