loops (Autonomous System)
Syntax
loops number;
Hierarchy Level
[edit logical-systems logical-system-name protocols bgp local-as], [edit logical-systems logical-system-name protocols bgp group group-name local-as], [edit logical-systems logical-system-nameprotocols bgp group group-name neighbor address local-as], [edit logical-systems logical-system-name routing-options autonomous-system as-number], [edit protocols bgp local-as], [edit protocols bgp group group-name local-as], [edit protocols bgp group group-name neighbor address local-as], [edit routing-options autonomous-system as-number]
Description
Globally, for the local-AS BGP attribute, allow
the local device’s AS number to be in the received AS paths,
and specify the number of times detection of the local device’s
AS number in the AS_PATH attribute causes the route to hidden. For
example, if you configure loops 1
, the route is hidden
if the local device’s AS number is detected in the path one
or more times. This prevents routing loops and is the default behavior.
If you configure loops 2
, the route is hidden if the local
device’s AS number is detected in the path two or more times.
The behavior of this statement is slightly different from the loops (BGP Address Family) statement.
Options
number—Number of times detection of the AS number in the AS_PATH attribute causes the route to be hidden.
Range: 1 through 10
Default: 1
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 9.6.