Tuesday, April 25, 2017

Konfigurasi MPLS L3VPN dengan Static Routing pada Cisco

Assalamualaikum wr wb

Alhamdulillah kita masih bisa sharing bersama untuk menyampaikan materi lanjutkan kemarin yaitu Konfigurasi MPLS L3VPN pada Cisco ,topologinya masih sama seprti yang kemarin yaitu seprti gambar dibawah ini.

pertama kita konfigurasi IP address yang belum kita konfigurasi sebelumnya yaitu di router 4,5,6,7

R4(config)#int lo0
R4(config-if)#ip addr 4.4.4.4 255.255.255.255
R4(config-if)#int fa0/0
R4(config-if)#ip addr 10.10.10.2 255.255.255.0
R4(config-if)#no sh
R5(config)#int lo0
R5(config-if)#ip addr 5.5.5.5 255.255.255.255
R5(config-if)#int fa0/0
R5(config-if)#ip addr 10.10.10.2 255.255.255.0
R5(config-if)#no sh
R6(config)#int lo0
R6(config-if)#ip addr 6.6.6.6 255.255.255.255
R6(config-if)#int fa0/0
R6(config-if)#no sh
R6(config-if)#ip addr 20.20.20.2 255.255.255.0
R7(config)#int lo0
R7(config-if)#ip add 7.7.7.7 255.255.255.255
R7(config-if)#int fa0/0
R7(config-if)#ip addr 20.20.20.2 255.255.255.0
R7(config-if)#no sh
kemudian kita buat VRF untuk nama terserah dan untuk rd juga terserah yang penting tidak menyalahi aturan
R1(config)#ip vrf atas
R1(config-vrf)#rd 10:1
R1(config-vrf)#route-target both 10:1
R1(config-vrf)#exi
R1(config)#ip vrf bawah
R1(config-vrf)#rd 10:2
R1(config-vrf)#route-target both 10:2
R1(config-vrf)#exi
Kemudian terapkan interfacenya
R1(config)#int fa0/1
R1(config-if)#ip vrf forwarding atas
R1(config-if)#ip add 10.10.10.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exi
R1(config)#int fa1/1
R1(config-if)#ip vrf forwarding bawah
R1(config-if)#ip add 10.10.10.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exi
kemudian di router 3 kita juga mengkonfigurasi seperti yang diatas
R3(config)#ip vrf atas
R3(config-vrf)#rd 10:1
R3(config-vrf)#route-target both 10:1
R3(config-vrf)#exi
R3(config)#ip vrf bawah
R3(config-vrf)#rd 10:2
R3(config-vrf)#route-target both 10:2
R3(config-vrf)#exi
R3(config)#int fa1/0
R3(config-if)#ip vrf forwarding atas
R3(config-if)#ip add 20.20.20.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exi
R3(config)#int fa1/1             
R3(config-if)#ip vrf forwarding bawah
R3(config-if)#ip add 20.20.20.1 255.255.255.0
R3(config-if)#no sh
R3(config-if)#exi
konfigurasi mp bgp untuk mendistribusikan
R1(config)#router bgp 10
R1(config-router)#no syn
R1(config-router)#no auto-summ
R1(config-router)#neighbor 3.3.3.3 remote-as 10
R1(config-router)#neighbor 3.3.3.3 update-source lo0
R1(config-router)#address-fam vpnv4
R1(config-router-af)#neighbor 3.3.3.3 activ
R1(config-router-af)#exi
R1(config-router)#address-fam ipv4 vrf atas
R1(config-router-af)#redistribute connected
R1(config-router-af)#redistribute static
R1(config-router-af)#exi
R1(config-router)#address-fam ipv4 vrf bawah
R1(config-router-af)#redistribute connected
R1(config-router-af)#redistribute static
R1(config-router-af)#exi
kemudian konfigurasi di router PE yang satunya, konfigurasi sama dengan knfigurasi diatas
R3(config)#router bgp 10
R3(config-router)#no syn
R3(config-router)#no auto-summ
R3(config-router)#neighbor 1.1.1.1 remote-as 10
R3(config-router)#neighbor 1.1.1.1 update-sou lo0
R3(config-router)#address-family vpnv4
R3(config-router-af)#neighbor 1.1.1.1 activ
R3(config-router)#address-family ipv4 vrf atas
R3(config-router-af)#redistribute conn
R3(config-router-af)#redistribute static
R3(config-router-af)#exi
R3(config-router)#address-family ipv4 vrf bawah
R3(config-router-af)#redistribute conn
R3(config-router-af)#redistribute static
R3(config-router-af)#exi
kemudian kita mulai mengkonfigurasi static routing menuju ke router ce masing masing
R1(config)#ip route vrf atas 4.4.4.4 255.255.255.255 10.10.10.2
R1(config)#ip route vrf bawah 5.5.5.5 255.255.255.255 10.10.10.2
dan di router pe 3
R3(config)#ip route vrf atas 6.6.6.6 255.255.255.255 20.20.20.2
R3(config)#ip route vrf bawah 7.7.7.7 255.255.255.255 20.20.20.2
 kemudian konfigurasi di semua router ce, static routing
R4(config)# ip route 6.6.6.6 255.255.255.255 10.10.10.1 
R4(config)# ip route 6.6.6.6 255.255.255.255 10.10.10.1
R5(config)#ip route 20.20.20.0 255.255.255.0 10.10.10.1
R5(config)#ip route 7.7.7.7 255.255.255.255 10.10.10.1

R6(config)#ip route 10.10.10.0 255.255.255.0 20.20.20.1
R6(config)#ip route 4.4.4.4 255.255.255.255 20.20.20.1
R7(config-if)#ip route 10.10.10.0 255.255.255.0 20.20.20.1
R7(config)#ip route 5.5.5.5 255.255.255.255 20.20.20.1
kemudian kita cek di tabel routingnya

R1(config)#do sh ip route vrf atas

Routing Table: atas
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
       + - replicated route, % - next hop override

Gateway of last resort is not set

      4.0.0.0/32 is subnetted, 1 subnets
S        4.4.4.4 [1/0] via 10.10.10.2
      6.0.0.0/32 is subnetted, 1 subnets
B        6.6.6.6 [200/0] via 3.3.3.3, 00:00:52
      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        10.10.10.0/24 is directly connected, FastEthernet1/0
L        10.10.10.1/32 is directly connected, FastEthernet1/0
      20.0.0.0/24 is subnetted, 1 subnets
B        20.20.20.0 [200/0] via 3.3.3.3, 02:00:54
R1(config)#


dan kita coba ping antar vrf
R4(config)#do 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 = 48/67/116 ms
R4(config)#

Artikel Terkait

Konfigurasi MPLS L3VPN dengan Static Routing pada Cisco
4/ 5
Oleh

Berlangganan

Suka dengan artikel di atas? Silakan berlangganan gratis via email