BGP Route Reflector

Hanya untuk IBGP
Bikin IP Address di (R4(RR) ,R1(RC), R2(RC)) IBGP, R3(EBGP)

RR(config)#int lo0
RR(config-if)#ip add 4.4.4.4 255.255.255.255
RR(config)#int s2/0
RR(config-if)#ip add 41.41.41.1 255.255.255.0
RR(config-if)#no shut

R1-CR(config)#int lo0
R1-CR(config-if)#ip add 1.1.1.1 255.255.255.255
R1-CR(config)#int e0/0
R1-CR(config-if)#ip add 21.21.21.1 255.255.255.0 
R1-CR(config-if)#no shut
R1-CR(config)#int e0/1
R1-CR(config-if)#ip add 12.12.12.1 255.255.255.0
R1-CR(config-if)#no shut
R1-CR(config)#int s2/0
R1-CR(config-if)#ip add 41.41.41.2 255.255.255.0
R1-CR(config-if)#no shut

R2-CR(config)#int lo0
R2-CR(config-if)#ip add 2.2.2.2 255.255.255.255
R2-CR(config)#int e0/0
R2-CR(config-if)#ip add 21.21.21.2 255.255.255.0
R2-CR(config-if)#no shut
R2-CR(config)#int e0/1
R2-CR(config-if)#ip add 12.12.12.2 255.255.255.0
R2-CR(config-if)#no shut
R2-CR(config)#int s2/0
R2-CR(config-if)#ip add 32.32.32.1 255.255.255.0
R2-CR(config-if)#no shut
R2-CR(config)#int s2/1
R2-CR(config-if)#ip add 23.23.23.1 255.255.255.0
R2-CR(config-if)#no shut

R3(config)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config)#int s2/0
R3(config-if)#ip add 32.32.32.2 255.255.255.0
R3(config-if)#no shut
R3(config)#int s2/1
R3(config-if)#ip add 23.23.23.2 255.255.255.0
R3(config-if)#no shut

Advertise semua network ke RIPv2

RR(config)#router rip
RR(config-router)#version 2
RR(config-router)#network 4.0.0.0
RR(config-router)#network 41.0.0.0
RR(config-router)#no au
RR(config-router)#exit

R1-CR(config)#router rip
R1-CR(config-router)#version 2
R1-CR(config-router)#no au
R1-CR(config-router)#network 1.0.0.0
R1-CR(config-router)#network 12.0.0.0
R1-CR(config-router)#network 21.0.0.0
R1-CR(config-router)#network 4.0.0.0
R1-CR(config-router)#network 41.0.0.0

R2-CR(config)#router rip
R2-CR(config-router)#version 2
R2-CR(config-router)#network 2.0.0.0
R2-CR(config-router)#network 12.0.0.0
R2-CR(config-router)#network 21.0.0.0
R2-CR(config-router)#network 23.0.0.0
R2-CR(config-router)#network 32.0.0.0
R2-CR(config-router)#no au


R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#network 3.0.0.0
R3(config-router)#network 23.0.0.0
R3(config-router)#network 32.0.0.0
R3(config-router)#no au
R3(config-router)#exit

Kemudian aktifkan routing BGP dan di RR aktifkan route reflektor ke R2 dan R3
kemudian R2 neighbor ke RR, begotupun R1 neighbor ke RR kecuali R3

Konfigurasi RR server
RR#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
RR(config)#router bgp 100
RR(config-router)#neighbor 1.1.1.1 remote-as 100
RR(config-router)#neighbor 1.1.1.1 update-source lo0
RR(config-router)#neighbor 1.1.1.1 route           
RR(config-router)#neighbor 1.1.1.1 route-reflector-client
RR(config-router)#neighbor 2.2.2.2 remote-as 100       
RR(config-router)#neighbor 2.2.2.2 update-source lo0
RR(config-router)#neighbor 2.2.2.2 route-reflector-client
RR(config-router)#exit

Konfigurasi RR Client

R1-CR(config)#router bgp 100
R1-CR(config-router)#neighbor 4.4.4.4 remote-as 100
R1-CR(config-router)#neighbor 4.4.4.4 update-s   
*Jul 30 17:12:54.234: %BGP-5-ADJCHANGE: neighbor 4.4.4.4 Up
R1-CR(config-router)#neighbor 4.4.4.4 update-source lo0
R1-CR(config-router)#exit

