BGP Confederation
Bikin IP Address di semua Router R1 R2 R6 R4 dan R5
R1(config)#int lo0
R1(config-if)#ip add 1.1.1.1 255.255.255.255
R1(config-if)#int e0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#int s2/0
R1(config-if)#ip add 14.14.14.1 255.255.255.0
R1(config-if)#no shut
R2(config)#int lo0
R2(config-if)#ip add 2.2.2.2 255.255.255.255
R2(config-if)#int e0/0
R2(config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int s2/0
R2(config-if)#ip add 25.25.25.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#int e0/1
R2(config-if)#ip add 23.23.23.1 255.255.255.0
R2(config-if)#no shut
R3(config)#int lo0
R3(config-if)#ip add 3.3.3.3 255.255.255.255
R3(config-if)#int e0/1
R3(config-if)#ip add 23.23.23.2 255.255.255.0
R3(config-if)#no shut
R3(config-if)#int s2/0
R3(config-if)#ip add 36.36.36.1 255.255.255.0
R3(config-if)#no shut
R6(config)#int lo0
R6(config-if)#ip add 6.6.6.6 255.255.255.255
R6(config-if)#int s2/0
R6(config-if)#ip add 36.36.36.2 255.255.255.0
R6(config-if)#no shut
R4(config)#int lo0
R4(config-if)#ip add 4.4.4.4 255.255.255.255
R4(config-if)#int s2/0
R4(config-if)#ip add 14.14.14.2 255.255.255.0
R4(config-if)#no shut
R5(config)#int lo0
R5(config-if)#ip add 5.5.5.5 255.255.255.255
R5(config-if)#int s2/0
R5(config-if)#ip add 25.25.25.2 255.255.255.0
R5(config-if)#no shut
Setelah semua router di pasang IP Address Interface dan IP Loopbacknya
selanjutnya advertise IP Loopback dan Networknya ke BGP komplit dengan
bgp confederationnya serta peer antar sub as, kemudian untuk neighbornya
isikan ip address interface(bukan IP Loopback)router yang akan dilalui
lengkap dengan sub asnya
R1(config)#router bgp 12001
R1(config-router)#net 1.1.1.1 mask 255.255.255.255
R1(config-router)#net 12.12.12.0 mask 255.255.255.0
R1(config-router)#net 14.14.14.0 mask 255.255.255.0
R1(config-router)#neigh 14.14.14.2 remote-as 12001
R1(config-router)#neigh 12.12.12.2 remote-as 12002
R1(config-router)#bgp confederation identifier 123
R1(config-router)#bgp confederation peers 12002 12003
R2(config-if)#exit
R2(config)#router bgp 12002
R2(config-router)#net 2.2.2.2 mask 255.255.255.255
R2(config-router)#net 12.12.12.0 mask 255.255.255.0
R2(config-router)#net 25.25.25.0 mask 255.255.255.0
R2(config-router)#net 23.23.23.0 mask 255.255.255.0
R2(config-router)#neigh 12.12.12.1 remote-as 12001
R2(config-router)#neigh 25.25.25.2 remote-as 12002
R2(config-router)#neigh 23.23.23.2 remote-as 12003
R2(config-router)#bgp confederation identifier 123
R2(config-router)#bgp confederation peers 12001 12003
R3(config)#router bgp 12003
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
R3(config-router)#neigh 23.23.23.1 remote-as 12002
R3(config-router)#neigh 36.36.36.2 remote-as 6
R3(config-router)#bgp confederation identifier 123
R3(config-router)#bgp confederation peers 12001 12002
R6(config)#router bgp 6
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
R6(config-router)#neigh 36.36.36.1 remote-as 123
Router 6 tidak menggunaka bgp confederation karena beda AS alias EBGP
R4(config)#router bgp 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
R4(config-router)#neigh 14.14.14.1 remote-as 12001
R4(config-router)#bgp confederation identifier 123
R4(config-router)#bgp confederation peers 12002 12003
R5(config)#router bgp 12002
R5(config-router)#net 5.5.5.5 mask 255.255.255.255
R5(config-router)#net 25.25.25.0 mask 255.255.255.0
R5(config-router)#neigh 25.25.25.1 remote-as 12002
R5(config-router)#bgp confederation identifier 123
R5(config-router)#bgp confederation peers 12001 12003
Setelah semuanya sudah dikonfigurasikan BGPnya tunggu sampai semua router
melakukan adjacency, kalau sudah coba cek ip route bgp nya di R1 dan R6
periksa apakah semua network sudah terdaftar
R1#sh ip route bgp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [200/0] via 12.12.12.2, 00:37:55
3.0.0.0/32 is subnetted, 1 subnets
B 3.3.3.3 [200/0] via 23.23.23.2, 00:35:36
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [200/0] via 14.14.14.2, 00:31:11
5.0.0.0/32 is subnetted, 1 subnets
B 5.5.5.5 [200/0] via 25.25.25.2, 00:30:16
6.0.0.0/32 is subnetted, 1 subnets
B 6.6.6.6 [200/0] via 36.36.36.2, 00:33:07
23.0.0.0/24 is subnetted, 1 subnets
B 23.23.23.0 [200/0] via 12.12.12.2, 00:37:55
25.0.0.0/24 is subnetted, 1 subnets
B 25.25.25.0 [200/0] via 12.12.12.2, 00:37:55
36.0.0.0/24 is subnetted, 1 subnets
B 36.36.36.0 [200/0] via 23.23.23.2, 00:35:36
R1#
R6#sh ip route bgp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
a - application route
+ - replicated route, % - next hop override
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
B 1.1.1.1 [20/0] via 36.36.36.1, 00:04:19
2.0.0.0/32 is subnetted, 1 subnets
B 2.2.2.2 [20/0] via 36.36.36.1, 00:04:19
3.0.0.0/32 is subnetted, 1 subnets
B 3.3.3.3 [20/0] via 36.36.36.1, 00:04:19
4.0.0.0/32 is subnetted, 1 subnets
B 4.4.4.4 [20/0] via 36.36.36.1, 00:02:23
5.0.0.0/32 is subnetted, 1 subnets
B 5.5.5.5 [20/0] via 36.36.36.1, 00:01:28
12.0.0.0/24 is subnetted, 1 subnets
B 12.12.12.0 [20/0] via 36.36.36.1, 00:04:19
14.0.0.0/24 is subnetted, 1 subnets
B 14.14.14.0 [20/0] via 36.36.36.1, 00:04:19
23.0.0.0/24 is subnetted, 1 subnets
B 23.23.23.0 [20/0] via 36.36.36.1, 00:04:19
25.0.0.0/24 is subnetted, 1 subnets
B 25.25.25.0 [20/0] via 36.36.36.1, 00:04:19
R6#
Coba ping dari R6 ke semua network atau router
R6#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 17/18/19 ms
R6#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 9/9/11 ms
R6#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 = 6/9/11 ms
R6#ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 18/20/24 ms
R6#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:
!!!!!
Mantabbb surantabbb
Alhamdulillah lab BGP Confederation sudah selesei