Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

loops (Autonomous System)

Syntax

Hierarchy Level

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.

Note:

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.