Causes the device to discard routes received in UPDATE messages if those routes exceed a maximum AS path length.
This command is disabled by default.
BGP configuration mode
BGP address-family IPv4 unicast VRF configuration mode
BGP address-family IPv6 unicast VRF configuration mode
Use the no form of this command to remove this configuration.
This example changes the length of the maximum allowed AS path length from the default.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor 10.11.12.13 maxas-limit in 200
This example prevents a neighbor from inheriting the configuration from the peer group or global configuration and instead use the default system value.
device# configure terminal device(config)# router bgp device(config-bgp-router)# neighbor 2001:2018:8192::125 maxas-limit in disable