Configuration Guide Vol. 3


13.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 group.

Table 13-15: List of configuration commands

Command name

Description

neighbor peer-group (assigning members)

Assigns a peer to a peer group.

neighbor peer-group (creating)

Creates a peer group.

(2) BGP4 Configuring a peer group

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

  1. (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.

  2. (config-router)# neighbor INTERNAL-GROUP remote-as 65531

    (config-router)# neighbor INTERNAL-GROUP soft-reconfiguration inbound

    (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) .

  3. (config-router)# neighbor EXTERNAL-GROUP peer-group

    (config-router)# neighbor EXTERNAL-GROUP send-community

    (config-router)# neighbor EXTERNAL-GROUP maximum-prefix 10000

    (config-router)# exit

    Creates a peer group (group identifier: EXTERNAL-GROUP) using the neighbor peer-group (creating) command, and performs optional settings.

  4. (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.

  5. (config)# router bgp 65531

    (config-router)# neighbor EXTERNAL-GROUP route-map SET_COM out

    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. Settings such as the AS number, optional settings, and advertising filters apply to the new member.

Command examples

  1. (config-router)# neighbor 172.16.2.2 peer-group INTERNAL-GROUP

    Assigns a peer (remote peer address: 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.

  2. (config-router)# neighbor 172.17.3.3 peer-group INTERNAL-GROUP

    Assigns a peer (remote peer address: 172.17.3.3) 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.

  3. (config-router)# neighbor 192.168.4.4 remote-as 65533

    (config-router)# neighbor 192.168.4.4 peer-group EXTERNAL-GROUP

    Creates a peer (remote peer address: 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.

  4. (config-router)# neighbor 192.168.5.5 remote-as 65534

    (config-router)# neighbor 192.168.5.5 peer-group EXTERNAL-GROUP

    Creates a peer (remote peer address: 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.