Senin, 24 Juli 2017

[TRAINING CCNA NIXTRAIN] BGP

                               BGP ( Border Gateway Protocol ) 


# Apa itu BGP ? 
   BGP adalah inti dari protocol routing internet.BGP diciptakan untuk menggantikan protokol routing EGP yang mengizinkan routing secara tersebar sehingga tidak harus mengacu pada satu jaringan backbone saja.
BGP tidak hanya me-routingkan antar autonomos system (AS) yang sama. Namun juga digunakan untuk me-routing antar AS yang berbeda.

Saya akan membuat contoh penggunaan BGP didalam router mengunakan cisco packet tracer.

* Kita buat topologi sederhana seperti dibawah ini


* Setelah itu kita masukkan ip address kedalam masing - masing interface                    berdasarkan tabel di bawah ini.


 Jika sudah selesai mari kita mulai konfigurasi BGP 

# Konfigurasi BGP didalam masing-masing router
   R1
   R1(config)#router bgp 500
   R1(config-router)#neighbor 12.12.12.2 remote-as 600 
   
   R2
   R2(config)#router bgp 600
   R2(config-router)#neighbor 12.12.12.1 remote-as 500

# Verifikasi neighbor router, dengan command show ip bgp summary
    R1
    R1#show ip bgp summary
    BGP router identifier 12.12.12.1, local AS number 500
    BGP table version is 1, main routing table version 6
    0 network entries using 0 bytes of memory
    0 path entries using 0 bytes of memory
    0/0 BGP path/bestpath attribute entries using 0 bytes of memory
    0 BGP AS-PATH entries using 0 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
    Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
    BGP using 32 total bytes of memory
    BGP activity 0/0 prefixes, 0/0 paths, scan interval 60 secs  

    Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down
    State/PfxRcd12.12.12.2      4   600       5       5        1    0    0 00:03:04        4


     R2
     R2#show ip bgp summary
     BGP router identifier 12.12.12.2, local AS number 600
     BGP table version is 1, main routing table version 6
     0 network entries using 0 bytes of memory
     0 path entries using 0 bytes of memory
     0/0 BGP path/bestpath attribute entries using 0 bytes of memory
     0 BGP AS-PATH entries using 0 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
     Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
     BGP using 32 total bytes of memory
     BGP activity 0/0 prefixes, 0/0 paths, scan interval 60 secs  


     Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down
     State/PfxRcd12.12.12.1      4   500       7       7        1    0    0 00:05:33        4

#   Konfigurasi network advertise di masing-masing router.
     R1
     R1#conf t 
     R1(config)#router bgp 500
     R1(config-router)#network 1.1.1.0 mask 255.255.255.0
     R1(config-router)#network 12.12.12.0 mask 255.255.255.0  


     R2
     R2#conf t
     R2(config)#router bgp 600
     R2(config-router)#network 2.2.2.0 mask 255.255.255.0
     R2(config-router)#network 12.12.12.0 mask 255.255.255.0

#  Verifikasi routing table bgp di masing-masing router
     R1
     R1#show ip bgp
     BGP table version is 5, local router ID is 12.12.12.1
     Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,                              r RIB-failure, S Stale
    Origin codes: i - IGP, e - EGP, ? - incomplete  

     Network          Next Hop            Metric LocPrf Weight Path 
     *> 1.1.1.0/24        0.0.0.0                  0     0 32768 i
     *> 2.2.2.0/24        12.12.12.2               0     0     0 600 i
     *> 12.12.12.0/24     0.0.0.0                  0     0 32768 i
     *                    12.12.12.2               0     0     0 600 i

     R2
     R2#show ip bgp
     BGP table version is 5, local router ID is 12.12.12.2
     Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,                            r RIB-failure, S Stale
     Origin codes: i - IGP, e - EGP, ? - incomplete  

   
     Network          Next Hop            Metric LocPrf Weight Path
     *> 1.1.1.0/24        12.12.12.1               0     0     0 500 i
     *> 2.2.2.0/24        0.0.0.0                  0     0 32768 i
     *  12.12.12.0/24     12.12.12.1               0     0     0 500 i
     *>                   0.0.0.0                  0     0 32768 i

#   Verifikasi koneksi masing-masing PC
      PC-1  
      PC>ping 2.2.2.2  

      Pinging 2.2.2.2 with 32 bytes of data:  

      Reply from 2.2.2.2: bytes=32 time=0ms TTL=126
      Reply from 2.2.2.2: bytes=32 time=1ms TTL=126
      Reply from 2.2.2.2: bytes=32 time=0ms TTL=126
      Reply from 2.2.2.2: bytes=32 time=0ms TTL=126  


      Ping statistics for 2.2.2.2:
          Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
      Approximate round trip times in milli-seconds:
          Minimum = 0ms, Maximum = 1ms, Average = 0ms

       PC-2  
       PC>ping 1.1.1.2
  
       Pinging 1.1.1.2 with 32 bytes of data:  

       Reply from 1.1.1.2: bytes=32 time=1ms TTL=126
       Reply from 1.1.1.2: bytes=32 time=0ms TTL=126
       Reply from 1.1.1.2: bytes=32 time=0ms TTL=126
       Reply from 1.1.1.2: bytes=32 time=0ms TTL=126  


       Ping statistics for 1.1.1.2:
           Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
       Approximate round trip times in milli-seconds:
           Minimum = 0ms, Maximum = 1ms, Average = 0ms

# Tutorial selesai kedua PC saling terhubung.

Mohon maaf bila ada kesalahan ataupun kekurangan dalam tulisan saya.
Terimakasih.

Tidak ada komentar:

Posting Komentar