Use this command to sets a maximum length of the AS path attribute allowed when all match clauses match for this route map.
limit | Specifies the maximum length of the AS path attribute that will be allowed. Valid values are 0 - 255. Default Value is 0 (not set). |
None.
BGP route map configuration.
BGP allows attributes such as the AS path to be attached to every advertised IP prefix. The total length of BGP attributes attached to a single IP prefix can be very large. IP prefixes with an excessive amount of attribute data residing in the BGP table can result in significant memory utilization. The set as-path-limit command sets the maximum AS path length allowed when all match clauses match for this route map.
The default value for the set as-path-limit command is no AS path limit is set.
The no set as-path-limit command resets the allowed length of the AS path attribute when all match clauses match for this route map to the default value of no AS path length is set.
This example shows how to set the maximum length of the AS path attribute when all match clauses in the bgprm1 route map match to 20:
System(su)->configure System(su-config)->route-map bgp bgprm1 permit System(su-config-route-map-bgp)->set as-path-limit 20 System(su-config-route-map-bgp)->