Lab 5. MPLS & L3VPN Menggunakan RIPv2
Topologi masih menggunakan topologi yang sebelumnya.
Konfigurasi IP Address, MPLS Core, BGP dan OSPF masih menggunakan yang
sebelumnya, hanya saja routing static dari PE ke CR serta dari CR ke PE di
rubah jadi menggunakan RIPv2, dan redistribute static di bgp dirubah
jadi redistribute rip.
Hapus dulu konfigurasi routing static di PE dan CR serta di BGP
R2-PE(config)#no ip route vrf cr2 1.1.1.1 255.255.255.255 12.12.12.1
R2-PE(config)#router bgp 234
R2-PE(config-router)#address-family ipv4 vrf cr2
R2-PE(config-router-af)#no redis connected
R2-PE(config-router-af)#no redis static
R2-PE(config-router-af)#exit
R4-PE(config)#no ip route vrf cr4 5.5.5.5 255.255.255.255 45.45.45.5
R4-PE(config)#router bgp 234
R4-PE(config-router)#address-family ipv4 vrf cr4
R4-PE(config-router-af)#no redis connected
R4-PE(config-router-af)#no redis static
R4-PE(config-router-af)#exit
Konfigurasi RIPv2 di R2-PE
R2-PE(config)#router rip
R2-PE(config-router)#version 2
R2-PE(config-router)#add
R2-PE(config-router)#address-family ipv4 vrf cr2
R2-PE(config-router-af)#net 12.0.0.0
R2-PE(config-router-af)#no auto
R2-PE(config-router-af)#version 2
R2-PE(config-router-af)#exit
Konfigurasi RIPv2 di R4-PE
R4-PE(config)#router rip
R4-PE(config-router)#version 2
R4-PE(config-router)#ad
R4-PE(config-router)#address-family ipv4 vrf cr4
R4-PE(config-router-af)#version 2
R4-PE(config-router-af)#no auto
R4-PE(config-router-af)#net 45.0.0.0
R4-PE(config-router-af)#exit
Konfigurasi Redistribute RIP ke BGP di R2-PE
R2-PE(config)#router bgp 234
R2-PE(config-router)#add
R2-PE(config-router)#address-family ipv4 vrf cr2
R2-PE(config-router-af)#redistribute rip
R2-PE(config-router-af)#exit
R2-PE(config-router)#
Konfigurasi Redistribute BGP ke RIP di R2-PE
R2-PE(config)#router rip
R2-PE(config-router)#version 2
R2-PE(config-router)#add
R2-PE(config-router)#address-family ipv4 vrf cr2
R2-PE(config-router-af)#redistribute bgp 234 metric 5
R2-PE(config-router-af)#exit
R2-PE(config-router)#exit
Konfigurasi Redistribute RIP ke BGP di Router R4-PE
R4-PE(config)#router bgp 234
R4-PE(config-router)#add
R4-PE(config-router)#address-family ipv4 vrf cr4
R4-PE(config-router-af)#redistribute rip
R4-PE(config-router-af)#exit
Konfigurasi Redistribute BGP ke RIP di Router R4-PE
R4-PE(config)#router rip
R4-PE(config-router)#version 2
R4-PE(config-router)#add
R4-PE(config-router)#address-family ipv4 vrf cr4
R4-PE(config-router-af)#redistribute bgp 234 metric 5
R4-PE(config-router-af)#exi
Verifikasi IP Route vrf cr2
R2-PE(config)#do sh ip route vrf cr2 | b Gate
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/1] via 12.12.12.1, 00:00:28, Ethernet0/1
5.0.0.0/32 is subnetted, 1 subnets
B 5.5.5.5 [200/1] via 4.4.4.4, 00:02:54
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.12.12.0/24 is directly connected, Ethernet0/1
L 12.12.12.2/32 is directly connected, Ethernet0/1
45.0.0.0/24 is subnetted, 1 subnets
B 45.45.45.0 [200/0] via 4.4.4.4, 00:02:54
R2-PE(config)#
Verifikasi IP Route vrf cr4
R4-PE(config)#do sh ip route vrf cr4 | b Gate
Gateway of last resort is not set
1.0.0.0/32 is subnetted, 1 subnets
B 1.1.1.1 [200/1] via 2.2.2.2, 00:03:26
5.0.0.0/32 is subnetted, 1 subnets
R 5.5.5.5 [120/1] via 45.45.45.5, 00:00:22, Ethernet0/1
12.0.0.0/24 is subnetted, 1 subnets
B 12.12.12.0 [200/0] via 2.2.2.2, 00:03:26
45.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 45.45.45.0/24 is directly connected, Ethernet0/1
L 45.45.45.4/32 is directly connected, Ethernet0/1
R4-PE(config)#
Terlihat dari tabel routing vrf Flag R merupakan Protocol ROuting RIP, yang mana
RIP sudah terapat pada routing tabel vrf cr2 ataupun cr4, selanjutnya
konfigurasi RIPv2 di cr2 dan cr4
CR2(config)#router rip
CR2(config-router)#version 2
CR2(config-router)#no au
CR2(config-router)#net 12.0.0.0
CR2(config-router)#net 1.0.0.0
CR2(config-router)#exit
CR4(config)#router rip
CR4(config-router)#version 2
CR4(config-router)#no au
CR4(config-router)#net 5.0.0.0
CR4(config-router)#net 45.0.0.0
CR4(config-router)#exit
Selanjutnya verifikasi test ping cr2 ke cr4
CR4(config)#do ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/21 ms
CR4(config)#
CR2(config)#do ping 5.5.5.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/11 ms
CR2(config)#
Alhamdulillah cr2 dan cr4 sudah bisa terhubung dengan baik, selesei
Salam Ngoprek