Tuesday, 7 May 2013

BGP Confederation

selain menggunakan route reflector, sebagai solusi pada konfigurasi full mesh pada iBGP. kita bisa menggunakan BGP confederation.  dengan BGP confederation maka dibuat beberapa sub AS didalam AS 12 sehingga seolah-olah seperti eBGP. karena eBGP tidak memerlukan full mesh

TOPOLOGI

R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#int fa0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int fa0/1
R1(config-if)#ip add 14.14.14.1 255.255.255.0
R1(config-if)#no shut
R1(config)#router bgp 12001
R1(config-router)#bgp confederation identifier 12
R1(config-router)#bgp confederation peers 12002
R1(config-router)#neighbor 12.12.12.2 remot 12002
R1(config-router)#neighbor 14.14.14.4 remote-as 12001
R1(config-router)#neighbor 14.14.14.4 next-hop-self
R1(config-router)#network 1.1.1.1 mask 255.255.255.255
R1(config-router)#network 12.12.12.0 mask 255.255.255.0
R1(config-router)#network 14.14.14.0 mask 255.255.255.0
R4(config)#int fa0/0
R4(config-if)#ip add 14.14.14.4 255.255.255.0
R4(config-if)#no shut
R4(config-if)#int lo0      
R4(config-if)#ip add 4.4.4.4 255.255.255.255
R4(config-if)#router bgp 12001
R4(config-router)#bgp confederation identifier 12
R4(config-router)#neighbor 14.14.14.1 remot 12001
R4(config-router)#net 4.4.4.4 mask 255.255.255.255
R4(config-router)#net 14.14.14.0 mask 255.255.255.0
R2(config)#int f0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int f0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int s0/0
R2(config-if)#ip add 25.25.25.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int lo0    
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config)#router bgp 12002
R2(config-router)#bgp confederation identifier 12
R2(config-router)#bgp confederation peers 12001
R2(config-router)#bgp confederation peers 12003
R2(config-router)#neighbor 12.12.12.1 remot 12001           
R2(config-router)#neighbor 23.23.23.3 remot 12003
R2(config-router)#neighbor 25.25.25.5 remot 12002
R2(config-router)#neighbor 25.25.25.5 next-hop-self
R2(config-router)#net 2.2.2.2 mask 255.255.255.255
R2(config-router)#network 12.12.12.0 mask 255.255.255.0
R2(config-router)#network 25.25.25.0 mask 255.255.255.0
R2(config-router)#network 23.23.23.0 mask 255.255.255.0
R5(config)#int s0/0
R5(config-if)#ip add 25.25.25.5 255.255.255.0
R5(config-if)#no shut
R5(config-if)#ip add 5.5.5.5 255.255.255.255
R5(config-if)#router bgp 12002
R5(config-router)#neighbor 25.25.25.2 remot 12002        
R5(config-router)#net 5.5.5.5 mask 255.255.255.255
R5(config-router)#network 25.25.25.0 mask 255.255.255.0
R3(config)#int f0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int s0/0
R3(config-if)#ip add 36.36.36.3 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config)#router bgp 12003
R3(config-router)#bgp confederation identifier 12
R3(config-router)#bgp confederation peers 12002
R3(config-router)#neighbor 23.23.23.2 remot 12002
R3(config-router)#neighbor 36.36.36.6 remot 6
R3(config-router)#net 3.3.3.3 mask 255.255.255.255
R3(config-router)#net 23.23.23.0 mask 255.255.255.0
R3(config-router)#net 36.36.36.0 mask 255.255.255.0
R6(config)#int s0/0
R6(config-if)#ip add 36.36.36.6 255.255.255.0
R6(config-if)#no shut
R6(config-if)#int lo0
R6(config-if)#ip add 6.6.6.6 255.255.255.255
R6(config-if)#router bgp 6
R6(config-router)#neighbor 36.36.36.3 remot 12
R6(config-router)#net 6.6.6.6 mask 255.255.255.255
R6(config-router)#net 36.36.36.0 mask 255.255.255.0

tes ping dari semua router ke semua ip loopback untuk memastikan apakah semua ip sudah bisa tersambung.