Kamis, 27 April 2017

Lab 135 - Superlab L3VPN Cisco (Bagian 5 Konfigurasi PE&CE)

Pada lab sebelumnya kita sudah membahas konfigurasi IBGP pada seluruh router PE.. selanjutnya pada lab ini kita akan mengkonfigurasikan bagian PE dan CE.. sepertinya pembahasan ini akan menjadi pembahasan terahir dari superlab ini deh.. hehehe... siap2 berpisah lagi yaa... tapi doakan saja agar saya bisa segera menulis lagi di blog yaa.. hehe

Oke langsung saja yaa
Sebelum ke konfigurasi,, saya akan sampaikan konfigurasinya yaa... untuk RD nya nanti akan menggunakan list berikut

  • Services -> 10:100
  • Kantor A -> 10:200
  • Kantor B -> 10:300
  • Kantor C -> 10:400
  • Kantod D-> 10:500
Adapun untuk routing protocol, kita akan menggunakan sesuai list berikut
  • Services -> Static
  • Kantor A -> OSPF
  • Kantor B -> OSPF
  • Kantor C -> EIGRP
  • Kantod D -> EIGRP
Oke.. pertama kita akan konfigurasi PE1 yaa.. yaitu di R5.. pertama kita konfigurasikan dulu vrf nya,
R5(config)#ip vrf Services R5(config-vrf)#rd 10:100 R5(config-vrf)#route-target export 10:100 R5(config-vrf)#route-target import 10:200 R5(config-vrf)#route-target import 10:300 R5(config-vrf)#route-target import 10:400 R5(config-vrf)#route-target import 10:500 R5(config-vrf)#int e0/1 R5(config-if)#ip vrf forwarding Services R5(config-if)#ip add 205.205.205.5 255.255.255.0
Selanjutnya kita konfigurasi addressing di bagian CE
R20(config)#int e0/0 R20(config-if)#no sh R20(config-if)#ip add 205.205.205.20 255.255.255.0 R20(config-if)#int lo0 R20(config-if)#ip add 20.20.20.20 255.255.255.255
Oke.. lanjut kita konfigurasikan static routing di bagian PE untuk menuju CE yaa.. ingat bahwa dibagian Service kita menggunakan static routing..
R5(config)#ip route vrf Services 20.20.20.20 255.255.255.255 205.205.205.20
Untuk pengujian.. kita lakukan ping dari router PE ke ip loopback CE
R5(config)#do ping vrf Services 20.20.20.20 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 20.20.20.20, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
Oke.. selanjutnya kita konfigurasikan default route di router CE
R20(config-if)#ip route 0.0.0.0 0.0.0.0 205.205.205.5
Sekarang kita redistribute static routing yang ada di PE ke IBGP..
R5(config)#router bgp 10 R5(config-router)#address-family ipv4 vrf Services R5(config-router-af)#redistribute static
Oke.. konfigurasi di PE1 done!!!

