Kita sudah mempelajari berbagai macam routing pada MPLS, mulai dari static hingga dinamic (RIP dan EIGRP). Masih ada routing dinamic yaitu BGP. Pada lab kali ini kita akan mencoba menerapkan routing BGP pada jaringan MPLS.

Topologinya ada di bawah ini, kita akan menerapkan BGP pada BANK BCA.

topologi

Petunjuk LAB

1. Untuk MPLS backbone masih menggunakan topologi dan konfigurasi pada artikel sebelumnya yaitu MPLS VPN, silahkan lihat disini

 

2. Konfigurasi routing BGP pada PE1 dan PE2, lalu redistribute ke BGP yg sudah dikonfigurasi sebelumnya.

Router PE1

router bgp 65000

address-family ipv4 vrf bca.kiri
neighbor 192.168.0.2 remote-as 100 (Memasukkan IP PE2 ke dalam routing tabel BGP router PE1)
neighbor 192.168.0.2 activate              (Untuk mengaktifkan pertukaran informasi dengan protocol BGP lawan)
neighbor 192.168.0.2 as-override      (Untuk mencegah routing loop dari router yg sama2 mengaktifkan vpn dan memliki AS number yg sama)
network 192.168.0.0 mask 255.255.255.252 (Memasukkan alamat network yg akan digunakan untuk berkomunikasi dari PE1 ke PE2 ke dalam routing tabel BGP)

 

Router PE2

router bgp 65000

address-family ipv4 vrf bca.kanan
neighbor 192.168.0.6 remote-as 100
neighbor 192.168.0.6 activate
neighbor 192.168.0.6 as-override
network 192.168.0.4 mask 255.255.255.252

 

3. Konfigurasi IP addess dan routing BGP pada router BCA.KIRI dan BCA.KANAN

R6 BCA KIRI

router bgp 100
network 6.6.6.6 mask 255.255.255.255
network 192.168.0.0 mask 255.255.255.252
neighbor 192.168.0.1 remote-as 65000

 

R7 BCA KANAN

router bgp 100
network 7.7.7.7 mask 255.255.255.255
network 192.168.0.4 mask 255.255.255.252
neighbor 192.168.0.5 remote-as 65000

 

Verifikasi

Lakukan ping ke interface PE yg terhubung ke bank  BCA, dan loopback semua router BCA

ping r7

Lakukan traceroute untuk memastikan trafik sudah melalui jalur yg benar dan melalui jalur MPLS.

tracer r6

terlihat trafik dari R6 ke R7, melalui PE1 yg merupakan jalur MPLS kemudian langsung ke PE2 yg menggunakan routing BGP dengan AS number 65000

tracer r7

Cek routing tabelnya pastikan sudah menggunakan routing BGP yang bersimbol “B” pada routing tabel.

sh ip route r6

 

Hasil show run dari lab kali ini adalah sebagai berikut.

Router PE1

ip vrf bca.kiri
rd 65000:2
route-target export 65000:2
route-target import 65000:2
!
ip vrf bri.kiri
rd 65000:1
route-target export 65000:1
route-target import 65000:1

interface Loopback0
ip address 10.10.10.1 255.255.255.255
!
interface FastEthernet0/0
ip vrf forwarding bri.kiri
ip address 192.168.0.1 255.255.255.252
duplex auto
speed auto
!
interface Serial0/0
ip address 192.168.10.1 255.255.255.252
mpls ip
clock rate 2000000
!
interface FastEthernet0/1
ip vrf forwarding bca.kiri
ip address 192.168.0.1 255.255.255.252
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 10.10.10.1 0.0.0.0 area 0
network 192.168.10.1 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.2 remote-as 65000
neighbor 10.10.10.2 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 10.10.10.2 activate
neighbor 10.10.10.2 send-community extended
exit-address-family

address-family ipv4 vrf bca.kiri
neighbor 192.168.0.2 remote-as 100
neighbor 192.168.0.2 activate
neighbor 192.168.0.2 as-override
no synchronization
network 192.168.0.0 mask 255.255.255.252
exit-address-family

 

Router PE2

ip vrf bca.kanan
rd 65000:2
route-target export 65000:2
route-target import 65000:2
!
ip vrf bri.kanan
rd 65000:1
route-target export 65000:1
route-target import 65000:1
!
interface Loopback0
ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
ip vrf forwarding bri.kanan
ip address 192.168.0.5 255.255.255.252
duplex auto
speed auto
!
interface Serial0/0
ip address 192.168.20.2 255.255.255.252
mpls ip
clock rate 2000000
!
interface FastEthernet0/1
ip vrf forwarding bca.kanan
ip address 192.168.0.5 255.255.255.252
duplex auto
speed auto
!
router ospf 1
log-adjacency-changes
network 10.10.10.2 0.0.0.0 area 0
network 192.168.20.2 0.0.0.0 area 0
!
router bgp 65000
no synchronization
bgp log-neighbor-changes
neighbor 10.10.10.1 remote-as 65000
neighbor 10.10.10.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 10.10.10.1 activate
neighbor 10.10.10.1 send-community extended
exit-address-family
!
address-family ipv4 vrf bca.kanan
neighbor 192.168.0.6 remote-as 100
neighbor 192.168.0.6 activate
neighbor 192.168.0.6 as-override
no synchronization
network 192.168.0.4 mask 255.255.255.252
exit-address-family

 

Router R6 BCA KIRI

interface Loopback0
ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.0.2 255.255.255.252
duplex auto
speed auto
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 6.6.6.6 mask 255.255.255.255
network 192.168.0.0 mask 255.255.255.252
neighbor 192.168.0.1 remote-as 65000
no auto-summary

 

Router 7 BCA KANAN

interface Loopback0
ip address 7.7.7.7 255.255.255.255
!
interface FastEthernet0/0
ip address 192.168.0.6 255.255.255.252
duplex auto
speed auto
!
router bgp 100
no synchronization
bgp log-neighbor-changes
network 7.7.7.7 mask 255.255.255.255
network 192.168.0.4 mask 255.255.255.252
neighbor 192.168.0.5 remote-as 65000