butoon

Tampilkan postingan dengan label Bab 3 - Routing. Tampilkan semua postingan
Tampilkan postingan dengan label Bab 3 - Routing. Tampilkan semua postingan

Selasa, 20 Desember 2011

Setting MPLS dengan Routing RIP


MPLS VPN dengan Routing Static di CPE

Yang kita inginkan dari gambar topologi di atas adalah router CPE BRI-KIRI (R10) bisa melakukan ping ke router CPE BRI-KANAN (R12)

Sisi CPE (BRI-KIRI) (R10)
hostname BRI-KIRI
!
ip cef
interface Loopback0
 ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.0.2 255.255.255.252
 duplex auto
 speed auto
!
ip route 0.0.0.0 0.0.0.0 192.168.0.1 (routing static pelanggan, default route)


=====================================
hostname PE1

ip vrf BRI.KIRI (menunjukkan identifier untuk MPLS CPE BRI)            
 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
 description BRI-KIRI
 ip vrf forwarding BRI.KIRI
 ip address 192.168.0.1 255.255.255.252
 speed auto
 half-duplex
!
interface FastEthernet0/1 (interface ke arah pelanggan)
 ip vrf forwarding BCA.KIRI
 ip address 192.168.0.1 255.255.255.252
 duplex auto
 speed auto
!
interface Serial1/0 (interface ke arah MPLS)
 ip address 192.168.10.1 255.255.255.252
 mpls ip
 serial restart-delay 0
!
router ospf 1 (routing ke arah MPLS domain)
 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

ip route vrf BRI.KIRI 5.5.5.5 255.255.255.255 192.168.0.2 (routing static ke CPE lawan)
!
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 (mengaktifkan MP-BGP untuk VPN)
  neighbor 10.10.10.2 activate
  neighbor 10.10.10.2 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf BRI.KIRI (Konfigurasi untuk routing CPE pelanggan)
  redistribute connected
  redistribute static (routing static CPE didistribusikan ke network pelanggan lainnya)
  no synchronization
 exit-address-family
!
==================================

Sisi CPE R12
BRI-KANAN#
hostname BRI-KANAN
interface Loopback0
 ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.0.6 255.255.255.252
 duplex auto
 speed auto

ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.0.5 (routing static dari pelanggan,default route)
===================================

hostname PE2
ip vrf BRI.KANAN (menunjukkan identifier untuk MPLS CPE BRI)   
 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 (interface ke arah pelanggan)
 ip vrf forwarding BRI.KANAN
 ip address 192.168.0.5 255.255.255.252
 speed auto
!
interface Serial1/1 (interface ke arah MPLS)
 ip address 192.168.20.2 255.255.255.252
 mpls ip
 serial restart-delay 0
!
router ospf 1 (routing ke arah MPLS domain)
 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
!
ip route vrf BRI.KANAN 6.6.6.6 255.255.255.255 192.168.0.6 (routing static ke CPE pelanggan)

router bgp 65000 (mengaktifkan BGP)
 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 (mengaktifkan MP-BGP)
  neighbor 10.10.10.1 activate
  neighbor 10.10.10.1 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf BRI.KANAN (Setting routing ke arah CPE)
  redistribute connected
  redistribute static
 exit-address-family
!

Test ping ke ip loopback dari BRI-KANAN, sudah reply
BRI-KIRI#ping 6.6.6.6

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/153/188 ms
BRI-KIRI#

VPN MPLS dengan Routing Static di CPE


VPN MPLS dengan Routing Static di CPE

Yang kita inginkan dari gambar topologi di atas adalah router CPE BRI-KIRI (R10) bisa melakukan ping ke router CPE BRI-KANAN (R12)

Sisi CPE (BRI-KIRI) (R10)
hostname BRI-KIRI
!
ip cef
interface Loopback0
 ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.0.2 255.255.255.252
 duplex auto
 speed auto
!
ip route 0.0.0.0 0.0.0.0 192.168.0.1 (routing static pelanggan, default route)


=====================================
hostname PE1

ip vrf BRI.KIRI (menunjukkan identifier untuk MPLS CPE BRI)            
 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
 description BRI-KIRI
 ip vrf forwarding BRI.KIRI
 ip address 192.168.0.1 255.255.255.252
 speed auto
 half-duplex
!
interface FastEthernet0/1 (interface ke arah pelanggan)
 ip vrf forwarding BCA.KIRI
 ip address 192.168.0.1 255.255.255.252
 duplex auto
 speed auto
!
interface Serial1/0 (interface ke arah MPLS)
 ip address 192.168.10.1 255.255.255.252
 mpls ip
 serial restart-delay 0
!
router ospf 1 (routing ke arah MPLS domain)
 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

ip route vrf BRI.KIRI 5.5.5.5 255.255.255.255 192.168.0.2 (routing static ke CPE lawan)
!
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 (mengaktifkan MP-BGP untuk VPN)
  neighbor 10.10.10.2 activate
  neighbor 10.10.10.2 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf BRI.KIRI (Konfigurasi untuk routing CPE pelanggan)
  redistribute connected
  redistribute static (routing static CPE didistribusikan ke network pelanggan lainnya)
  no synchronization
 exit-address-family
!
==================================

Sisi CPE R12
BRI-KANAN#
hostname BRI-KANAN
interface Loopback0
 ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
 ip address 192.168.0.6 255.255.255.252
 duplex auto
 speed auto

ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 192.168.0.5 (routing static dari pelanggan,default route)
===================================