Lanjut kita konfigurasi di PE2 yaaa.. pertama kita konfigurasikan vrf nya dulu yaa
R6(config)#ip vrf A R6(config-vrf)#rd 10:200 R6(config-vrf)#route-target export 10:200 R6(config-vrf)#route-target import 10:200 R6(config-vrf)#route-target import 10:100 R6(config-vrf)#exit R6(config)#ip vrf B R6(config-vrf)#rd 10:300 R6(config-vrf)#route-target export 10:300 R6(config-vrf)#route-target import 10:300 R6(config-vrf)#route-target import 10:100 R6(config-vrf)#exit R6(config)#ip vrf C R6(config-vrf)#rd 10:400 R6(config-vrf)#route-target export 10:400 R6(config-vrf)#route-target import 10:400 R6(config-vrf)#route-target import 10:100 R6(config-vrf)#exit R6(config)#int e0/1 R6(config-if)#ip vrf forwarding A R6(config-if)#no sh R6(config-if)#ip add 69.69.69.6 255.255.255.0 R6(config-if)#int e0/2 R6(config-if)#ip vrf forwarding B R6(config-if)#no sh R6(config-if)#ip add 106.106.106.6 255.255.255.0 R6(config-if)#int e0/3 R6(config-if)#ip vrf forwarding C R6(config-if)#no sh R6(config-if)#ip add 116.116.116.6 255.255.255.0
Lanjut kita konfigurasikan routing protocolnya yaa.. ingat bahwa kantor A dan B menggunakan OSPF sedangkan kantor C menggunakan EIGRP.
R6(config)#router ospf 200 vrf A R6(config-router)# *Apr 27 14:01:50.405: %OSPF-4-NORTRID: OSPF process 200 failed to allocate unique router-id and cannot start R6(config-router)#router-id 200.200.200.200 R6(config-router)#net 69.69.69.6 0.0.0.0 are 0 R6(config-router)#exit R6(config)#router ospf 300 vrf B *Apr 27 14:03:00.368: %OSPF-4-NORTRID: OSPF process 300 failed to allocate unique router-id and cannot start R6(config-router)#router-id 30.30.30.30 R6(config-router)#net 106.106.106.6 0.0.0.0 are 0 R6(config-router)#exit R6(config)#router eigrp 400 R6(config-router)#address-family ipv4 vrf C autonomous-system 400 R6(config-router-af)#network 116.116.116.6 0.0.0.0
Oke.. sekarang kita konfigurasi di bagian CE yaa
R9(config)#int e0/0 R9(config-if)#no sh R9(config-if)#ip add 69.69.69.9 255.255.255.0 R9(config-if)#int lo0 R9(config-if)#ip add 9.9.9.9 255.255.255.255 R9(config-if)#router ospf 200 R9(config-router)#net 69.69.69.9 0.0.0.0 are 0 R9(config-router)#net 9.9.9.9 0.0.0.0 are 0
R10(config)#int e0/0 R10(config-if)#no sh R10(config-if)#ip add 106.106.106.10 255.255.255.0 R10(config-if)#int lo0 R10(config-if)#ip add 10.10.10.10 255.255.255.255 R10(config-if)#router ospf 300 R10(config-router)#net 106.106.106.10 0.0.0.0 are 0 R10(config-router)#net 10.10.10.10 0.0.0.0 are 0
R11(config)#int e0/0 R11(config-if)#no sh R11(config-if)#ip add 116.116.116.11 255.255.255.0 R11(config-if)#int lo0 R11(config-if)#ip add 11.11.11.11 255.255.255.255 R11(config-if)#router ei 400 R11(config-router)#net 116.116.116.11 0.0.0.0 R11(config-router)#net 11.11.11.11 0.0.0.0
Oke.. terahir kita konfigurasikan redistribution nya di router PE
R6(config)#router bgp 10 R6(config-router)#address-family ipv4 vrf A R6(config-router-af)#redistribute ospf 200 R6(config-router-af)#address-family ipv4 vrf B R6(config-router-af)#redistribute ospf 300 R6(config-router-af)#address-family ipv4 vrf C R6(config-router-af)#redistribute eigrp 400
R6(config)#router ospf 200 R6(config-router)#redistribute bgp 10 subnets R6(config-router)#router ospf 300 R6(config-router)#redistribute bgp 10 subnets R6(config)#router ei 400 R6(config-router)#address-family ipv4 vrf C autonomous-system 400 R6(config-router-af)#redistribute bgp 10 metric 1 1 1 1 1
Oke.. kita sudah selesai.. untuk pengujian, kita coba lihat tabel routing masing-masing vrf
R6(config-router-af)#do sh ip rou vrf A Routing Table: A Gateway of last resort is not set 9.0.0.0/32 is subnetted, 1 subnets O 9.9.9.9 [110/11] via 69.69.69.9, 00:14:46, Ethernet0/1 69.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 69.69.69.0/24 is directly connected, Ethernet0/1 L 69.69.69.6/32 is directly connected, Ethernet0/1
R6(config-router-af)#do sh ip rou vrf B Routing Table: B Gateway of last resort is not set 10.0.0.0/32 is subnetted, 1 subnets O 10.10.10.10 [110/11] via 106.106.106.10, 00:15:01, Ethernet0/2 106.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 106.106.106.0/24 is directly connected, Ethernet0/2 L 106.106.106.6/32 is directly connected, Ethernet0/2
R6(config-router-af)#do sh ip rou vrf C Routing Table: C Gateway of last resort is not set 11.0.0.0/32 is subnetted, 1 subnets D 11.11.11.11 [90/409600] via 116.116.116.11, 00:02:05, Ethernet0/3 116.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 116.116.116.0/24 is directly connected, Ethernet0/3 L 116.116.116.6/32 is directly connected, Ethernet0/3
Oke.. sudah berhasill..

