CONFIG-ROUTERBGP mode
neighbor peer-group-name no shutdown
By default, all peer groups are disabled.
3. Create a BGP neighbor.
CONFIG-ROUTERBGP mode
neighbor ip-address remote-as as-number
4. Enable the neighbor.
CONFIG-ROUTERBGP mode
neighbor ip-address no shutdown
5. Add an enabled neighbor to the peer group.
CONFIG-ROUTERBGP mode
neighbor ip-address peer-group peer-group-name
6. Add a neighbor as a remote AS.
CONFIG-ROUTERBGP mode
neighbor {ip-address | peer-group name} remote-as as-number
Formats: IP Address A.B.C.D
• 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, configure the as-number parameter with a number
different from the BGP as-number configured in the router bgp as-number command.
To add an internal BGP (IBGP) neighbor, configure the as-number parameter with the same BGP as-
number configured in the router bgp as-number command.
Examples of Working with Peer Groups
After you create a peer group, you can use any of the commands beginning with the keyword neighbor
to configure that peer group.
When you add a peer to a peer group, it inherits all the peer group’s configured parameters.
A neighbor cannot become part of a peer group if it has any of the following commands configured:
• neighbor advertisement-interval
• neighbor distribute-list out
• neighbor filter-list out
• neighbor next-hop-self
• neighbor route-map out
• neighbor route-reflector-client
• neighbor send-community
174
Border Gateway Protocol IPv4 (BGPv4)