listen-limit

Sets a global limit of BGP dynamic subnet range neighbors.

Syntax

listen-limit max-num
no listen-limit

Command Default

The default listen limit value is 100.

Parameters

max-num
Specifies the listen limit value. Valid values range from 1 through 255.

Modes

BGP configuration mode

Usage Guidelines

The no form of the command restores the default value.

This command supports only IPv4 BGP.

When the global or peer level limit is increased, any new connection is accepted when it comes in from the remote end and falls under the range.

If the limit has been reached and you reduce the global or peer-group limit, the previously ESTABLISHED dynamic neighbors are not destroyed. You must use the clear neighbor command.

When the new sessions are created, the device uses the updated limit. If the limit has been reached and a request for new connection is received, the connections are not accepted and the information is logged.

Examples

The following example limits the number of dynamic neighbors that can be created to 150 globally.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# listen-limit 150

The following example restores the number of dynamic neighbors that can be created to the default value of 100.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# no listen-limit