neighbor peer-group

Configures a BGP neighbor to be a member of a peer group.

Syntax

neighbor { ip-address | ipv6-address } peer-group string
no neighbor { ip-address | ipv6-address } peer-group string

Parameters

ip-address
Specifies the IPv4 address of the neighbor.
ipv6-address
Specifies the IPv6 address of the neighbor.
peer-group string
Specifies the name of a BGP peer group. The name can be up to 63 characters in length and can be composed of any alphanumeric character.

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 removes a neighbor from the peer group.

When a peer group is created, a warning is displayed to activate peer group for IPv6 address family.

When an IPv6 neighbor is added to a peer group, and the peer group is not activated for IPv6 address-family, a warning will be displayed.

Examples

The following example assigns a specified neighbor to a peer group called mypeergroup1.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# neighbor 10.11.12.13 peer-group mypeergroup1
  %Warning: Please activate Peer-group for IPv6 address-family

The following BGP4+ example, for VRF instance "red", assigns a specified neighbor to a peer group called mypeergroup1.

device# configure terminal
device(config)# router bgp
device(config-bgp-router)# address-family ipv6 unicast vrf red
device(config-bgp-ipv4u)# neighbor 2001:2018:8192::125 peer-group mypeergroup1
  %Warning: Please activate Peer-group for IPv6 address-family in default-vrf