Jan 22 2009
BGP – Prefix aggregation using a static route
My previous post on BGP prefix aggregation used the bgp “aggregate-address” command. Another way to generate an aggregate is by using a static route.
Consider the toplology below.
Watch the video below to see how to configure a BGP aggregate using a static route. Alternatively down the video here and watch it on your iPod.
The commands used in the above video are listed below.
R1
!
interface FastEthernet1/0
ip address 10.0.0.1 255.255.255.252
!
router bgp 1
neighbor 10.0.0.2 remote-as 2
no auto-summary
R2
!
interface Loopback0
ip address 192.168.0.1 255.255.255.0
!
interface Loopback1
ip address 192.168.1.1 255.255.255.0
!
interface Loopback2
ip address 192.168.2.1 255.255.255.0
!
interface Loopback3
ip address 192.168.3.1 255.255.255.0
!
interface FastEthernet1/0
ip address 10.0.0.2 255.255.255.252
!
router bgp 2
no synchronization
bgp log-neighbor-changes
network 192.168.0.0
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
redistribute static
neighbor 10.0.0.1 remote-as 1
no auto-summary