listen-range

Associates a subnet range with a BGP4 or BGP4+ 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 IPv4 or IPv6 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

BGP address-family IPv6 unicast VRF configuration mode

Usage Guidelines

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 BGP4 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 
This example associates a subnet range of 2000:1:1::/48 with a peer group called "leaf-group."
device# configure terminal
device(config)# router bgp
device(config-bgp-router)# listen-range 2000:1:1::/48 peer-group leaf-group