neighbor accept-lldp-neighbors

Enables automatic neighbor discovery for Border Gateway Protocol (BGP).

Syntax

neighbor peer-group-name accept-lldp-neighbors
no neighbor peer-group-name accept-lldp-neighbors

Command Default

By default, automatic neighbor discovery for BGP is disabled.

Parameters

peer-group-name
Specifies the name of a peer group: the properties of this peer group will be applied to BGP neighbors that are automatically discovered by Link Layer Discovery Protocol (LLDP).

Modes

BGP configuration mode

Usage Guidelines

Currently, automatic neighbor discovery is supported for only one peer group identifier.

The no form of the command disables the configuration.
Note

Note

The configuration remains enabled when at least one peer group configured with accept-lldp-neighbors is present.

Examples

The following example enables automatic neighbor discovery for BGP and applies the properties of a peer group named lldp-grp to new automatically-discovered neighbors.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor lldp-grp accept-lldp-neighbors

The following example disables automatic neighbor discovery for a peer group named lldp-grp.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# no neighbor lldp-grp accept-lldp-neighbors