BGP Multihoming 2 ISP Berbeda
Assalamualaikum temen – temen.. kembali lagi di blogg saya.. diblog kali ini saya ingin melanjutkan materi BGP sebelumnya yaitu BGP Dual homing - ISP sama dan kali ini kita akan ngebahas yang sudah ada di judul.. yaitu BGP Multihoming 2 ISP Berbeda.
Karena ini adalah lab lanjutan dari lab sebelumnya, jadi saya hanya mengkonfigurasi yang hanya ada pada lab ini saja, bagi temen - temen yang ingin melihat konfigurasi sebelumnya.. temen - temen bisa lihat di link di bawah ini..
👉https://insinyurbocah2109.blogspot.com/2020/11/belajar-bgp-bgp-dual-homing-isp-sama.html
(BGP Dual Homing - ISP Sama) - Lab 12 BGP
https://insinyurbocah2109.blogspot.com/2020/11/belajar-bgp-bgp-aggregator.html
(BGP Aggregator) - Lab 11 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-bgp-community-local-as.html
(BGP Community Local AS) - Lab 10 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-bgp-attribute-community-no_23.html
(BGP Attribute Community NO ADVERTISE) - Lab 9 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-bgp-attribute-community-no.html
(BGP Attribute Community NO EXPORT) - Lab 8 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-bgp-attribute-origin.html
( BGP Attribute ( Origin ) - Lab 7 BGP
https://insinyurbocah2109.blogspot.com/2020/10/bgp-routerreflector-assalamualaikumteme.html
( BGP Route Reflector ) - Lab 6 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-bgp-authentication.html
( BGP Authentication ) - Lab 5 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-bgp-next-hop-self.html
( BGP Next Hop Self ) - Lab 4 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-ebgp-peering.html
( eBGP Peering ) - Lab 3 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-ibgp-peering-loopback.html
( iBGP Peering Loopback ) - Lab 2 BGP
https://insinyurbocah2109.blogspot.com/2020/10/belajar-bgp-ibgp-peering-konfigurasi.html
( iBGP Peering Konfigurasi Dasar ) - Lab 1 BGP
Sebenarnnya lab ini tujuan nya sama dengan lab sebelumnya...ya seperti load balancing lahh, tapi yang membedakan adalah disini ISP nya berbeda tentu AS pada BGP nya pun berbeda...
sooo kita langsung aja ke konfiguraasinyaaa..
TOPOLOGI =
Jangan lupa... sebelum konfigurasi... kita hapus dulu konfigurasi bgp pada lab sebelumnya pada semua router
Jika sudah langsung kita mulai aja konfigurasinyaaaa
R1
R1-TKJB#conf t
Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.
R1-TKJB(config)#
R1-TKJB(config)#rou
R1-TKJB(config)#router bgp 1
R1-TKJB(config-router)#net 1.1.1.1 mask 255.255.255.255
R1-TKJB(config-router)#neigh 12.12.12.2 remote-as 2
R1-TKJB(config-router)#neigh 13.13.13.3 remote-as 3
R1-TKJB(config-router)#maxim
R1-TKJB(config-router)#maximum-paths 2
R1-TKJB(config-router)#exit
R1-TKJB(config)#
R2
R2-TKJB#conf t
Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.
R2-TKJB(config)#
R2-TKJB(config)#router bgp 2
R2-TKJB(config-router)#neigh 12.12.12.1 remote-as 1
R2-TKJB(config-router)#neigh 24.24.24.4 remote-as 4
R2-TKJB(config-router)#exit
R3
R3-TKJB#conf t
Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z.
R3-TKJB(config)#conf t
R3-TKJB(config)#ro
R3-TKJB(config)#router bgp 3
R3-TKJB(config-router)#neigh
R3-TKJB(config-router)#neighbor 13.13.13.1 rem
R3-TKJB(config-router)#neighbor 13.13.13.1 remote-as 1
R3-TKJB(config-router)#neighb 34.34.34.4 remote-as 4
R3-TKJB(config-router)#exit
R3-TKJB(config)#
R4
R4-TKJB#conf t
R4-TKJB(config)#
R4-TKJB(config)#
R4-TKJB(config)#ro
R4-TKJB(config)#router bgp 4
R4-TKJB(config-router)#net 4.4.4.4 mask 255.255.255.255
R4-TKJB(config-router)#neigh 24.24.24.2 remote-as 2
R4-TKJB(config-router)#neigh 34.34.34.3 remote-as 3
R4-TKJB(config-router)#
Coba di CEK!!!
R1
R1-TKJB(config)#do sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 4.4.4.4/32 13.13.13.3 0 3 4 i
*> 12.12.12.2 0 2 4 i
R1
R1-TKJB(config)#do sh ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 12.12.12.2 00:04:13 ago
Routing Descriptor Blocks:
* 12.12.12.2, from 12.12.12.2, 00:04:13 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
R1
R1-TKJB#traceroute 4.4.4.4 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 12.12.12.2 3 msec 20 msec 8 msec
2 24.24.24.4 51 msec 47 msec 32 msec
Disini kita bisa melihat bahwa walaupun maxium-path 2 sudah dikonfigurasikan hasilnya tetap saja tidak load sharing, melainkan hanya berfungsi sebagai main backup saja... Agar dapat load sharing melalui 2 ISP berbeda gunakan perintah dibawah ini!!
R1
R1-TKJB(config)#rou
R1-TKJB(config)#router bgp 1
R1-TKJB(config-router)#bgp bestpath as-path multipath-relax
R1-TKJB(config-router)#
R1-TKJB(config-router)#
R1-TKJB(config-router)#do clear ip bgp *
Begitu di cek lagii...
R1
R1-TKJB(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 4.4.4.4/32 13.13.13.3 0 3 4 i
*> 12.12.12.2 0 2 4 i
R1
R1-TKJB(config)#do show ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 12.12.12.2 00:05:30 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:05:30 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
12.12.12.2, from 12.12.12.2, 00:05:30 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
R1
R1-TKJB#traceroute 4.4.4.4 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 12.12.12.2 30 msec
13.13.13.3 24 msec
12.12.12.2 20 msec
2 34.34.34.4 42 msec
24.24.24.4 35 msec
34.34.34.4 44 msec
Nahhh bsekarang sudah load sharing. tapi masih ada mi permasalahannya yaitu seandainya bandwidth antara kedua link tersebut berbeda, maka bagaimana proses sharing antar kedua link tersebut bisa berjalan????
Kita bisa menggunakan konfigurasi dibawah ini...
R1
R1-TKJB(config)#rout
R1-TKJB(config)#router bgp 1
R1-TKJB(config-router)#bgp dmzlink-bw
R1-TKJB(config-router)#neigh 12.12.12.2 dmzlink-bw
R1-TKJB(config-router)#neigh 13.13.13.3 dmzlink-bw
R1-TKJB(config-router)#do clear ip bgp * soft
R1-TKJB(config-router)#exit
R1-TKJB(config)#
Sekarang Cek lagi dahhh
R1
R1(config)#do show ip bgp
BGP table version is 6, 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
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 4.4.4.4/32 13.13.13.3 0 3 4 i
*> 12.12.12.2 0 2 4 i
R1
R1(config)#do show ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "bgp 1", distance 20, metric 0
Tag 2, type external
Last update from 12.12.12.2 00:19:54 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 00:19:54 ago
Route metric is 0, traffic share count is 2
AS Hops 2
Route tag 2
12.12.12.2, from 12.12.12.2, 00:19:54 ago
Route metric is 0, traffic share count is 1
AS Hops 2
Route tag 2
Sekarang kita bisa lihat bahwa load sharingnya sudah dalam perbandingan yang baik, sehingga kedua link bisa digunakan sesuai kemampuannya ;)
R1
R1-TKJB#traceroute 4.4.4.4 source 1.1.1.1
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 12.12.12.2 53 msec
13.13.13.3 41 msec 27 msec
2 24.24.24.4 30 msec
34.34.34.4 33 msec 39 msec
DONE!!!! 😊😊😊😊
TERIMAKASIH
WASSALAMUALAIKUM WR.WB
0 comments:
Post a Comment