R2-CR(config)#router bgp 100
R2-CR(config-router)#neighbor 4.4.4.4 remote-as 100
R2-CR(config-router)#neighbor 4.4.4.4 update-source
*Jul 30 17:14:01.084: %BGP-5-ADJCHANGE: neighbor 4.4.4.4 Up
R2-CR(config-router)#neighbor 4.4.4.4 update-source lo0

konfigurasi EBGP di R2 dan R3

R2-CR(config-router)#neighbor 3.3.3.3 remote-as 200
R2-CR(config-router)#neighbor 3.3.3.3 update-source lo0
R2-CR(config-router)#neighbor 3.3.3.3 ebgp-           
R2-CR(config-router)#neighbor 3.3.3.3 ebgp-multihop
R2-CR(config-router)#

R3#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R3(config)#router bgp 200
R3(config-router)#neighbor 2.2.2.2 remote-as 100
R3(config-router)#neighbor 2.2.2.2 update-source lo0
R3(config-router)#neighbor 2.2.2.2 ebgp-           
R3(config-router)#neighbor 2.2.2.2 ebgp-multihop
R3(config-router)#

kemudian bikin IP Loopback baru di RR, R1 R2 dan R3
RR(config)#int lo1
RR(config-if)#ip add 14.14.14.14 255.255.255.255

R1-CR(config)#int lo1
R1-CR(config-if)#ip add 11.11.11.11 255.255.255.255

R2-CR(config)#int lo1
R2-CR(config-if)#ip add 13.13.13.13 255.255.255.255

R3(config)#int lo1
R3(config-if)#ip add 33.33.33.33 255.255.255.255

kemudian advertise ke BGP ip loopback yang baru tersebut

RR(config)#router bgp 100
RR(config-router)#network 14.14.14.14 mask 255.255.255.255

R1-CR(config)#router bgp 100
R1-CR(config-router)#network 11.11.11.11 mask 255.255.255.255

R2-CR(config)#router bgp 100
R2-CR(config-router)#network 13.13.13.13 mask 255.255.255.255

R3(config)#router bgp 200
R3(config-router)#network 33.33.33.33 mask 255.255.255.255

selanjutnya kita cek R2 ip route bgp ke R1

R2-CR(config)#do sh ip bgp 11.11.11.11
BGP routing table entry for 11.11.11.11/32, version 5
Paths: (1 available, best #1, table default)
  Advertised to update-groups:
     2       
  Refresh Epoch 1
  Local
    1.1.1.1 (metric 1) from 4.4.4.4 (4.4.4.4)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Originator: 1.1.1.1, Cluster list: 4.4.4.4
      rx pathid: 0, tx pathid: 0x0
R2-CR(config)#

Yap disini terlihat R2 mendaptkan R1 dari RR(Route Reflektor /R4)

kita cek sebaliknya juga R1 ke R2

R1-CR#sh ip bgp 13.13.13.13
BGP routing table entry for 13.13.13.13/32, version 6
Paths: (1 available, best #1, table default)
  Not advertised to any peer
  Refresh Epoch 1
  Local
    2.2.2.2 (metric 1) from 4.4.4.4 (4.4.4.4)
      Origin IGP, metric 0, localpref 100, valid, internal, best
      Originator: 2.2.2.2, Cluster list: 4.4.4.4
      rx pathid: 0, tx pathid: 0x0
R1-CR#


Yap R1 mendapatkan R2 dari RR (Route Reflektor /R4)

selanjutnya cek EBGP ke R1

R3(config)#do sh ip bgp 11.11.11.11     
BGP routing table entry for 11.11.11.11/32, version 4
Paths: (1 available, best #1, table default)
  Not advertised to any peer
  Refresh Epoch 1
  100
    2.2.2.2 (metric 1) from 2.2.2.2 (2.2.2.2)
      Origin IGP, localpref 100, valid, external, best
      rx pathid: 0, tx pathid: 0x0

yap R3 Mendapatkan R1 melalui R2 yang sebagai Client Route Reflektor

Alhamdulillah sampai sini berhasil, Mantapp

1 komentar: