OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Commands : neighbor peer-group
neighbor peer-group
Use this command to add a neighbor to an existing peer group. Neighbors with the same update policies are grouped into peer groups. This facilitates the updates of various policies, such as distribute and filter lists. The peer group is then configured easily with any of the neighbor commands. Any changes made to the peer group affect all members.
See Usage below for when a peer group and a neighbor have conflicting attribute configurations.
To create a peer group, use the neighbor WORD peer-group command, and then use this command to add neighbors to the group.
Use the no parameter with this command to remove a neighbor from a named peer group.
Command Syntax
neighbor (A.B.C.D|X:X::X:X) peer-group WORD
no neighbor (A.B.C.D|X:X::X:X) peer-group WORD
For BGP unnumbered mode:
neighbor WORD peer-group WORD
no neighbor WORD peer-group WORD
Parameters
A.B.C.D
Address of the BGP neighbor in IPv4 format
X:X::X:X
Address of the BGP neighbor in IPv6 format
WORD
Peer group name
Default
No default value is specified
Command Mode
Router mode and BGP unnumbered mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#router bgp 10
(config-router)#neighbor group1 peer-group
 
For unnumbered peer below configuration is given in BGP unnumbered-mode.
Note: For unnumbered peer we use peergroup key word to bind the unnumbered peer in group.
(config)#router bgp 100
(config-router)#bgp unnumbered-mode
(config-router-unnum)#neighbor eth1 peergroup ipi
 
Usage
When a peer group and a peer (neighbor) have conflicting attribute configurations the following rules apply:
Outbound attribute configurations of a peer group replace peer member configurations of the same attributes when a peer becomes member of that peer group. Outbound attribute modifications to group members are not allowed.
A peer group member’s inbound attribute configurations take precedence over the peer group configuration.
These commands control outbound attribute updates:
neighbor distribute-list with an access-list number and the out parameter
neighbor filter-list with the out parameter
neighbor prefix-list with an access-list name and the out parameter
neighbor route-map with the out parameter
These commands control inbound attribute updates:
neighbor distribute-list with an access-list number and the in parameter
neighbor filter-list with the in parameter
neighbor prefix-list with an access-list name and the in parameter
neighbor route-map with the in parameter
Last modified date: 08/28/2023