allow
Syntax
allow (all | [ network/mask-length ]);
Hierarchy Level
[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.
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.