LAB 6. BGP Route Reflector
LAB 6. BGP Route Reflector
Pada i-BGP, peernya harus full mesh artinya.
• R1 peers ke R2, R3, R4
• R2 peers ke R1, R3, R4
• R3 peers ke R1, R2, R4
• R4 peers ke R1, R2, R3
Kita membuat Route Reflector agar ketika ada router baru, satu persatu tidak harus peers ke R1, R2, R3 dan R4. Solusinya yaitu menjadikan salah satu routernya menjadi route reflector. Hapus konfigurasi BGP pada lab sebelumnya dan tambahkan 1 router baru.
R1 & R2:
Router-1(config)#no router bgp 12
Router-2(config)#no router bgp 12
R3:
Router-3(config)#no router bgp 3
Setelah itu kita konfigurasi IP pada R3 dan R4.
R3:
Router-3(config)#int f1/0
Router-3(config-if)#ip add 34.34.34.3 255.255.255.0
Router-3(config-if)#no shutdown
R4:
Router-4(config)#int fa0/0
Router-4(config-if)#ip add 34.34.34.4 255.255.255.0
Router-4(config-if)#no sh
Router-4(config-if)#ex
Router-4(config)#int loopback 0
Router-4(config-if)#ip add 4.4.4.4 255.255.255.255
Router-4(config-if)#ex
Kita konfigurasi BGP dan EIGRP Routingnya pada masing-masing router.
R1:
Router-4(config)#router eigrp 10
Router-4(config-router)#network 1.1.1.1 0.0.0.0
Router-4(config-router)#network 12.12.12.1 0.0.0.0
Router-4(config-router)#no auto-summary
Router-4(config-router)#ex
Router-4(config)#router bgp 1234
Router-4(config-router)#neighbor 2.2.2.2 remote-as 1234
Router-4(config-router)#neighbor 2.2.2.2 update lo0
Router-4(config-router)#neighbor 2.2.2.2 route-reflector-client
Router-4(config-router)#neighbor 3.3.3.3 remote-as 1234
Router-4(config-router)#neighbor 3.3.3.3 update lo0
Router-4(config-router)#neighbor 3.3.3.3 route-reflector-client
Router-1(config-router)#neighbor 4.4.4.4 remote-as 1234
Router-1(config-router)#neighbor 4.4.4.4 update lo0
Router-1(config-router)#neighbor 4.4.4.4 route-reflector-client
Router-1(config-router)#ex
R2:
Router-2(config)#router eigrp 10
Router-2(config-router)#network 2.2.2.2 0.0.0.0
Router-2(config-router)#network 12.12.12.2 0.0.0.0
Router-2(config-router)#network 23.23.23.2 0.0.0.0
Router-2(config-router)#no auto-summary
Router-2(config-router)#ex
Router-2(config)#router bgp 1234
Router-2(config-router)#neighbor 1.1.1.1 remote-as 1234
Router-2(config-router)#neighbor 1.1.1.1 update-source lo0
Router-2(config-router)#ex
R3:
Router-3(config)#router eigrp 10
Router-3(config-router)#network 3.3.3.3 0.0.0.0
Router-3(config-router)#network 23.23.23.3 0.0.0.0
Router-3(config-router)#network 34.34.34.3 0.0.0.0
Router-3(config-router)#no auto-summary
Router-3(config-router)#ex
Router-3(config)#router bgp 1234
Router-3(config-router)#neighbor 1.1.1.1 remote-as 1234
Router-3(config-router)#neighbor 1.1.1.1 update-source lo0
Router-3(config-router)#ex
R4:
Router-4(config)#router eigrp 10
Router-4(config-router)#network 4.4.4.4 0.0.0.0
Router-4(config-router)#network 34.34.34.4 0.0.0.0
Router-4(config-router)#no auto-summary
Router-4(config-router)#ex
Router-4(config)#router bgp 1234
Router-4(config-router)#neighbor 1.1.1.1 remote-as 1234
Router-4(config-router)#neighbor 1.1.1.1 update-source lo0
Router-4(config-router)#ex
Pengecekan :
R1:
Router-1(config)#do sh ip bgp summary
BGP router identifier 11.11.11.11, 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 0 0 0 0 0 never Active
3.3.3.3 4 1234 0 0 0 0 0 never Idle
4.4.4.4 4 1234 0 0 0 0 0 never Active
Router-1(config)#
R2:
Router-2(config)#do sh ip bgp summary
BGP router identifier 22.22.22.22, 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 0 0 0 0 0 never Active
Router-2(config)#
Sebagai pengetesan, kita advertise suatu route di salah satu router dan kita pastikan bisa ping dari semua router.
R4:
Router-4(config)#int loopback 44
Router-4(config-if)#ip add 44.44.44.44 255.255.255.255
Router-4(config-if)#router bgp 1234
Router-4(config-router)#network 44.44.44.44 mask 255.255.255.255
Router-4(config-router)#ex
Kita cek pada setiap router mengenai route yang diadvertise oleh R4
R1:
Router-1(config)#do sh ip bgp 44.44.44.44
BGP routing table entry for 44.44.44.44/32, version 2
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Flag: 0x820
Advertised to update-groups:
2
Local, (Received from a RR-client)
4.4.4.4 (metric 161280) from 4.4.4.4 (44.44.44.44)
Origin IGP, metric 0, localpref 100, valid, internal, best
Router-1(config)#
R3:
Router-3#show ip bgp 44.44.44.44
BGP routing table entry for 44.44.44.44/32, version 2
Paths: (1 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
4.4.4.4 (metric 156160) from 1.1.1.1 (11.11.11.11)
Origin IGP, metric 0, localpref 100, valid, internal, best
Originator: 44.44.44.44, Cluster list: 11.11.11.11
Router-3#
Kita cek ping.
R2:
Router-2#ping 44.44.44.44
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 44.44.44.44, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/32/56 ms
Router-2#
Komentar
Posting Komentar