lanjut kita konfigurasi di PE3 yaa... seperti biasa, pertama kita konfigurasikan vrf nya dulu
R8(config)#ip vrf C R8(config-vrf)#rd 10:400 R8(config-vrf)#route-target export 10:400 R8(config-vrf)#route-target import 10:100 R8(config-vrf)#route-target import 10:400 R8(config-vrf)#exit R8(config)#ip vrf A R8(config-vrf)#rd 10:200 R8(config-vrf)#route-target export 10:200 R8(config-vrf)#route-target import 10:200 R8(config-vrf)#route-target import 10:100 R8(config-vrf)#exit R8(config)#ip vrf D R8(config-vrf)#rd 10:500 R8(config-vrf)#route-target export 10:500 R8(config-vrf)#route-target import 10:500 R8(config-vrf)#route-target import 10:100 R8(config-vrf)#exit R8(config)#int e0/1 R8(config-if)#ip vrf forwarding C R8(config-if)#ip add 148.148.148.8 255.255.255.0 R8(config-if)#int e0/2 R8(config-if)#ip vrf forwarding A R8(config-if)#ip add 138.138.138.8 255.255.255.0 R8(config-if)#int e0/3 R8(config-if)#ip vrf forwarding D R8(config-if)#ip add 128.128.128.8 255.255.255.0 R8(config-if)#int rang e0/1-3 R8(config-if-range)#no sh
oke konfigurasi vrf sudah selesai.. lanjut kita konfigurasikan routing protocol di PE.. untuk kantor A akan menggunakan OSPF, sedangkan kantor C dan D menggunakan EIGRP
R8(config)#router eigrp 400 R8(config-router)#address-family ipv4 vrf C autonomous-system 400 R8(config-router-af)#network 148.148.148.8 0.0.0.0 R8(config-router-af)#exit R8(config)#router ospf 200 vrf A R8(config-router)#router-id 200.200.200.200 R8(config-router)#network 138.138.138.8 0.0.0.0 are 0 R8(config-router)#exit R8(config)#router eigrp 500 R8(config-router)#address-family ipv4 vrf D autonomous-system 500 R8(config-router-af)#network 128.128.128.8 0.0.0.0 R8(config-router-af)#exit
Oke.. konfigurasi di PE sudah selesai.. lanjut kita konfigurasikan di bagian CE
R14(config)#int e0/0 R14(config-if)#no sh R14(config-if)#ip add 148.148.148.14 255.255.255.0 R14(config-if)#int lo0 R14(config-if)#ip add 14.14.14.14 255.255.255.255 R14(config-if)#router eigrp 400 R14(config-router)#net 148.148.148.14 0.0.0.0 R14(config-router)#net 14.14.14.14 0.0.0.0
R13(config)#int e0/0 R13(config-if)#no sh R13(config-if)#ip add 138.138.138.13 255.255.255.0 R13(config-if)#int lo0 R13(config-if)#ip add 13.13.13.13 255.255.255.255 R13(config-if)#router ospf 200 R13(config-router)#net 138.138.138.13 0.0.0.0 are 0 R13(config-router)#net 13.13.13.13 0.0.0.0 are 0
R12(config)#int e0/0 R12(config-if)#no sh R12(config-if)#ip add 128.128.128.12 255.255.255.0 R12(config-if)#int lo0 R12(config-if)#ip add 12.12.12.12 255.255.255.255 R12(config-if)#router eigrp 500 R12(config-router)#net 128.128.128.12 0.0.0.0 R12(config-router)#net 12.12.12.12 0.0.0.0
Lanjut kita konfigurasikan redistributionnya di router PE
R8(config)#router bgp 10 R8(config-router)#address-family ipv4 vrf C R8(config-router-af)#redistribute eigrp 400 R8(config-router-af)#address-family ipv4 vrf A R8(config-router-af)#redistribute ospf 200 R8(config-router-af)#address-family ipv4 vrf D R8(config-router-af)#redistribute eigrp 500 R8(config-router-af)#exit R8(config-router)#router eigrp 400 R8(config-router)#address-family ipv4 vrf C autonomous-system 400 R8(config-router-af)#redistribute bgp 10 metric 1 1 1 1 1 R8(config-router-af)#exit R8(config-router)#router ospf 200 vrf A R8(config-router)#redistribute bgp 10 subnets R8(config-router)#exit R8(config)#router eigrp 500 R8(config-router)#address-family ipv4 vrf D autonomous-system 500 R8(config-router-af)#redistribute bgp 10 metric 1 1 1 1 1 R8(config-router-af)#exit
Okkeeee konfigurasi di PE3 sudah selesai..

