Tuesday, 7 May 2013

BGP Route Reflector

pada iBGP networknya harus fullmesh atau tersambung semua, jadi setiap router harus terhubung dengan semua router dalam area internal yang sama.
hal ini menjadi kelemahan karena ketika kita akan menambahkan router baru otomatis kita harus menghubungkan ke semua router dan tentunya harus konfig semua. solusi dari masalah ini ada dua yaitu dengan menggunakan Route Reflector atau bisa juga BGP confederation.
kita akan mempelajari bagaimana route Reflector

TOPOLOGI


R1(config)#int f0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#router rip
R1(config-router)#network 1.0.0.0
R1(config-router)#network 12.0.0.0
R1(config-router)#router bgp 1234
R1(config-router)#neighbor 2.2.2.2 remot 1234
R1(config-router)#neighbor 2.2.2.2 up lo0
R1(config-router)#neighbor 2.2.2.2 route-reflector-client
R1(config-router)#neighbor 3.3.3.3 remot 1234
R1(config-router)#neighbor 3.3.3.3 up lo0
R1(config-router)#neighbor 3.3.3.3 route-reflector-client
R1(config-router)#neighbor 4.4.4.4 remot 1234
R1(config-router)#neighbor 4.4.4.4 up lo0
R1(config-router)#neighbor 4.4.4.4 route-reflector-client
R2(config)#int fa0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int fa0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#router rip
R2(config-router)#network 12.0.0.0
R2(config-router)#network 23.0.0.0
R2(config-router)#network 2.0.0.0
R2(config-router)#router bgp 1234
R2(config-router)#neighbor 1.1.1.1 remot 1234
R2(config-router)#neighbor 1.1.1.1 up lo0
R3(config)#int fa0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0 
R3(config-if)#no shut
R3(config-if)#int fa0/1
R3(config-if)#ip add 34.34.34.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#router rip
R3(config-router)#network 3.0.0.0
R3(config-router)#network 23.0.0.0
R3(config-router)#network 34.0.0.0
R3(config-router)#router bgp 1234
R3(config-router)#neighbor 1.1.1.1 remot 1234
R3(config-router)#neighbor 1.1.1.1 up lo0
R4(config)#int fa0/0
R4(config-if)#ip add 34.34.34.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int lo0
R4(config-if)#ip add 4.4.4.4 255.255.255.255
R4(config-if)#router rip
R4(config-router)#network 4.0.0.0
R4(config-router)#network 34.0.0.0
R4(config-router)#router bgp 1234
R4(config-router)#neighbor 1.1.1.1 remot 1234
R4(config-router)#neighbor 1.1.1.1 up lo0
verifikasi
R1(config-router)#do sh ip bgp sum
BGP router identifier 1.1.1.1, local AS number 1234
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.2.2.2         4  1234       8       8        1    0    0 00:05:05        0
3.3.3.3         4  1234       6       6        1    0    0 00:02:35        0
4.4.4.4         4  1234       4       4        1    0    0 00:00:29        0
R2(config-router)#do sh ip bgp sum
BGP router identifier 2.2.2.2, local AS number 1234
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1         4  1234       8       8        1    0    0 00:05:35        0
kita coba advertise sebuah route
R4(config)#int lo1
R4(config-if)#ip add 44.44.44.44 255.255.255.255
R4(config-if)#router bgp 1234
R4(config-router)#network 44.44.44.44 mask 255.255.255.255
cek di router lain, dan lakukan tes ping
R1(config-router)#do sh ip bgp
BGP table version is 2, 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
*>i44.44.44.44/32   4.4.4.4                  0    100      0 i
R1(config-router)#do ping 4.4.4.4

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/16/20 ms
R1(config-router)#