listen-range

Associates a subnet range with a BGP peer group and sets the maximum number of BGP dynamic neighbors that can be created for this range.

Syntax

listen-range ip address/mask peer-group peer-group-name [ limit num ]
no listen-range ip address/mask peer-group peer-group-name

Command Default

Disabled.

Parameters

ip address/mask
Specifies an IP address and network mask.
peer-group peer-group-name
Specifies a peer group.
limit num
Specifies the listen limit value. Valid values range from 1 through 255.

Modes

BGP configuration mode

BGP address-family IPv4 unicast VRF configuration mode

Usage Guidelines

This command supports only IPv4 BGP. The no form of the command deletes the listen range and tears down all dynamic neighbors formed for this range.

Examples

This example associates a subnet range of 10.1.0.0/16 with a peer group called “mypeergroup” and sets the maximum number of BGP dynamic neighbors that can be created to 80.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# listen-range 10.1.0.0/16 peer-group mypeergroup limit 80