LAB 10. BGP Aggregator
LAB 10. BGP Aggregator
Kita masih menggunakan topologi pada lab sebelumnya. Kita tambahkan beberapa ip loopback di R4 yang nantinya akan di aggregate.
R4:R4(config)#int lo1
R4(config-if)#ip add 4.1.1.1 255.255.255.255
R4(config-if)#int lo2
R4(config-if)#ip add 4.2.1.1 255.255.255.255
R4(config-if)#int lo3
R4(config-if)#ip add 4.3.1.1 255.255.255.255
R4(config-if)#int lo4
R4(config-if)#ip add 4.4.1.1 255.255.255.255
R4(config-if)#int lo5
R4(config-if)#ip add 4.5.1.1 255.255.255.255
R4(config-if)#int lo6
R4(config-if)#ip add 4.6.1.1 255.255.255.255
Kita advertise ke BGP.
R4:
R4(config)#router bgp 4
R4(config-router)#network 4.1.1.1 mask 255.255.255.255
R4(config-router)#network 4.2.1.1 mask 255.255.255.255
R4(config-router)#network 4.3.1.1 mask 255.255.255.255
R4(config-router)#network 4.4.1.1 mask 255.255.255.255
R4(config-router)#network 4.5.1.1 mask 255.255.255.255
R4(config-router)#network 4.6.1.1 mask 255.255.255.255
Kemudian kita cek pada R2.
R2:
R2(config)#do sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.1.1.1/32 24.24.24.4 0 0 4 i
*> 4.2.1.1/32 24.24.24.4 0 0 4 i
*> 4.3.1.1/32 24.24.24.4 0 0 4 i
*> 4.4.1.1/32 24.24.24.4 0 0 4 i
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*> 4.5.1.1/32 24.24.24.4 0 0 4 i
*> 4.6.1.1/32 24.24.24.4 0 0 4 i
Kita lakukan aggregate di R4.
R4:
R4(config)#router bgp 4
R4(config-router)#aggregate-address 4.0.0.0 255.248.0.0
Kita cek kembali BGP Route di R2.
R2:
R2(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.0.0.0/13 24.24.24.4 0 0 4 i
*> 4.1.1.1/32 24.24.24.4 0 0 4 i
*> 4.2.1.1/32 24.24.24.4 0 0 4 i
*> 4.3.1.1/32 24.24.24.4 0 0 4 i
*> 4.4.1.1/32 24.24.24.4 0 0 4 i
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*> 4.5.1.1/32 24.24.24.4 0 0 4 i
*> 4.6.1.1/32 24.24.24.4 0 0 4 i
R2:
R2(config)#do show ip bgp 4.0.0.0/13
BGP routing table entry for 4.0.0.0/13, version 14
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Advertised to update-groups:
1 2
4, (aggregated by 4 4.4.4.4)
24.24.24.4 from 24.24.24.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate, best
Community: 2:24
Kita lakukan aggregate single route di R4.
R4:
R4(config)#router bgp 4
R4(config-router)#aggregate-address 4.0.0.0 255.248.0.0 summary-only
Kita cek kembali BGP Route di R2.
R2:
R2(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.0.0.0/13 24.24.24.4 0 0 4 i
Berikutnya kita konfigurasikan Aggregate Suppress Map di R4.
R4:
R4(config)#access-list 1 permit host 4.2.1.1
R4(config)#access-list 1 permit host 4.3.1.1
R4(config)#access-list 1 permit host 4.4.1.1
R4(config)#access-list 1 deny any
Kita cek kembali BGP route di R4 dan R2.
R4:
R4(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.0.0.0/13 0.0.0.0 32768 i
*> 4.1.1.1/32 0.0.0.0 0 32768 i
s> 4.2.1.1/32 0.0.0.0 0 32768 i
s> 4.3.1.1/32 0.0.0.0 0 32768 i
s> 4.4.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 0.0.0.0 0 32768 i
*> 4.5.1.1/32 0.0.0.0 0 32768 i
*> 4.6.1.1/32 0.0.0.0 0 32768 i
R2:
R2(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 4.0.0.0/13 24.24.24.4 0 0 4 i
*> 4.1.1.1/32 24.24.24.4 0 0 4 i
*> 4.4.4.4/32 24.24.24.4 0 0 4 i
*> 4.5.1.1/32 24.24.24.4 0 0 4 i
*> 4.6.1.1/32 24.24.24.4 0 0 4 i
Komentar
Posting Komentar