Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

loops (Autonomous System)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
loops number;

Hierarchy Level

content_copy zoom_out_map
[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.

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.

footer-navigation