852 CHAPTER 56: BGP CONFIGURATIONc CAUTION:■ You need not specify the AS number when creating an IBGP peer group.■ If there are peers in a peer group, you can neither change the AS number ofthe group nor use the undo command to remove the AS number■ You need specify the AS number for each peer in a mixed EBGP peer grouprespectively.Configuring BGPCommunityTo configure BGP community, use the following commands:c CAUTION:■ When configuring BGP community, you need to configure a routing policy todefine the community attribute, and apply the routing policy to routeadvertisement.■ For routing policy configuration, refer to “Routing Policy Configuration” onpage 991.Configurea pureEBGP peergroupCreate an EBGP peergroupgroup group-nameexternalOptionalYou can add multiple peers intothe group. The system willcreate these peers automaticallyand specify the local AS numberas their AS in BGP view.Specify the AS numberfor the grouppeer group-nameas-number as-numberAdd a peer into thegrouppeer ip-address groupgroup-name[ as-numberas-number ]Configurea mixedEBGP peergroupCreate an EBGP peergroupgroup group-nameexternalOptionalYou can add multiple peers intothe group.Specify a peer and theAS number for thepeer respectivelypeer ip-addressas-number as-numberAdd a peer into thegrouppeer ip-address groupgroup-name[ as-numberas-number ]To do... Use the command... RemarksTo do... Use the command... RemarksEnter system view system-view -Enter BGP view bgp as-number -Advertise thecommunityattribute to apeer/peer groupAdvertise thecommunity attribute toa peer/peer grouppeer { group-name |ip-address }advertise-communityRequiredNot configured bydefaultAdvertise the extendedcommunity attribute toa peer/peer grouppeer { group-name |ip-address }advertise-ext-communityApply a routing policy to routes advertisedto a peer/peer grouppeer { group-name |ip-address }route-policyroute-policy-nameexportRequiredNot configured bydefault