listen-limit

Sets a global limit for BGP4 or BGP4+ 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.

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 BGP4 dynamic neighbors that can be created to 150 globally.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# listen-limit 150
**Warning: The dynamic neighbor range limit has been changed. Please use 
clear bgp neighbor dynamic command for limit to take effect.
device(config-bgp-router)# clear ip bgp neighbor dynamic all

The following example restores the number of BGP4+ 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 
**Warning: The dynamic neighbor range limit has been changed. Please use 
clear bgp neighbor dynamic command for limit to take effect.
device(config-bgp-router)# clear ipv6 bgp neighbor dynamic all