protocols bgp <asn> parameters maximum-as-limit <number>
Allows BGP routes with the AS_PATH or AS4_PATH attribute containing ASes lesser than the specified number. If the AS_PATH or AS4_PATH attribute contains ASes greater than the configured value, the update messages containing the AS_PATH or AS4_PATH attribute is ignored and the session is retained.
None.
- asn
-
The number for the AS in which this router resides. The numbers range from 1 through 4294967294. The subrange, 64512 through 65534, is reserved for private AS.
- number
- Number specifying the ASes in the AS_PATH or AS4_PATH attribute. The value ranges from 1 through 254.
Configuration mode.
protocols {
bgp asn {
parameters {
maximum-as-limit number
}
}
}
Use the set form of this command to allow BGP routes with AS_PATH or AS4_PATH attribute containing ASes lesser than the specified number.
Use the delete form of this command to delete BGP routes with AS_PATH or AS4_PATH attribute containing ASes lesser than the specified number.
When you configure this command and do a soft reset in the peer, the BGP table should flush out the prefixes that have an as-path length that is more than the configured maximum-as-limit value.
When soft-reconfiguration is enabled irrespective of the configured maximum-as-limit value, all the received prefixes should be stored in Adj-Rib-In, and then maximum-as-limit should be applied and prefixes with an as-path length more than the configured value should be flushed out of the BGP table. For more information on soft-reconfiguration, see protocols bgp <asn> neighbor <id> address-family ipv6-unicast soft-reconfiguration inbound.