BGP Dual Homing – ISP sama
Nah.. karena ini adalah lab baru jadi saya hanya mengkonfigurasi konfigurasi dasarnya lagi :
Singkatnya, lab ini seperti high avaibility yaa, jadi terdapat dua jalur menuju ISP, nah jika salah satu jalurnya mati jalur yang lainnya akan membekup, default nya jika jalur yang mati tadi adalah jalur utama, sedangkan jalur yang hidup adalah jalur cadangan. ketika nyalan kembali jalur utamanya, paket akan tetap lewat ke jalur cadangan... dan jika kita ingin mengembalikannya lagi harus ada konfigurasi tambahan...
👉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
*Oke langsung ke konfigurasinya...
TOPOLOGI =
R1
R1-TKJB#conf t
R1-TKJB(config)#int g1/0
R1-TKJB(config-if)#ip add 12.12.12.1 255.255.255.0
R1-TKJB(config-if)#no sh
R1-TKJB(config-if)#exit
R1-TKJB(config)#
R1-TKJB(config)#int g2/0
R1-TKJB(config-if)#ip add 13.13.13.1 255.255.255.0
R1-TKJB(config-if)#no sh
R1-TKJB(config-if)#
R1-TKJB(config-if)#exit
R1-TKJB(config)#
R1-TKJB(config)#int lo 0
R1-TKJB(config-if)#ip add 1.1.1.1 255.255.255.255
R1-TKJB(config-if)#no sh
R1-TKJB(config-if)#exit
R1-TKJB(config)#
R1-TKJB(config)#rou
R1-TKJB(config)#router bgp 1
R1-TKJB(config-router)#neigh 12.12.12.2 remote-as 23
R1-TKJB(config-router)#neigh 13.13.13.3 remote-as 23
R1-TKJB(config-router)#net 1.1.1.1 mask 255.255.255.255
R1-TKJB(config-router)#exit
R1-TKJB(config)#
R2
R2-TKJB#conf t
R2-TKJB(config)#
R2-TKJB(config)#int g2/0
R2-TKJB(config-if)#ip add 12.12.12.2 255.255.255.0
R2-TKJB(config-if)#no sh
R2-TKJB(config-if)#exit
R2-TKJB(config)#
R2-TKJB(config-if)#int f0/0
R2-TKJB(config-if)#ip add 23.23.23.2 255.255.255.0
R2-TKJB(config-if)#no sh
R2-TKJB(config-if)#exit
R2-TKJB(config)#
R2-TKJB(config-if)#int g1/0
R2-TKJB(config-if)#ip add 24.24.24.2 255.255.255.0
R2-TKJB(config-if)#no sh
R2-TKJB(config-if)#
R2-TKJB(config-if)#
R2-TKJB(config-if)#int lo0
R2-TKJB(config-if)#ip add 2.2.2.2 255.255.255.255
R2-TKJB(config-if)#exit
R2-TKJB(config)#
R2-TKJB(config)#
R2-TKJB(config)#ro
R2-TKJB(config)#router bgp 23
R2-TKJB(config-router)#neigh 12.12.12.1 remote-as 1
R2-TKJB(config-router)#neigh 23.23.23.3 remote-as 23
R2-TKJB(config-router)#neigh 24.24.24.4 remote-as 4
R2-TKJB(config-router)#net 2.2.2.2 mask 255.255.255.255
R2-TKJB(config-router)#neigh 23.23.23.3 next-hop-self
R2-TKJB(config-router)#exit
R2-TKJB(config)#
R3
R3-TKJB#conf t
R3-TKJB(config)#
R3-TKJB(config)#int g1/0
R3-TKJB(config-if)#ip add 13.13.13.3 255.255.255.0
R3-TKJB(config-if)#no sh
R3-TKJB(config-if)#exit
R3-TKJB(config)#
R3-TKJB(config)#int f0/0
R3-TKJB(config-if)#ip add 23.23.23.3 255.255.255.0
R3-TKJB(config-if)#no sh
R3-TKJB(config-if)#exit
R3-TKJB(config)#
R3-TKJB(config)#int g2/0
R3-TKJB(config-if)#ip add 34.34.34.3 255.255.255.0
R3-TKJB(config-if)#no sh
R3-TKJB(config-if)#exit
R3-TKJB(config)#
R3-TKJB(config)#rou
R3-TKJB(config)#router bgp 23
R3-TKJB(config-router)#neigh 13.13.13.1 remote-as 1
R3-TKJB(config-router)#neigh 23.23.23.2 remote-as 23
R3-TKJB(config-router)#neigh 34.34.34.4 remote-as 4
R3-TKJB(config-router)#neigh 23.23.23.2 next-hop-self
R3-TKJB(config-router)#exit
R3-TKJB(config)#
R4
R4-TKJB#conf t
R4-TKJB(config)#
R4-TKJB(config)#
R4-TKJB(config)#int g1/0
R4-TKJB(config-if)#ip add 24.24.24.4 255.255.255.0
R4-TKJB(config-if)#no sh
R4-TKJB(config-if)#exit
R4-TKJB(config)#
R4-TKJB(config)#
R4-TKJB(config)#int g2/0
R4-TKJB(config-if)#ip add 34.34.34.4 255.255.255.0
R4-TKJB(config-if)#no sh
R4-TKJB(config-if)#exit
R4-TKJB(config)#
R4-TKJB(config)#int lo 0
R4-TKJB(config-if)#ip add 4.4.4.4 255.255.255.255
R4-TKJB(config-if)#exit
R4-TKJB(config)#
R4-TKJB(config)#ro
R4-TKJB(config)#router bgp 4
R4-TKJB(config-router)#neigh 24.24.24.2 remote-as 23
R4-TKJB(config-router)#neigh 34.34.34.3 remote-as 23
R4-TKJB(config-router)#net 4.4.4.4 mask 255.255.255.255
R4-TKJB(config-router)#exit
R4-TKJB(config)#
Kita CEK!!!....
R1
R1(config)#do show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 0.0.0.0 0 32768 i
* 2.2.2.2/32 13.13.13.3 0 23 i
*> 12.12.12.2 0 0 23 i
* 4.4.4.4/32 13.13.13.3 0 23 4 i
*> 12.12.12.2 0 23 4 i
Kita bisa lihat, walaupun sudah menggunakan 2 link, hasilnya tetap saja hanya1 link yang digunakan. Sekarang kita akan shutdown port int gi/0 dengan IP 12.12.12.1/24 sehingga paket tidak lagi melalui R2....
R1
R1-TKJB(config)#int g1/0
R1-TKJB(config-if)#sh
R1-TKJB(config-if)#exit
R1-TKJB(config)#
Kita CEK di R1 nyaa...
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 23 4 i
R1
R1(config)#do show ip route bgp
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 13.13.13.3, 00:05:17
Disini kita bisa liat linknya sudah berpindah melalui R3. Nahh sekarang kita tes kembali dengan cara kita no shutdown port yang menuju R2.
R1
R1-TKJB(config)#int g1/0
R1-TKJB(config-if)#no sh
R1-TKJB(config-if)#exit
R1(config)#
R1
R1-TKJB(config)#do show ip bgp
BGP table version is 5, 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 12.12.12.2 0 23 4 i
*> 13.13.13.3 0 23 4 i
R1
R1-TKJB(config)#do show ip route bgp
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 13.13.13.3, 00:22:15
Kita bisa lihat, ternyata tidak otomatis pindah ke R2 lagi. nahh supaya memastikan link ke R2 menjadi main link, maka kita konfigurasikan attribute weight...
R1
R1-TKJB(config)#route-map WEIGHT
R1-TKJB(config-route-map)#set weight 100
R1-TKJB(config-route-map)#exit
R1-TKJB(config)#
R1-TKJB(config)#router bgp 1
R1-TKJB(config-router)#neigh 12.12.12.2 route-map WEIGHT in
R1-TKJB(config-route-map)#exit
R1-TKJB(config)#
R1-TKJB(config)#do clear ip bgp
Test pada R1.....
R1
R1(config)#do show ip bgp
BGP table version is 3, 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 12.12.12.2 100 23 4 i
* 13.13.13.3
R1
R1-TKJB(config)#do show ip route bgp
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 12.12.12.2, 00:05:10
Bisa kita liat sekarang linknya melalui R2 kembali. Coba kita tes lagi shutdown interface ke R2.
R1
R1-TKJB(config)#int g1/0
R1-TKJB(config-if)#sh
R1-TKJB(config-if)#exit
R1-TKJB(config)#
Hasilnyaaa
R1
R1-TKJB(config)#do sh ip bgp
BGP table version is 3, 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 12.12.12.2 0 100 234 i
R1
R1#sh ip route bgp
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 12.12.12.2, 00:02:13
Nahhh sekarang jalur kembali menggunakan main linknya kembali yakni melalui R2...
Done!!!😊😊
TERIMAKASIH
WASSALAMUALAIKUM WR. WB
0 comments:
Post a Comment