29.5.1 BGP4 + peer group configuration
- <Structure of this section>
(1) List of configuration commands
The following tables list the commands used to configure BGP4 + peer groups.
Command name |
Description |
---|---|
neighbor peer-group (assigning members) |
Assigns a peer to a peer group. |
neighbor peer-group (creating) |
Creates a peer group. |
(2) Configuring BGP4 + Peer Groups
- Points to note
-
The example below shows how to create a peer group by using the neighbor peer-group (creating) command. Settings such as the AS number, optional settings, and advertising filters apply to all peers in the peer group.
Command examples
-
(config)# router bgp 65531
(config-router)# bgp router-id 172.16.2.100
(config-router)# neighbor INTERNAL-GROUP peer-group
Creates a peer group (group identifier: INTERNAL-GROUP) using the neighbor peer-group (creating) command.
-
(config-router)# neighbor INTERNAL-GROUP remote-as 65531
(config-router)# address-family ipv6
(config-router-af)# neighbor INTERNAL-GROUP soft-reconfiguration inbound
(config-router-af)# exit
(config-router)# neighbor INTERNAL-GROUP timers 30 90
Sets the AS number (AS:65531) and optional settings for the peer group (group identifier: INTERNAL-GROUP) .
-
(config-router)# neighbor EXTERNAL-GROUP peer-group
(config-router)# address-family ipv6
(config-router-af)# neighbor EXTERNAL-GROUP activate
(config-router-af)# neighbor EXTERNAL-GROUP send-community
(config-router-af)# top
Creates a peer group (group identifier: EXTERNAL-GROUP) using the neighbor peer-group (creating) command, and performs optional settings.
-
(config)# route-map SET_COM permit 10
(config-route-map)# set community 1000:1001
(config-route-map)# exit
Sets the community value 1000:1001 for the specified route-map.
-
(config)# router bgp 65531
(config-router)# address-family ipv6
(config-router-af)# neighbor EXTERNAL-GROUP route-map SET_COM out
(config-router-af)# exit
Sets an advertised route filter for the peer group (group identifier: EXTERNAL-GROUP).
(3) Settings for assigning BGP4 + peers to peer groups
- Points to note
-
The example below shows how to assign a peer to a peer group by using the neighbor peer-group (assigning members) command.
Command examples
-
(config-router)# neighbor 3ffe:172:16:2::2 peer-group INTERNAL-GROUP
Assigns a peer (remote peer address: 3ffe:172:16:2::2) to the peer group (group identifier: INTERNAL-GROUP) by using the neighbor peer-group (assigning members) command. The AS number 65531 set for the peer group will be used for the peer's AS number.
-
(config-router)# neighbor 3ffe:172:17:3::3 peer-group INTERNAL-GROUP
Neighbor peer-group(assigning members) Use the command to assign a peer (remote peer address:3ffe:172:17:3::3) to a peer group (group identifier:INTERNAL-GROUP). The AS number 65531 set for the peer group will be used for the peer's AS number.
-
(config-router)# neighbor 3ffe:192:168:4::4 remote-as 65533
(config-router)# neighbor 3ffe:192:168:4::4 peer-group EXTERNAL-GROUP
Creates a peer (remote peer address: 3ffe:192:168:4::4) and assigns it to a peer group (group identifier: EXTERNAL-GROUP). The AS number 65533 set for the peer will be used as its AS number.
-
(config-router)# neighbor 3ffe:192:168:5::5 remote-as 65534
(config-router)# neighbor 3ffe:192:168:5::5 peer-group EXTERNAL-GROUP
Sets a peer (remote peer address:3ffe:192:168:5::5) and assigns it to a peer group (group identifier:EXTERNAL-GROUP). AS number of the peer uses the 65534 specified for the peer.