hostname PE2
ip vrf BRI.KANAN (menunjukkan identifier untuk MPLS CPE BRI)   
 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 (interface ke arah pelanggan)
 ip vrf forwarding BRI.KANAN
 ip address 192.168.0.5 255.255.255.252
 speed auto
!
interface Serial1/1 (interface ke arah MPLS)
 ip address 192.168.20.2 255.255.255.252
 mpls ip
 serial restart-delay 0
!
router ospf 1 (routing ke arah MPLS domain)
 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
!
ip route vrf BRI.KANAN 6.6.6.6 255.255.255.255 192.168.0.6 (routing static ke CPE pelanggan)

router bgp 65000 (mengaktifkan BGP)
 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 (mengaktifkan MP-BGP)
  neighbor 10.10.10.1 activate
  neighbor 10.10.10.1 send-community extended
 exit-address-family
 !
 address-family ipv4 vrf BRI.KANAN (Setting routing ke arah CPE)
  redistribute connected
  redistribute static
 exit-address-family
!

Test ping ke ip loopback dari BRI-KANAN, sudah reply
BRI-KIRI#ping 6.6.6.6

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/153/188 ms
BRI-KIRI#

Setting MPLS

Blog EntriMPLS Setting dan Konfigurasi Dasar

MPLS (Multi Protocol Label Switching) merupakan suatu cara untuk pengiriman paket data dengan kecepatan tinggi. Protocol ini bekerja dengan di antara layer 2 dengan layer 3 menggunakan label untuk switching. Sehingga bersifat skalabilitas dan cepat.


Berikut adalah gambar topologinya :




Keterangan gambar :Router P (Provider) terhubung dengan router-router PE yang lain.
Router PE (Provider Edge) fungsinya menghubungkan Router CE ke Router P
Router CE (Customer Edge) , router di sisi pelanggan
Setting MPLS Backbone


hostname PE1
interface Loopback0
 ip address 10.10.10.1 255.255.255.255
!
interface Serial1/0
 ip address 192.168.10.1 255.255.255.252
 mpls ip (yang terkoneksi ke router P-mengaktifkan mpls)
 serial restart-delay 0
!
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


=======================
Pada router P
Hostname P
interface Loopback0
 ip address 10.10.10.10 255.255.255.255
!
interface Serial1/0
 ip address 192.168.10.2 255.255.255.252
 mpls ip (setingan pada router P)
 no fair-queue
 serial restart-delay 0
!
interface Serial1/1
 ip address 192.168.20.1 255.255.255.252
 mpls ip (setingan pada router P)
 serial restart-delay 0
!
router ospf 1
 log-adjacency-changes
 network 10.10.10.10 0.0.0.0 area 0
 network 192.168.10.2 0.0.0.0 area 0
 network 192.168.20.1 0.0.0.0 area 0
!
=========================
hostname PE2


interface Loopback0
 ip address 10.10.10.2 255.255.255.255
!
interface Serial1/1
 ip address 192.168.20.2 255.255.255.252
 mpls ip
 serial restart-delay 0
!
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 (mengaktifkan BGP)
 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
!


Cek BGP Peering antara PE1 dengan PE2
PE2#sh ip bgp sum
BGP router identifier 10.10.10.2, local AS number 65000
BGP table version is 1, main routing table version 1


Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.10.1      4 65000      14      14        1    0    0 00:11:06        0
PE2#


Verifikasi MPLS telah terbentuk

PE2#show mpls forwarding-table
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
tag    tag or VC   or Tunnel Id      switched   interface
16     Pop tag     192.168.10.0/30   0          Se1/1      point2point
17     Pop tag     10.10.10.10/32    0          Se1/1      point2point
18     17          10.10.10.1/32     0          Se1/1      point2point
PE2#

Setting BGP Pada 3 Router



Setting BGP
*Note : Sebelum konfigurasi BGP pastikan anda sudah memberi IP di Setiap Router

Setting BGP pada Router ISP1

ISP1(config)#router bgp 200
ISP1(config-router)#neighbor 10.0.0.2 remote-as 100
ISP1(config-router)#network 12.0.1.0 mask 255.255.255.0
ISP1(config-router)#exit
ISP1(config)#int loopback 0
ISP1(config-if)#ip address 12.0.0.1 255.255.255.0


Setting BGP pada Router ISP2

ISP2(config)#router bgp 300
ISP2(config-router)#neighbor 172.16.0.2 remote-as 100
ISP2(config-router)#network 172.16.1.0 mask 255.255.255.0
ISP2(config-router)#exit
ISP2(config)#int loopback 0
ISP2(config-if)#ip address 172.16.1.1 255.255.255.0


Setting BGP pada Router SanJose

SanJose(config)#router bgp 100
SanJose(config-router)#neighbor 10.0.0.1 remote-as 200
SanJose(config-router)#neighbor 172.16.0.1 remote-as 300
SanJose(config-router)#network 192.168.0.0 mask 255.255.255.0
SanJose(config-router)#network 192.168.1.0 mask 255.255.255.0
SanJose(config-router)#exit
SanJose(config)#int loopback 0
SanJose(config-if)#ip address 192.16.0.1 255.255.255.0
SanJose(config-router)#exit
SanJose(config)#int loopback 1
SanJose(config-if)#ip address 192.16.1.1 255.255.255.0