268
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.
To do…
Use the command…
Remarks
Step 1
Enter system view
system-view
—
Step 2
Enter BGP view
bgp
as-number
—
Step 3
Create an iBGP peer
group
group
group-name
[
internal
]
Required
Step 4
Add a peer into the
iBGP peer group
peer
ip-address
group
group-
name
Required
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.
The following are approaches for configuring 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
Step 1
Enter system view
system-view
—
Step 2
Enter BGP view
bgp
as-number
—
Step 3
Create an eBGP peer
group
group
group-name
external
Required
Step 4
Specify the AS number
for the group
peer
group-name
as-number
as-number
Required
Step 5
Add a peer into the
group
peer
ip-address
group
group-
name
Required
•
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.