Support Center > Search Results > SecureKnowledge Details
When using 'aspath-prepend-count' in routemap for BGP, the prepend count is not exported to the BGP peer
Symptoms
  • When configuring a routemap to publish routes to a BGP neighbor with 'aspath-prepend-count' greater than 1, the prepend count is ignored and the AS will only appear once in the published path.

  • The prepend count is applied only if either 'action metic', or 'action localpref', or 'action tag', or 'action add_community' is also set in the routemap.

  • Example of the issue:

    1. Configure the following routemap:

      HostName> set routemap network-to-bgp id 10 on
      HostName> set routemap network-to-bgp id 10 allow
      HostName> set routemap network-to-bgp id 10 match network 10.10.10.0/24 all
      HostName> set routemap network-to-bgp id 10 match protocol direct
      HostName> set routemap network-to-bgp id 10 action aspath-prepend-count 6
      
    2. Export the routemap:

      HostName> set bgp external remote-as 20000 export-routemap "network-to-bgp" preference 1 on
      
    3. The prepend count is applied only if you also run the following command:

      HostName> set routemap network-to-bgp id 10 action metric value 100
      
Cause

Incomplete parsing of the routemap settings.


Solution
Note: To view this solution you need to Sign In .