Supported Platforms
allow
Syntax
Hierarchy Level
Release Information
Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 9.0 for EX Series switches.
Statement introduced in Junos OS Release 11.3 for the QFX Series.
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.
![]() | Note: You cannot define a BGP group with dynamic peers with BGP authentication enabled. |
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.
![]() | Note: You cannot define a BGP group with dynamic peers with authentication enabled. |
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.