Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

BGP "Invalid loop count configured" message during commit

0

0

Article ID: KB29794 KB Last Updated: 15 Feb 2017Version: 3.0
Summary:

This article describes the reason for getting the error message Invalid loop count configured while committing a configuration.

Symptoms:

In BGP when configuring the local-as loops <count>, the message error: configuration check-out failed is displayed and you cannot commit the configuration.

set routing-instances VPN-A instance-type vrf
set routing-instances VPN-A route-distinguisher 150.1.1.1:100
set routing-instances VPN-A vrf-target target:100:100
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 peer-as 20909
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 local-as 64512
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 local-as loops 2
set routing-instances VPN-B instance-type vrf
set routing-instances VPN-B route-distinguisher 150.1.1.1:200
set routing-instances VPN-B vrf-target target:200:200
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 peer-as 20101
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 local-as 64512
*** local-as loops not specified -- defaults to 1 ***

lab@MX480# commit check 
warning: Could not connect to re0 : No route to host
warning: Cannot connect to other RE, ignoring it
[edit routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1]
  'local-as'
    Invalid loop count configured
error: configuration check-out failed

[edit]
lab@MX480# show routing-instances | display set                    
set routing-instances VPN-A instance-type vrf
set routing-instances VPN-A route-distinguisher 150.1.1.1:100
set routing-instances VPN-A vrf-target target:100:100
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 peer-as 20909
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 local-as 64512
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 local-as loops 2
set routing-instances VPN-B instance-type vrf
set routing-instances VPN-B route-distinguisher 150.1.1.1:200
set routing-instances VPN-B vrf-target target:200:200
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 peer-as 20101
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 local-as 64512
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 local-as loops 3

[edit]
lab@MX480# commit check 

[edit routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1]
  'local-as'
    Invalid loop count configured
error: configuration check-out failed

[edit]
lab@MX480#

Cause:

This is an expected behavior in BGP because once you set the loops count for an AS number, it must be the same loop count for that AS number, wherever it is set (whether in the same routing instance or different routing instances).

This rule applies to the AS number in global routing-options as well.

Solution:

Once you configure the same loop count for the AS number 64512, you can commit this configuration.

set routing-instances VPN-A instance-type vrf
set routing-instances VPN-A route-distinguisher 150.1.1.1:100
set routing-instances VPN-A vrf-target target:100:100
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 peer-as 20909
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 local-as 64512
set routing-instances VPN-A protocols bgp group test-1 neighbor 1.1.1.1 local-as loops 2
set routing-instances VPN-B instance-type vrf
set routing-instances VPN-B route-distinguisher 150.1.1.1:200
set routing-instances VPN-B vrf-target target:200:200
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 peer-as 20101
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 local-as 64512
set routing-instances VPN-B protocols bgp group test-2 neighbor 1.1.1.1 local-as loops 2
 
[edit]
lab@MX480# commit check 

configuration check succeeds 

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search