maxas-limit

Imposes a limit on the number of autonomous systems in the AS-PATH attribute.

Syntax

maxas-limit in num
no maxas-limit in

Command Default

Disabled.

Parameters

in
Allows an AS-PATH attribute from any neighbor to impose a limit on the number of autonomous systems.
num
Range is from 0 through 300. The default is 300.

Modes

BGP configuration mode

Usage Guidelines

Use the no form of this command to restore the default.

Examples

This example sets the limit on the number of BGP4 autonomous systems in the AS-PATH attribute to 100.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv4 unicast
device(config-bgp-ipv4u)# maxas-limit in 100