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

enforce-first-as

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
enforce-first-as;

Hierarchy Level

content_copy zoom_out_map
[edit fabric protocols bgp],   
[edit fabric protocols bgp group group_name],      
[edit fabric protocols bgp group group_name neighbor address],  
[edit logical-systems name],
[edit logical-systems name protocols bgp],     
[edit logical-systems name protocols bgp group group_name],     
[edit logical-systems name protocols bgp group group_name neighbor address],       
[edit logical-systems name routing-instances instance_name protocols bgp],      
[edit logical-systems name routing-instances instance_name protocols bgp group group_name],    
[edit logical-systems name routing-instances instance_name protocols bgp group group_name  neighbor address],
[edit protocols bgp],
[edit protocols bgp group group-name],
[edit protocols bgp group group-name neighbor neighbor-address],
[edit routing-instances instance_name protocols bgp],      
[edit routing-instances instance_name protocols bgp group group_name],      
[edit routing-instances instance_name protocols bgp group group_name neighbor address]

Description

Enforce that the first (left-most) autonomous system number (ASN) in AS-path is the previous neighbor's ASN. When configured, this statement enforces that as the domain is transited, the routes received from an EBGP peer have the peer’s ASN in the left-most position of the AS path.

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 15.1.

footer-navigation