Selasa, 20 Desember 2011

Konfigurasi MPLS-BGP



Konfigurasi IP Address

PE 1   : 202.10.5.1/24                e1/1

PE 2   : 202.10.10.1/24             e1/0

LSR 1 : 202.10.5.2/24               e1/0
 : 192.168.2.1/24            e1/1

LSR 2 : 192.168.2.2/24            e1/0
             : 202.10.10.2/24            e1/1

Command Line : PE 1
router (config)# interface ethernet 1/1
router (config-if)# ip address  202.10.5.1 255.255.255.0
router (config-if)# no shutdown

Command Line : PE 2
router (config)# interface ethernet 1/0
router (config-if)# ip address  202.10.10.1 255.255.255.0
router (config-if)# no shutdown

Command Line : LSR 1
router (config)# interface ethernet 1/0
router (config-if)# ip address  202.10.5.2 255.255.255.0
router (config-if)# no shutdown
router (config)# interface ethernet 1/1
router (config-if)# ip address  192.168.2.1 255.255.255.0
router (config-if)# no shutdown
Command Line : LSR 2
router (config)# interface ethernet 1/1
router (config-if)# ip address  202.10.10.2 255.255.255.0
router (config-if)# no shutdown
router (config)# interface ethernet 1/0
router (config-if)# ip address  192.168.2.2 255.255.255.0
router (config-if)# no shutdown

Konfigurasi IP Interface Loopback

PE_1    : 192.168.100.1/32
PE_2    : 192.168.100.4/32
LSR_1 : 192.168.100.2/32
LSR_2 : 192.168.100.3/32


Command Line : contoh PE 1
router (config)# interface loopback 0
router (config-if)# ip address  192.168.100.1 255.255.255.255

Command Line : contoh PE 2
router (config)# interface loopback 0
router (config-if)# ip address  192.168.100.4 255.255.255.255

Command Line : contoh LSR 1
router (config)# interface loopback 0
router (config-if)# ip address  192.168.100.2 255.255.255.255

Command Line : contoh LSR 2
router (config)# interface loopback 0
router (config-if)# ip address  192.168.100.3 255.255.255.255


SETTING ROUTING DYNAMIC

PE 1
#router ospf 100
#network 192.168.1.0 0.0.0.255 area 100            core
#network 192.168.100.1 0.0.0.0 area 100            loopback PE1

PE 2
# router ospf 100
# network 192.168.3.0 0.0.0.255 area 100          core
# network 192.168.100.4 0.0.0.0 area 100          loopback PE2


LSR 1
# router ospf 100
# network 192.168.1.0 0.0.0.255 area 100          PE_1
# network 192.168.2.0 0.0.0.255 area 100          core
# network 192.168.100.2 0.0.0.0 area 100          loopback core
LSR 2
# router ospf 100
# network 192.168.3.0 0.0.0.255 area 100          PE_2
# network 192.168.2.0 0.0.0.255 area 100          core
# network 192.168.100.2 0.0.0.0 area 100          loopback core

Periksa router
# show ip route

Test Ping dari PE 1 Ke LSR 1
# ping 202.10.5.1

Aktifkan BGP

PE 1
# router bgp 100
# no synchronization
# neighbor 192.168.100.3 remote-as 100
# neighbor 192.168.100.3 update-source Loopback0
# no auto-summary

PE 2
# router bgp 100
# no synchronization
# neighbor 192.168.100.1 remote-as 100
# neighbor 192.168.100.1 update-source Loopback0
# no auto-summary

 Cek Status BGP
# show ip bgp neighbors atau
# show ip bgp summary

statusnya harus Active
Aktifkan MPLS

PE 1
# ip cef
# mpls label protocol ldp
# mpls ldp router-id loopback0 force
# interface Ethernet 1/1                        connect ke LSR 1
# ip address 202.10.5.1 255.255.255.0
# mpls ip

PE 2
# ip cef
# mpls label protocol ldp
# mpls ldp router-id loopback0 force
# interface Ethernet 1/0                        connect ke LSR 2
# ip address 202.10.10.1 255.255.255.0
# mpls ip


LSR_ 1
# ip cef
# mpls label protocol ldp
# mpls ldp router-id loopback0 force
# interface Ethernet 1/0                        connect ke PE 1
# ip address 202.10.5.1 255.255.255.0
# mpls ip
# exit

# ip cef
# mpls label protocol ldp
# mpls ldp router-id loopback0 force
# interface Ethernet 1/1                        connect ke LSR 2
# ip address 172.16.5.1 255.255.255.0
# mpls ip

LSR_2
# ip cef
# mpls label protocol ldp
# mpls ldp router-id loopback0 force
# interface Ethernet 1/0                        connect ke LSR 1
# ip address 202.10.10.1 255.255.255.0
# mpls ip
# exit

# ip cef
# mpls label protocol ldp
# mpls ldp router-id loopback0 force
# interface Ethernet 1/1                        connect ke PE 2
# ip address 172.16.10.1 255.255.255.0
# mpls ip

Cek Status MPLS

# show mpls ldp neighbor


Semoga bermanfaat..............trims

Senin, 19 Desember 2011

Pengertian BGP (Border Gateway Protocol)

Border Gateway Protokol (BGP) merupakan salah satu jenis routing protokol yang digunakan untuk koneksi antar Autonomous System (AS), dan salah satu jenis routing protokol yang banyak digunakan di ISP besar (Telkomsel) ataupun perbankan. BGP termasuk dalam kategori routing protokol jenis Exterior Gateway Protokol (EGP).

Dengan adanya EGP, router dapat melakukan pertukaran rute dari dan ke luar jaringan lokal Auotonomous System (AS). BGP mempunyai skalabilitas yang tinggi karena dapat melayani pertukaran routing pada beberapa organisasi besar. Oleh karena itu BGP dikenal dengan routing protokol yang sangat rumit dan kompleks.

Karakteristik BGP
  1. Menggunakan algoritma routing distance vektor.Algoritma routing distance vector secara periodik menyalin table routing dari router ke router. Perubahan table routing di update antar router yang saling berhubungan pada saat terjadi perubahan topologi.
  2. Digunakan antara ISP dengan ISP dan client-client.
  3. Digunakan untuk merutekan trafik internet antar autonomous system.
  4. BGP adalah Path Vector routing protocol.Dalam proses menentukan rute-rute terbaiknya selalu mengacu kepada path yang terbaik dan terpilih yang didapatnya dari router BGP yang lainnya.
  5. Router BGP membangun dan menjaga koneksi antar-peer menggunakan port nomor 179.
  6. Koneksi antar-peer dijaga dengan menggunakan sinyal keepalive secara periodik.
  7. Metrik (atribut) untuk menentukan rute terbaik sangat kompleks dan dapat dimodifikasi dengan fleksibel.
  8. BGP memiliki routing table sendiri yang biasanya memuat prefiks-prefiks routing yang diterimanya dari router BGP lain
*source : http://robbysekawan.blogspot.com/2009/12/pengertian-bgp-border-gateway-protokol.html