Konfigurasi Routing BGP Single Homed Pada Router Cisco
Konfigurasi Routing BGP Single Homed Pada Router Cisco

Border Gateway Protocol (BGP) merupakan salah satu jenis routing protokol yang digunakan untuk koneksi antar Autonomous System (AS). Ada empat type dasar BGP : single homed, dual homed, single multihomed and dual mutihomed. Dalam tutorial ini saya tidak membahas secara detail dan cara kerja BGP, namun saya akan memberi sedikit cara singkat untuk mengimplementasikan desain BGP "Single Homed". 

Berikut topologi yang akan digunakan dalam tutorial ini.

Konfigurasi Routing BGP Single Homed Pada Router Cisco Lab GNS3

1. Konfigurasi Router KAMPUS-A

AMPUS-A#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
KAMPUS-A(config)#int fa0/0
KAMPUS-A(config-if)#ip add 10.10.10.9 255.255.255.252
KAMPUS-A(config-if)#no shutdown 
KAMPUS-A(config-if)#exit
KAMPUS-A(config)#int fa0/1
KAMPUS-A(config-if)#ip add 11.11.11.254 255.255.255.0
KAMPUS-A(config-if)#no shutdown 
KAMPUS-A(config-if)#exit
KAMPUS-A(config)#
KAMPUS-A(config)#router bgp 100
KAMPUS-A(config-router)#neighbor 10.10.10.10 remote-as 200
KAMPUS-A(config-router-af)# network 11.11.11.0 mask 255.255.255.0
KAMPUS-A(config-router)#exit
KAMPUS-A(config)#exit
KAMPUS-A#wr
Building configuration...
[OK]
KAMPUS-A#

2. Konfigurasi Router KAMPUS-B

KAMPUS-B#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
KAMPUS-B(config)#int fa0/0
KAMPUS-B(config-if)#ip add 10.10.10.9 255.255.255.252
KAMPUS-B(config-if)#no shutdown 
KAMPUS-B(config-if)#exit
KAMPUS-B(config)#int fa0/1
KAMPUS-B(config-if)#ip add 12.12.12.254 255.255.255.0
KAMPUS-B(config-if)#no shutdown 
KAMPUS-B(config-if)#exit
KAMPUS-B(config)#
KAMPUS-B(config)#router bgp 200
KAMPUS-B(config-router)#network 12.12.12.0 mask 255.255.255.0
KAMPUS-B(config-router)#neighbor 10.10.10.9 remote-as 100
KAMPUS-B(config-router)#end
KAMPUS-B#wr
Building configuration...
[OK]
KAMPUS-B#

3. Konfigurasi KOMPUTER-A

KOMPUTER-A> ip 11.11.11.1/24 11.11.11.254
Checking for duplicate address...
PC1 : 11.11.11.1 255.255.255.0 gateway 11.11.11.254

4. Konfigurasi KOMPUTER-B

KOMPUTER-B> ip 12.12.12.1/24 12.12.12.254
Checking for duplicate address...
PC1 : 12.12.12.1 255.255.255.0 gateway 12.12.12.254

5. Verifikasi BGP dan konektivitas di router KAMPUS-A dan KAMPUS-B

KAMPUS-A#sh ip bgp summary 
BGP router identifier 11.11.11.254, local AS number 100
BGP table version is 14, main routing table version 14
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 734 total bytes of memory
BGP activity 6/4 prefixes, 7/5 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.10.10     4   200      34      30       14    0    0 00:19:12        1
KAMPUS-A#


KAMPUS-A#sh ip route       
Codes: 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

Gateway of last resort is not set

     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.8 is directly connected, FastEthernet0/0
     11.0.0.0/24 is subnetted, 1 subnets
C       11.11.11.0 is directly connected, FastEthernet0/1
     12.0.0.0/24 is subnetted, 1 subnets
B       12.12.12.0 [20/0] via 10.10.10.10, 00:04:49

KAMPUS-A#KAMPUS-A#sh ip route bgp 
     12.0.0.0/24 is subnetted, 1 subnets
B       12.12.12.0 [20/0] via 10.10.10.10, 00:32:26
KAMPUS-A#
KAMPUS-B#sh ip bgp summary 
BGP router identifier 12.12.12.254, local AS number 200
BGP table version is 12, main routing table version 12
2 network entries using 234 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 734 total bytes of memory
BGP activity 6/4 prefixes, 6/4 paths, scan interval 60 secs

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.10.9      4   100      31      35       12    0    0 00:20:51        1
KAMPUS-B#

KAMPUS-B#sh ip route 
Codes: 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

Gateway of last resort is not set

     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.8 is directly connected, FastEthernet0/0
     11.0.0.0/24 is subnetted, 1 subnets
B       11.11.11.0 [20/0] via 10.10.10.9, 00:06:52
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/1
KAMPUS-B#
KAMPUS-B#sh ip route bgp 
     11.0.0.0/24 is subnetted, 1 subnets
B       11.11.11.0 [20/0] via 10.10.10.9, 00:33:03
KAMPUS-B#

6. Tes koneksi dari KOMPUTER-A ke KOMPUTER-B

KOMPUTER-A> ping 12.12.12.1
84 bytes from 12.12.12.1 icmp_seq=1 ttl=62 time=32.002 ms
84 bytes from 12.12.12.1 icmp_seq=2 ttl=62 time=43.201 ms
84 bytes from 12.12.12.1 icmp_seq=3 ttl=62 time=62.400 ms
84 bytes from 12.12.12.1 icmp_seq=4 ttl=62 time=24.001 ms
84 bytes from 12.12.12.1 icmp_seq=5 ttl=62 time=26.001 ms

KOMPUTER-A> 

7. Tes koneksi dari KOMPUTER-B ke KOMPUTER-A

KOMPUTER-B> ping 11.11.11.1   
84 bytes from 11.11.11.1 icmp_seq=1 ttl=62 time=35.002 ms
84 bytes from 11.11.11.1 icmp_seq=2 ttl=62 time=25.002 ms
84 bytes from 11.11.11.1 icmp_seq=3 ttl=62 time=24.001 ms
84 bytes from 11.11.11.1 icmp_seq=4 ttl=62 time=35.002 ms
84 bytes from 11.11.11.1 icmp_seq=5 ttl=62 time=22.001 ms

KOMPUTER-B> 

Terima kasih atas kunjunganya, semoga bermanfaat.



Tulis Komentar

(Tidak ditampilkan dikomentar)