Search This Blog

Wednesday, July 27, 2011

Bgp route Aggregation








R1 configuration



router bgp 100
 no synchronization
 bgp log-neighbor-changes
 network 1.1.1.0 mask 255.255.255.0
 neighbor 131.1.12.2 remote-as 200
 no auto-summary


R1#sh ip bgp
BGP table version is 43, local router ID is 1.1.1.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
*> 1.1.1.0/24       0.0.0.0                  0         32768 i
*> 2.2.0.0/22       131.1.12.2               0             0 200 i -------route aggregation is done for 2.2.x.x network


R5 configuration



interface Loopback2
 ip address 2.2.0.2 255.255.255.0
!
interface Loopback3
 ip address 2.2.1.2 255.255.255.0
!
interface Loopback4
 ip address 2.2.2.2 255.255.255.0
!
interface Loopback5
 ip address 2.2.3.2 255.255.255.0

router bgp 200
no synchronization
 bgp log-neighbor-changes
 network 2.2.0.0 mask 255.255.255.0
 network 2.2.1.0 mask 255.255.255.0
 network 2.2.2.0 mask 255.255.255.0
 network 2.2.3.0 mask 255.255.255.0
 aggregate-address 2.2.0.0 255.255.252.0 as-set summary-only
 neighbor 131.1.12.1 remote-as 100
 no auto-summary






BGP Dampening using Route-Map


Task 1
Configure R1 and R2 should apply the route dampening for prefixes 40.x.x.x according to the following:

  • Max-Suppres=50 minutes
  • Suppress=2000 points
  • Reuse=800 points
  • Half-Time=10 minutes
Prefixes 44.4.x.x should use the following dampening policy:

  • Max-Suppres=90 minutes
  • Suppress=2500 points
  • Reuse=700 points
  • Half-Time=20 minutes

R1 configuration



router bgp 123
 no synchronization
 bgp router-id 172.16.101.1
 bgp log-neighbor-changes
 bgp dampening route-map DAMPEN
 network 172.16.101.0 mask 255.255.255.0
 neighbor 10.1.13.3 remote-as 123
 neighbor 10.1.14.4 remote-as 40
 neighbor 10.1.14.4 next-hop-self
 no auto-summary


ip prefix-list NET_40 seq 5 permit 40.0.0.0/8 le 32
!
ip prefix-list NET_44 seq 5 permit 44.0.0.0/8 le 32
!
!
!
route-map DAMPEN permit 10
 match ip address prefix-list NET_40
 set dampening 15 800 3000 50
!
route-map DAMPEN permit 20
 match ip address prefix-list NET_44
 set dampening 15 800 3000 50

R1#sh ip bg dampening parameters
 dampening 15 800 3000 50 (route-map DAMPEN 10)
  Half-life time      : 15 mins       Decay Time       : 1280 secs
  Max suppress penalty:  8051         Max suppress time: 50 mins
  Suppress penalty    :  3000         Reuse penalty    : 800

 dampening 15 800 3000 50 (route-map DAMPEN 20)
  Half-life time      : 15 mins       Decay Time       : 1280 secs
  Max suppress penalty:  8051         Max suppress time: 50 mins
  Suppress penalty    :  3000         Reuse penalty    : 800

R1#







R2 configuration 

router bgp 123
 no synchronization
 bgp log-neighbor-changes
 bgp dampening route-map DAMPEN
 network 172.16.102.0 mask 255.255.255.0
 neighbor 10.1.23.3 remote-as 123
 neighbor 10.1.23.3 next-hop-self
 neighbor 10.1.24.4 remote-as 40
 no auto-summary

ip prefix-list NET_40 seq 5 permit 40.0.0.0/8 le 32
!
ip prefix-list NET_44 seq 5 permit 44.0.0.0/8 le 32
!
!
!
route-map DAMPEN permit 10
 match ip address prefix-list NET_40
 set dampening 15 800 3000 50
!
route-map DAMPEN permit 20
 match ip address prefix-list NET_44
 set dampening 20 700 2500 90

r2# sh ip bgp dampening parameters
 dampening 15 800 3000 50 (route-map DAMPEN 10)
  Half-life time      : 15 mins       Decay Time       : 1280 secs
  Max suppress penalty:  8051         Max suppress time: 50 mins
  Suppress penalty    :  3000         Reuse penalty    : 800

 dampening 20 700 2500 90 (route-map DAMPEN 20)
  Half-life time      : 20 mins       Decay Time       : 3190 secs
  Max suppress penalty: 15816         Max suppress time: 90 mins
  Suppress penalty    :  2500         Reuse penalty    : 700