Jumat, 11 November 2016

Lab 81 - BGP Confederation Cisco

Pada lab sebelumnya kita telah belajar BGP Route Reflector untuk mengatasi Masalah Full Mesh IBGP. Selanjutnya pada lab ini kita akan belajar tentanng BGP Confederation, fungsi dari BGP Confederation ini sama dengan route reflector, yaitu untuk mengatasi masalah full mesh IBGP.

Cara kerja BGP Confederation adalah membuat sebuah virtual AS dalam sebuah AS. Untuk lebih jelasnya langsung ke contoh kasus aja deh..
Gambar 1 Topologi BGP Confederation
Pada topologi diatas, R1, R2, dan R3 terletak pada AS 123. Untuk mengatasi agar tidak butuh full mesh, maka kita bisa membuat sebuah virtual AS pada setiap router. Perhatikan bahwa R1 memiliki virtual AS 100, R2 punya 200, dan R3 punya 300. Jadi nantinya seolah-olah ketiga router tersebut berada di AS yang berbeda, walau sebenarnya berada di satu AS.

Kita akan menggunakan lab yang sebelumnya, namun kita hapus aja dulu konfig BGP nya
R1(config)#no router bgp 123
R2(config)#no router bgp 123
R3(config)#no router bgp 123
Sekarang kita konfig BGP Conrederation nya
R1(config)#router bgp 100 R1(config-router)#bgp confederation identifier 123 R1(config-router)#bgp confederation peer 200 R1(config-router)#neighbor 12.12.12.2 remote-as 200 R1(config-router)#net 1.1.1.1 mask 255.255.255.255
Perhatikan bahwa R1 menggunakan AS virtualnya, kemudian BGP identifier merupakan AS aslinya, dan BGP confederation peer adalah daftar AS yang akann peering dengan dirinya. Lanjut konfig di R2 dan R3
R2(config)#router bgp 200
R2(config-router)#bgp confederation identifier 123 R2(config-router)#bgp confederation peers 100 R2(config-router)#bgp confederation peers 300 R2(config-router)#neighbor 12.12.12.1 remote-as 100 R2(config-router)#neighbor 12.12.12.1 next-hop-self R2(config-router)#neighbor 23.23.23.3 remote-as 300 R2(config-router)#neighbor 23.23.23.3 next-hop-self R2(config-router)#net 2.2.2.2 mask 255.255.255.255
Perhatikan bahwa kita mengkonfigurasikan next-hop-self. Hal ini diperlukan agar R2 mengadvertise network ke R1 dan R2 dengan dirinya sendiri yang bertindak sebagai next hop. Lanjut konfig di R3 deh
R3(config)#router bgp 300
R3(config-router)#bgp confederation identifier 123 R3(config-router)#bgp confederation peers 200 R3(config-router)#neighbor 23.23.23.2 remote-as 200 R3(config-router)#net 3.3.3.3 mask 255.255.255.255
Oke sudah selesai, kita coba cek tabel routing di seluruh router
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:07:13 3.0.0.0/32 is subnetted, 1 subnets B 3.3.3.3 [200/0] via 12.12.12.2, 00:03:55 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/24 is subnetted, 1 subnets S 23.23.23.0 [1/0] via 12.12.12.2
R2(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets B 1.1.1.1 [200/0] via 12.12.12.1, 00:04:46 2.0.0.0/32 is subnetted, 1 subnets C 2.2.2.2 is directly connected, Loopback0 3.0.0.0/32 is subnetted, 1 subnets B 3.3.3.3 [200/0] via 23.23.23.3, 00:03:38 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 23.23.23.0/24 is directly connected, Ethernet0/1
R3(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets B 1.1.1.1 [200/0] via 23.23.23.2, 00:03:32 2.0.0.0/32 is subnetted, 1 subnets B 2.2.2.2 [200/0] via 23.23.23.2, 00:05:39 3.0.0.0/32 is subnetted, 1 subnets C 3.3.3.3 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnets S 12.12.12.0 [1/0] via 23.23.23.2 23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 23.23.23.0/24 is directly connected, Ethernet0/0
Sip2 udah pada lengkap, kita coba ping deh
R1(config)#do ping 2.2.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms R1(config)#do ping 3.3.3.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
Juozzzz udah sukses!!

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