Lanjut kita konfigurasi di PE4..
R7(config)#ip vrf C R7(config-vrf)#rd 10:400 R7(config-vrf)#route-target export 10:400 R7(config-vrf)#route-target import 10:400 R7(config-vrf)#route-target import 10:100 R7(config-vrf)#exit R7(config)#ip vrf B R7(config-vrf)#rd 10:300 R7(config-vrf)#route-target export 10:300 R7(config-vrf)#route-target import 10:300 R7(config-vrf)#route-target import 10:100 R7(config-vrf)#exit R7(config)#int e0/2 R7(config-if)#ip vrf forwarding C R7(config-if)#no sh R7(config-if)#ip add 167.167.167.7 255.255.255.0 R7(config-if)#int e0/1 R7(config-if)#ip vrf forwarding B R7(config-if)#no sh R7(config-if)#ip add 157.157.157.7 255.255.255.0
R7(config)#router eigrp 400 R7(config-router)#address-family ipv4 vrf C autonomous-system 400 R7(config-router-af)#network 167.167.167.7 0.0.0.0 R7(config-router-af)#exit R7(config-router)#exit R7(config)#router ospf 300 vrf B R7(config-router)#router-id 30.30.30.30 R7(config-router)#network 157.157.157.7 0.0.0.0 are 0 R7(config-router)#exit
Oke.. kita lanjut konfig di CE
R16(config)#int e0/0 R16(config-if)#no sh R16(config-if)#ip add 167.167.167.16 255.255.255.0 R16(config-if)#int lo0 R16(config-if)#ip add 16.16.16.16 255.255.255.255 R16(config-if)#router ei 400 R16(config-router)#net 167.167.167.16 0.0.0.0 R16(config-router)#net 16.16.16.16 0.0.0.0
R15(config)#int e0/0 R15(config-if)#no sh R15(config-if)#ip add 157.157.157.15 255.255.255.0 R15(config-if)#int lo0 R15(config-if)#ip add 15.15.15.15 255.255.255.255 R15(config-if)#router ospf 300 R15(config-router)#net 157.157.157.15 0.0.0.0 are 0 R15(config-router)#net 15.15.15.15 0.0.0.0 are 0
Terahir kita konfigurasikan redistribution di PE
R7(config)#router bgp 10 R7(config-router)#address-family ipv4 vrf C R7(config-router-af)#redistribute eigrp 400 R7(config-router-af)#exit R7(config-router)#address-family ipv4 vrf B R7(config-router-af)#redistribute ospf 300 R7(config-router-af)#exit R7(config-router)#router eigrp 400 R7(config-router)#address-family ipv4 vrf C autonomous-system 400 R7(config-router-af)#redistribute bgp 10 metric 1 1 1 1 1 R7(config-router-af)#exit R7(config-router)#exit R7(config)#router ospf 300 vrf B R7(config-router)#redistribute bgp 10 subnets R7(config-router)#exit
Oke.. konfigurasi di PE4 sudah selesai...

