BGP peer group reduces the amount of system resources (CPU and memory) necessary in an update generation. In addition, a BGP peer group also simplifies the BGP configuration of peers. It is recommended that administrator group together neighbors with identical outbound announcement policies.
Neighbors configured in different address-families could not belong to the same peer group. Neighbors configured in the same autonomous system and in different autonomous system could not belong to the same peer group.
The figure shown below depicts the topology setup used for this configuration.
Use the following commands to configure BGP routing.
Perform the following:
Configure Peer Group in Router ISS
iS5comm# configure terminal
iS5comm(config)# router bgp 100
iS5comm(config-router)# neighbor pgrp1 peer-group
iS5comm(config-router)# neighbor pgrp1 remote-as 100
iS5comm(config-router)# neighbor pgrp1 maximum-prefix 125
iS5comm(config-router)# neighbor pgrp1 timers keepalive 35
iS5comm(config-router)# neighbor pgrp1 transport connection-mode passive
iS5comm(config-router)# neighbor pgrp1 advertisement-interval 15
iS5comm(config-router)# neighbor pgrp1damp-peer-oscillations
iS5comm(config-router)# neighbor pgrp1route-reflector-client
iS5comm(config-router)# neighbor 14.0.0.1 peer-group pgrp1
iS5comm(config-router)# neighbor 15.0.0.2 peer-group pgrp1
iS5comm(config-router)# neighbor 16.0.0.2 peer-group pgrp1
Execute the following commands:
Configure internal BGP session inISS1
iS5comm# configure terminal
iS5comm(config)# router bgp 100
iS5comm(config-router)# neighbor 14.0.0.2 remote-as 100
Configure internal BGP session in ISS3
iS5comm# configure terminal
iS5comm(config)# router bgp 100
iS5comm(config-router)# neighbor 15.0.0.1 remote-as 100
Configure internal BGP session in ISS4
iS5comm# configure terminal
iS5comm(config)# router bgp 100
iS5comm(config-router)# neighbor 16.0.0.1 remote-as 100
Type the following:
iS5comm# show ip bgp peer-group
BGP peer-group is pgrp1, Remote AS 100
BGP Version 0
For address family: IPv4 Unicast
BGP neighbor is pgrp1,peer-group internal, members:
14.0.0.1 15.0.0.2 16.0.0.2
BGP Maximum Prefix Limit: 125
Connect Retry Count: 5
Peer Passive :Enabled
Damp Peer oscillatios:Enabled
Rfl Status :Client
In Route Map: -
Out Route Map: -
Type the following:
iS5comm# show ip bgp summary
BGP router identifier is 12.0.0.1, local AS number 100
BGP table version is 0
Neighbor Version AS MsgRcvd MsgSent Up/Down State/PfxRcd
-------- ------- -- ------- ------- ------- ------------
14.0.0.1 4 100 5 5 00:00:1:48 Established
15.0.0.2 4 100 5 5 00:00:1:48 Established
16.0.0.2 4 100 4 4 00:00:1:21 Established
Type the following:
iS5comm# show ip bgp neighbor
BGP neighbor is 14.0.0.1, remote AS 100, internal link
BGP version 4, remote router ID 14.0.0.1
BGP state = Established, up for 1 minute 56 seconds, un-authenticated session
Configured BGP Maximum Prefix Limit 125
DampPeer Oscillations ENABLED
Configured Connect Retry Count 5
Current Connect Retry Count 0
Peer Passive : ENABLED
Peer Status : NOT DAMPED
Idlehold time is 60 Rcvd update before 0 secs, hold time is 90, keepalive interval is 35 secs
Neighbors Capability:
Route-Refresh: Advertised and received
Address family IPv4 Unicast: Advertised and received
Received 5 messages, 0 Updates
Sent 5 messages, 0 Updates
Route refresh: Received 0, sent 0.
Minimum time between advertisement runs is 15 seconds
Connections established 2 time(s)
Local host: 14.0.0.2, Local port: 179
Foreign host: 14.0.0.1, Foreign port: 49153
Last Error: Code 0, SubCode 0.
BGP neighbor is 15.0.0.2, remote AS 100, internal link
BGP version 4, remote router ID 15.0.0.2
BGP state = Established, up for 1 minute 56 seconds, un-authenticated session
Configured BGP Maximum Prefix Limit 125
DampPeer Oscillations ENABLED
Configured Connect Retry Count 5
Current Connect Retry Count 0
Peer Passive : ENABLED
Peer Status : NOT DAMPED
Idlehold time is 60 Rcvd update before 0 secs, hold time is 90, keepalive interval is 35 secs
Neighbors Capability:
Route-Refresh: Advertised and received
Address family IPv4 Unicast: Advertised and received
Received 5 messages, 0 Updates
Sent 5 messages, 0 Updates
Route refresh: Received 0, sent 0.
Minimum time between advertisement runs is 15 seconds
Connections established 2 time(s)
Local host: 15.0.0.1, Local port: 179
Foreign host: 15.0.0.2, Foreign port: 49153
Last Error: Code 0, SubCode 0.
BGP neighbor is 16.0.0.2, remote AS 100, internal link
BGP version 4, remote router ID 16.0.0.2
BGP state = Established, up for 1 minute 26 seconds, un-authenticated session
Configured BGP Maximum Prefix Limit 125
DampPeer Oscillations ENABLED
Configured Connect Retry Count 5
Current Connect Retry Count 0
Peer Passive : ENABLED
Peer Status : NOT DAMPED
Idlehold time is 60 Rcvd update before 0 secs, hold time is 90, keepalive interval is 35 secs
Neighbors Capability:
Route-Refresh: Advertised and received
Address family IPv4 Unicast: Advertised and received
Received 4 messages, 0 Updates
Sent 4 messages, 0 Updates
Route refresh: Received 0, sent 0.
Minimum time between advertisement runs is 15 seconds
Connections established 2 time(s)
Local host: 16.0.0.1, Local port: 179
Foreign host: 16.0.0.2, Foreign port: 49152
Last Error: Code 0, SubCode 0.