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#
Tidak ada komentar:
Posting Komentar