Lab 31. BGP Route Reflector

Rabu, 19 Februari 2014

Lab 31. BGP Route Reflector


Pada iBGP terdapat ketentuan "Jika router iBGP  menerima update dari router iBGP lain maka update tidak akan diteruskan ke router iBGP
lainnya"
maka dari itu iBGP haruslah full mesh (setiap router harus peer dengan router lain)..
Problem terjadi ketika banyaknya router iBGP maka kita harus manual set neighbournya satu per satu.. Setiap masalah akan ada solusinya disinilah route reflector menjawabnya..
Dengan menggunakan route reflector maka cukup satu router yang menjadi titik point atau route reflector server. Router lain cukup peer (set neighbour) ke route reflector server saja, maka secara otomatis bila terdapat router dalam iBGP mengupdate, route reflector server akan menyebarkan.. Lanjut ke skenario di bawah..




Pada topologi diatas kita jadikan R2 sebagai route reflector server dan yang lainnya sebagai client..





 

R1

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
ip ospf 1 area 0
!
router ospf 1
log-adjacency-changes
!
router bgp 1
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
no auto-summary

 

R2

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
ip ospf 1 area 0
!
interface FastEthernet0/1
ip address 23.23.23.2 255.255.255.0
ip ospf 1 area 0
!
router ospf 1
log-adjacency-changes
!
router bgp 1
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source Loopback0
neighbor 1.1.1.1 route-reflector-client
neighbor 3.3.3.3 remote-as 1
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 route-reflector-client
neighbor 4.4.4.4 remote-as 1
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 route-reflector-client
no auto-summary

 

R3

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 34.34.34.3 255.255.255.0
ip ospf 1 area 0
!
interface FastEthernet0/1
ip address 23.23.23.3 255.255.255.0
ip ospf 1 area 0
!
router ospf 1
log-adjacency-changes
!
router bgp 1
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
no auto-summary

 

R4

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ip ospf 1 area 0
!
interface FastEthernet0/0
ip address 34.34.34.4 255.255.255.0
ip ospf 1 area 0
!
router ospf 1
log-adjacency-changes
!
router bgp 1
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 update-source Loopback0
no auto-summary

Pada R2 kita tentukan router lainnya sebagai client dengan command " neighbor x.x.x.x route-reflector-client". Router R1, R3 & R4 peer secara langsung terhadap router R2.. Kita tes dengan menambahkan loopback 100 dan advertise ke dalam BGP pada R4 yang tidak peer secara langsung ke selain router R2...


R4

interface Loopback100
ip address 44.44.44.44 255.255.255.255
!
router bgp 1
network 44.44.44.44 mask 255.255.255.255




Cek BGP tabel pada R1, ternyata R1 mendapat informasi update route 44.44.44.44/32 milik R4 yang tidak peer secara langsung dengan R1.. R2 (reflector server) sebagai perantara jika ada router client mengupdate informasi..

0 komentar :

Posting Komentar