BGP-note-part1

This is just a note about BGP, I use GNS3 like usual to implement the BGP case that Mr Kevin told in his video. I use dia to create this diagram, I think visio is still better than dia  & kivio :(

Konfigurasi awal setiap router

R1

hostname R1
!
interface lo 0
ip address 1.1.1.1 255.255.255.255
!
interface Serial1/0
bandwidth 1000
ip address 172.16.1.1 255.255.255.252
encapsulation ppp
no shut
!
interface Serial1/1
bandwidth 2000
ip address 10.1.1.1 255.255.255.252
encapsulation ppp
clockrate 2016000
no shut

R2

hostname R2
!
interface lo 0
ip address 2.2.2.2 255.255.255.255
!
interface s 1/0
bandwidth 2000
ip address 172.16.2.1 255.255.255.252
encapsulation ppp
no shut
!
interface s 1/1
bandwidth 2000
ip address 10.1.1.2 255.255.255.252
encapsulation ppp
no shut
!

R3
hostname R3
!
interface lo 0
ip address 3.3.3.3 255.255.255.255
!
interface fa 0/0
ip address 192.168.1.1 255.255.255.0
no shutdown
!
interface s 1/0
bandwidth 1000
ip address 172.16.1.2 255.255.255.252
encapsulation ppp
clock rate 1008000
no shut
!
interface s 1/1
bandwidth 2000
ip address 172.16.2.2 255.255.255.252
encapsulation ppp
clock rate 2016000
no shut
!

R4

hostname R4
!
interface lo 0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.1.2 255.255.255.0
no shut
!


Konfigurasi Routing setiap Router

R1
router bgp 65002
neighbor 10.1.1.2 remote-as 65003
neighbor 172.16.1.2 remote-as 65001
network 10.1.1.0 mask 255.255.255.252


R2
router bgp 65003
neighbor 10.1.1.1 remote-as 65002
neighbor 172.16.2.2 remote-as 65001
network 10.1.1.0 mask 255.255.255.252


R3

router rip
version 2
network 3.0.0.0
network 192.168.1.0
!
router bgp 65001
neighbor 172.16.1.1 remote-as 65002
neighbor 172.16.2.1 remote-as 65003


R4

router rip
version 2
network 4.0.0.0
network 192.168.1.0


Redistribusi BGP ke dalam RIP v2 pada R3

router rip
redistribute bgp 65001 metric 2


Konfigurasi R1 untuk Autonomous System Prepending

Tujuannya : supaya jalur R3 ke R2 lebih diutamakan daripada jalur R3 ke R1, karena dalam hal ini jalur R3 ke R2 lebih besar bandwithnya. Kalau mau semuanya dikasih prepend juga bisa, dan kalau tujuannya tidak ingin menjadi jalur utama tinggal kasih aja prependnya lebih banyak, hehe yg kulihat di real world ada yang jumlah prependnya nyampe 10 :)

route-map ASPATH
set as-path prepend 65002
!
router bgp 65002
neighbor 172.16.1.2 route-map ASPATH out

====end of this simple configuration====

—show run and the result, too long to included here, maybe next time—

special thanks to : Mr. Kevin )

Leave a Reply

You must be logged in to post a comment.