Jumat, 11 November 2016

Lab 86 - BGP Summarization

Pada lab ini kita akan belajar untuk melakukan summarization pada jaringan BGP. Berikut topologi yang akan kita gunakan pada lab ini
Gambar 1 Topologi jaringan BGP
Topologi ini merupakan topologi yang kita gunakan pada lab sebelumnya. Nantinya kita akan menambahkan IP Loopback di R4 untuk kemudian kita advertise ke dalam BGP. Oke langsung aja kali ya..
R4(config-if)#int l1
R4(config-if)#ip add 44.44.44.1 255.255.255.255 R4(config-if)#int l2 R4(config-if)#ip add 44.44.44.2 255.255.255.255 R4(config-if)#int l3 R4(config-if)#ip add 44.44.44.3 255.255.255.255 R4(config-if)#int l4 R4(config-if)#ip add 44.44.44.4 255.255.255.255 R4(config-if)#int l5 R4(config-if)#ip add 44.44.44.5 255.255.255.255 R4(config-if)#int l6 R4(config-if)#ip add 44.44.44.6 255.255.255.255 R4(config-if)#router bgp 4 R4(config-router)#net 44.44.44.1 mask 255.255.255.255 R4(config-router)#net 44.44.44.2 mask 255.255.255.255 R4(config-router)#net 44.44.44.3 mask 255.255.255.255 R4(config-router)#net 44.44.44.4 mask 255.255.255.255 R4(config-router)#net 44.44.44.5 mask 255.255.255.255 R4(config-router)#net 44.44.44.6 mask 255.255.255.255
Sekarang kita coba lihat tabel routing di R1 ya..
R1(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.1 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets B 2.2.2.2 [200/0] via 12.12.12.2, 00:15:01 3.0.0.0/32 is subnetted, 1 subnets B 3.3.3.3 [200/0] via 12.12.12.2, 00:14:20 4.0.0.0/32 is subnetted, 1 subnets B 4.4.4.4 [200/0] via 12.12.12.2, 00:14:20 11.0.0.0/32 is subnetted, 1 subnets C 11.11.11.11 is directly connected, Loopback1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 44.0.0.0/32 is subnetted, 6 subnets B 44.44.44.1 [200/0] via 12.12.12.2, 00:01:08 B 44.44.44.2 [200/0] via 12.12.12.2, 00:00:37 B 44.44.44.3 [200/0] via 12.12.12.2, 00:00:37 B 44.44.44.4 [200/0] via 12.12.12.2, 00:00:37 B 44.44.44.5 [200/0] via 12.12.12.2, 00:00:37 B 44.44.44.6 [200/0] via 12.12.12.2, 00:00:37
Juozzzz R1 udah punya informasi tentang semua IP Loopback R4, tapi kog banyak banget ya? justru karena banyak itu kita akan konfig summary.. gimana sih.... hehehe oke langsung aja deh kita konfig summary nya
R4(config-router)#aggregate-address 44.44.44.0 255.255.255.248
Wah simpel banget ya? coba lihat tabel routing di R1 lagi ya..
R1(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.1 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets B 2.2.2.2 [200/0] via 12.12.12.2, 00:19:43 3.0.0.0/32 is subnetted, 1 subnets B 3.3.3.3 [200/0] via 12.12.12.2, 00:19:02 4.0.0.0/32 is subnetted, 1 subnets B 4.4.4.4 [200/0] via 12.12.12.2, 00:19:02 11.0.0.0/32 is subnetted, 1 subnets C 11.11.11.11 is directly connected, Loopback1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 44.0.0.0/8 is variably subnetted, 7 subnets, 2 masks B 44.44.44.0/29 [200/0] via 12.12.12.2, 00:00:44 B 44.44.44.1/32 [200/0] via 12.12.12.2, 00:05:50 B 44.44.44.2/32 [200/0] via 12.12.12.2, 00:05:19 B 44.44.44.3/32 [200/0] via 12.12.12.2, 00:05:19 B 44.44.44.4/32 [200/0] via 12.12.12.2, 00:05:19 B 44.44.44.5/32 [200/0] via 12.12.12.2, 00:05:19 B 44.44.44.6/32 [200/0] via 12.12.12.2, 00:05:19
Tuh udah ada summary nya.. tapi lha kog masih tetep banyak? karena BGP secara default ngirim IP yang di summary dan yang defaultnya.. gimana caranya agar BGP cuma ngirim IP yang disummary? gampang kog..
R4(config-router)#aggregate-address 44.44.44.0 255.255.255.248 summary-only
Coba cek lagi ya..
R1(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.1 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets B 2.2.2.2 [200/0] via 12.12.12.2, 00:21:30 3.0.0.0/32 is subnetted, 1 subnets B 3.3.3.3 [200/0] via 12.12.12.2, 00:20:49 4.0.0.0/32 is subnetted, 1 subnets B 4.4.4.4 [200/0] via 12.12.12.2, 00:20:49 11.0.0.0/32 is subnetted, 1 subnets C 11.11.11.11 is directly connected, Loopback1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 44.0.0.0/29 is subnetted, 1 subnets B 44.44.44.0 [200/0] via 12.12.12.2, 00:02:30
Juozzzz mudah kan? aku bilang juga apa....

Eh sabar dulu.. belum abis nih materinya.. Pada contoh diatas kita melakukan summary untuk seluruh IP Loopback R4, mulai dari 44.44.44.1-44.44.44.6. Gimana kalo misal kita pengen yang disummary cuma IP 44.44.44.1-44.44.44.4 aja? IP 44.44.44.5 dan 44.44.44.6 gak pengen disummary??

Wah.. ini sedikit sulit nih case nya.. tapi konfignya gampang kog.. gampang banget.. coba langsung aja ya..
R4(config)#access-list 1 permit 44.44.44.1
R4(config)#access-list 1 permit 44.44.44.2 R4(config)#access-list 1 permit 44.44.44.3 R4(config)#access-list 1 permit 44.44.44.4 R4(config)#route-map SEBAGIAN R4(config-route-map)#match ip address 1 R4(config-route-map)#router bgp 4 R4(config-router)#aggregate-address 44.44.44.0 255.255.255.248 suppress-map SEBAGIAN
coba cek lagi di R1
R1(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.1 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets B 2.2.2.2 [200/0] via 12.12.12.2, 00:25:34 3.0.0.0/32 is subnetted, 1 subnets B 3.3.3.3 [200/0] via 12.12.12.2, 00:24:53 4.0.0.0/32 is subnetted, 1 subnets B 4.4.4.4 [200/0] via 12.12.12.2, 00:24:53 11.0.0.0/32 is subnetted, 1 subnets C 11.11.11.11 is directly connected, Loopback1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 44.0.0.0/8 is variably subnetted, 3 subnets, 2 masks B 44.44.44.0/29 [200/0] via 12.12.12.2, 00:06:35 B 44.44.44.5/32 [200/0] via 12.12.12.2, 00:00:07 B 44.44.44.6/32 [200/0] via 12.12.12.2, 00:00:07
Juozzzz yang tersummary cuma IP 44.44.44.1-44.44.44.4 aja.. yang 44.44.44.5 dan 44.44.44.6 gak tersummary seperti yang kita inginkan.. jozzz dah...

Like the Post? Do share with your Friends.

Tidak ada komentar:

Posting Komentar

Komentar

FeedBack

Jika Anda merasa terbantu dengan artikel dari Coretan Bocah IT, silahkan berlangganan GRATIS via email. Dengan begitu, Anda akan mendapat kiriman artikel setiap ada artikel baru yang terbit di Coretan Bocah IT

Masukkan Email :

IconIconIconFollow Me on Pinterest