How to configure BGP peer-group

Here is "How to configure BGP peer-group"

[ Assignement ]

All 4 routers are in AS 100 and linked in same Ethernet segment.
Establish BGP sessions, using Loopback 0 interface. Use RIPv2 as IGP.

[ IP Address Table ]

R1 – FastEthernet0/0 : 192.168.1.1/24
                 Loopback0 : 1.1.1.1/8
                 Loopback1 : 10.10.10.0/24

R2 – FastEthernet0/0 : 192.168.1.2/24
                 Loopback0 : 2.2.2.2/8
                 Loopback1 : 20.20.20.0/24

R3 – FastEthernet0/0 : 192.168.1.3/24
                 Loopback0 : 3.3.3.3/8
                 Loopback1 : 30.30.30.0/24

R4 – FastEthernet0/0 : 192.168.1.4/24
                 Loopback0 : 4.4.4.4/8
                 Loopback1 : 40.40.40.0/24

 

[ Network Outline ]

 picture for BGP-peer-group.png

[ R1 ]

router rip
 version 2
 network 1.0.0.0
 network 192.168.1.0
!
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 10.10.10.0 mask 255.255.255.0
 neighbor ibgp peer-group
 neighbor ibgp remote-as 100
 neighbor ibgp password showipbgp
 neighbor ibgp update-source Loopback0
 neighbor ibgp version 4
 neighbor 2.2.2.2 peer-group ibgp
 neighbor 3.3.3.3 peer-group ibgp
 neighbor 4.4.4.4 peer-group ibgp
 no auto-summary

 

[ R2 ]

router rip
 version 2
 network 2.0.0.0
 network 192.168.1.0
 no auto-summary
!
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 20.20.20.0 mask 255.255.255.0
 neighbor ibgp peer-group
 neighbor ibgp remote-as 100
 neighbor ibgp password showipbgp
 neighbor ibgp update-source Loopback0
 neighbor ibgp version 4
 neighbor 1.1.1.1 peer-group ibgp
 neighbor 3.3.3.3 peer-group ibgp
 neighbor 4.4.4.4 peer-group ibgp
 no auto-summary

 

[ R3 ]

router rip
 version 2
 network 3.0.0.0
 network 192.168.1.0
!
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 30.30.30.0 mask 255.255.255.0
 neighbor ibgp peer-group
 neighbor ibgp remote-as 100
 neighbor ibgp password showipbgp
 neighbor ibgp update-source Loopback0
 neighbor ibgp version 4
 neighbor 1.1.1.1 peer-group ibgp
 neighbor 2.2.2.2 peer-group ibgp
 neighbor 4.4.4.4 peer-group ibgp
 no auto-summary

 

[ R4 ]

router rip
 version 2
 network 4.0.0.0
 network 192.168.1.0
 no auto-summary
!
router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 40.40.40.0 mask 255.255.255.0
 neighbor ibgp peer-group
 neighbor ibgp remote-as 100
 neighbor ibgp password showipbgp
 neighbor ibgp update-source Loopback0
 neighbor ibgp version 4
 neighbor 1.1.1.1 peer-group ibgp
 neighbor 2.2.2.2 peer-group ibgp
 neighbor 3.3.3.3 peer-group ibgp
 no auto-summary

 

[Verifying]

R1#sh ip bgp peer-group ibgp
BGP peer-group is ibgp,  remote AS 100
  BGP version 4
  Default minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  BGP neighbor is ibgp, peer-group internal, members:
  2.2.2.2 3.3.3.3 4.4.4.4
  Index 0, Offset 0, Mask 0x0
  Update messages formatted 0, replicated 0
  Number of NLRIs in the update sent: max 0, min 0

R1#sh ip bgp
BGP table version is 15, local router ID is 10.10.10.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 10.10.10.0/24    0.0.0.0                  0         32768 i
*>i20.20.20.0/24    2.2.2.2                  0    100      0 i
*>i30.30.30.0/24    3.3.3.3                  0    100      0 i
*>i40.40.40.0/24    4.4.4.4                  0    100      0 i

 

R2#sh ip bgp peer-group ibgp
BGP peer-group is ibgp,  remote AS 100
  BGP version 4
  Default minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  BGP neighbor is ibgp, peer-group internal, members:
  1.1.1.1 3.3.3.3 4.4.4.4
  Index 0, Offset 0, Mask 0x0
  Update messages formatted 0, replicated 0
  Number of NLRIs in the update sent: max 0, min 0

R2#sh ip bgp
BGP table version is 17, local router ID is 20.20.20.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.10.10.0/24    1.1.1.1                  0    100      0 i
*> 20.20.20.0/24    0.0.0.0                  0         32768 i
*>i30.30.30.0/24    3.3.3.3                  0    100      0 i
*>i40.40.40.0/24    4.4.4.4                  0    100      0 i
 

R3#sh ip bgp peer-group ibgp
BGP peer-group is ibgp,  remote AS 100
  BGP version 4
  Default minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  BGP neighbor is ibgp, peer-group internal, members:
  1.1.1.1 2.2.2.2 4.4.4.4
  Index 0, Offset 0, Mask 0x0
  Update messages formatted 0, replicated 0
  Number of NLRIs in the update sent: max 0, min 0

R3#sh ip bgp
BGP table version is 15, local router ID is 30.30.30.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.10.10.0/24    1.1.1.1                  0    100      0 i
*>i20.20.20.0/24    2.2.2.2                  0    100      0 i
*> 30.30.30.0/24    0.0.0.0                  0         32768 i
*>i40.40.40.0/24    4.4.4.4                  0    100      0 i

 

R4#sh ip bgp peer-group ibgp
BGP peer-group is ibgp,  remote AS 100
  BGP version 4
  Default minimum time between advertisement runs is 0 seconds

 For address family: IPv4 Unicast
  BGP neighbor is ibgp, peer-group internal, members:
  1.1.1.1 2.2.2.2 3.3.3.3
  Index 0, Offset 0, Mask 0x0
  Update messages formatted 0, replicated 0
  Number of NLRIs in the update sent: max 0, min 0

R4#sh ip bgp
BGP table version is 5, local router ID is 40.40.40.1
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
              r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*>i10.10.10.0/24    1.1.1.1                  0    100      0 i
*>i20.20.20.0/24    2.2.2.2                  0    100      0 i
*>i30.30.30.0/24    3.3.3.3                  0    100      0 i
*> 40.40.40.0/24    0.0.0.0                  0         32768 i

 

Author: Chris Yoon

IT professional