lanjut kita konfigurasi di PE5 yaa.. ahirnya ini terahir juga..hehe udah lumayan capek nih.. hehe
R2(config)#ip vrf A R2(config-vrf)#rd 10:200 R2(config-vrf)#route-target export 10:200 R2(config-vrf)#route-target import 10:200 R2(config-vrf)#route-target import 10:100 R2(config-vrf)#exit R2(config)#ip vrf B R2(config-vrf)#rd 10:300 R2(config-vrf)#route-target export 10:300 R2(config-vrf)#route-target import 10:300 R2(config-vrf)#route-target import 10:100 R2(config-vrf)#exit R2(config)#ip vrf D R2(config-vrf)#rd 10:500 R2(config-vrf)#route-target export 10:500 R2(config-vrf)#route-target import 10:500 R2(config-vrf)#route-target import 10:100 R2(config-vrf)#exit R2(config)#int e0/3 R2(config-if)#no sh R2(config-if)#ip vrf forwarding A R2(config-if)#ip add 192.192.192.2 255.255.255.0 R2(config-if)#int e0/2 R2(config-if)#no sh R2(config-if)#ip vrf forwarding B R2(config-if)#ip add 182.182.182.2 255.255.255.0 R2(config-if)#int e0/1 R2(config-if)#no sh R2(config-if)#ip vrf forwarding D R2(config-if)#ip add 172.172.172.2 255.255.255.0 R2(config-if)#exit
R2(config)#router ospf 200 vrf A R2(config-router)#router-id 200.200.200.200 R2(config-router)#net 192.192.192.2 0.0.0.0 are 0 R2(config-router)#exit R2(config)#router ospf 300 vrf B R2(config-router)#router-id 30.30.30.30 R2(config-router)#net 182.182.182.2 0.0.0.0 are 0 R2(config-router)#exit R2(config)#router eigrp 500 R2(config-router)#address-family ipv4 vrf D autonomous-system 500 R2(config-router-af)#network 172.172.172.2 0.0.0.0 R2(config-router-af)#exit
Oke.. lanjut kita konfigurasikan di bagian CE
R19(config)#int e0/0 R19(config-if)#no sh R19(config-if)#ip add 192.192.192.19 255.255.255.0 R19(config-if)#int lo0 R19(config-if)#ip add 19.19.19.19 255.255.255.255 R19(config-if)#router ospf 200 R19(config-router)#network 192.192.192.19 0.0.0.0 are 0 R19(config-router)#net 19.19.19.19 0.0.0.0 are 0
R18(config)#int e0/0 R18(config-if)#no sh R18(config-if)#ip add 182.182.182.18 255.255.255.0 R18(config-if)#int lo0 R18(config-if)#ip add 18.18.18.18 255.255.255.255 R18(config-if)#router ospf 300 R18(config-router)#network 182.182.182.18 0.0.0.0 are 0 R18(config-router)#net 18.18.18.18 0.0.0.0 are 0
R17(config)#int e0/0 R17(config-if)#no sh R17(config-if)#ip add 172.172.172.17 255.255.255.0 R17(config-if)#int lo0 R17(config-if)#ip add 17.17.17.17 255.255.255.255 R17(config-if)#router ei 500 R17(config-router)#net 172.172.172.17 0.0.0.0 R17(config-router)#net 17.17.17.17 0.0.0.0
Oke.. terahir kita lakukan redistribution di router PE
R2(config)#router bgp 10 R2(config-router)#address-family ipv4 vrf A R2(config-router-af)#redistribute ospf 200 R2(config-router-af)#exit R2(config-router)#address-family ipv4 vrf B R2(config-router-af)#redistribute ospf 300 R2(config-router-af)#exit R2(config-router)#address-family ipv4 vrf D R2(config-router-af)#redistribute eigrp 500 R2(config-router-af)#exit R2(config-router)#router ospf 200 vrf A R2(config-router)#redistribute bgp 10 subnets R2(config-router)#exit R2(config)#router ospf 300 vrf B R2(config-router)#redistribute bgp 10 subnets R2(config-router)#exit R2(config)#router eigrp 500 R2(config-router)#address-family ipv4 vrf D autonomous-system 500 R2(config-router-af)#redistribute bgp 10 metric 1 1 1 1 1 R2(config-router-af)#exit
Oke.. sepertinya sudah selesai deh semuanya.. hehee

sebenarnya pengen nya sih postingan ini postingan terahir dari seri superlab L3VPN Cisco.. tapi karena sudah terlalu panjang.. kita sudahi dulu sampai disini yaa.. kita akan lanjut di lab berikutnya untuk pengujian... oke sampai jumpa lagi yaaa

Like the Post? Do share with your Friends.

Tidak ada komentar:

Posting Komentar

Komentar

FeedBack

Jika Anda merasa terbantu dengan artikel dari Coretan Bocah IT, silahkan berlangganan GRATIS via email. Dengan begitu, Anda akan mendapat kiriman artikel setiap ada artikel baru yang terbit di Coretan Bocah IT

Masukkan Email :

IconIconIconFollow Me on Pinterest