Concept Guide

Table Of Contents
Conguring Peer Groups
To congure a peer group, use the following commands.
1 Enter the router conguration mode and the AS number.
CONFIG mode
router bgp as-number
2 Create a peer group by assigning a name to it.
CONFIG-ROUTER-BGP mode
neighbor peer-group-name peer-group
3 Enable the peer group.
CONFIG-ROUTER-BGP mode
neighbor peer-group-name no shutdown
By default, all peer groups are disabled.
4 Create a BGP neighbor.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address} remote-as as-number
5 Enable the neighbor.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address} no shutdown
NOTE
: You can use neighbor shutdown command to disable a BGP neighbor or a peer group.
6 Add an enabled neighbor to the peer group.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address | peer-group-name} peer-group peer-group-name
7 Add a neighbor as a remote AS.
CONFIG-ROUTER-BGP mode
neighbor {ip-address | ipv6-address | peer-group-name} remote-as as-number
peer-group Name: 16 characters.
as-number: the range is from 0 to 65535 (2-Byte) or 1 to 4294967295 | 0.1 to 65535.65535 (4-Byte) or 0.1 to 65535.65535
(Dotted format)
To add an external BGP (EBGP) neighbor, congure the as-number parameter with a number dierent from the BGP as-number
congured in the router bgp as-number command.
To add an internal BGP (IBGP) neighbor, congure the as-number parameter with the same BGP as-number congured in the
router bgp as-number command.
Examples of Viewing and Conguring Peer Groups
After you create a peer group, you can use any of the commands beginning with the keyword neighbor to congure that peer group.
When you add a peer to a peer group, it inherits all the peer group’s congured parameters.
A neighbor cannot become part of a peer group if it has any of the following commands congured:
BGP IP version 4 (BGPv4) Overview
199