R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101

347
A peer group is an iBGP peer group if peers in it belong to the same AS, and is an eBGP peer group if
peers in it belong to different ASs.
If a peer group has peers added, you cannot remove its AS number by using the undo form of the
command, and you cannot change its AS number.
1. Configure an iBGP peer group
After you create an iBGP peer group and then add a peer into it, the system creates the peer in BGP view
and specifies the local AS number for the peer.
Follow these steps to configure an iBGP peer group:
To do… Use the command…
Remarks
Enter system view system-view
Enter BGP view bgp as-number
Create an iBGP peer group group group-name [ internal ] Required
Add a peer into the iBGP peer group peer ip-address group group-name Required
2. Configure an eBGP peer group
If peers in an eBGP group belong to the same external AS, the eBGP peer group is a pure eBGP peer
group; if not, it is a mixed eBGP peer group.
Use one of the following approaches to configure an eBGP peer group:
Create the eBGP peer group, specify its AS number, and add peers into it. All the added peers
share the same AS number.
Create the eBGP peer group, specify an AS number for a peer, and add the peer into the peer
group.
Create the eBGP peer group and add a peer into it with an AS number specified.
Follow these steps to configure an eBGP peer group using the first approach:
To do… Use the command…
Remarks
Enter system view system-view
Enter BGP view bgp as-number
Create an eBGP peer group group group-name external Required
Specify the AS number for the group peer group-name as-number as-number Required
Add a peer into the group peer ip-address group group-name Required
NOTE:
Do not specify an AS number for a peer before adding it into the peer group.
All of the added peers have the same AS number as that of the peer group.
Follow these steps to configure an eBGP peer group using the second approach:
To do… Use the command…
Remarks
Enter system view system-view
Enter BGP view bgp as-number
Create an eBGP peer group group group-name external Required