bgp maxas-limit

Syntax

bgp maxas-limit <NUMBER>

no bgp maxas-limit

Description

This command causes BGP to check the length of AS paths that are received in update messages and to discard routes where AS paths are greater than the specified length.

The no form of this command sets the limit to the default of 32.

Command context

config-bgp

Parameters

<NUMBER>

Specifies the number of AS Segments. Default: 32. Length: 1 to 32 characters.

Authority

Administrators

Examples

switch(config-bgp)# bgp maxas-limit 20
switch(config-bgp)# no bgp maxas-limit