Cisco | MPLS - L3VPN
Step-1 : (Konfigurasi IP address di semua router P1, P2, P3, PE1, PE2 dan PE3)
host P1
int lo0
ip add 1.1.1.1 255.255.255.255
exi
int gi3
no ip add
ip add 14.14.14.1 255.255.255.0
exi
no ip add
ip add 13.13.13.1 255.255.255.0
exi
int gi2
no shu
no ip add
ip add 15.15.15.1 255.255.255.0
exi
host P2
int lo0
ip add 2.2.2.2 255.255.255.255
exi
int gi2
no shu
no ip add
ip add 17.17.17.1 255.255.255.0
exi
int gi1
no shu
no ip add
ip add 15.15.15.2 255.255.255.0
exi
int gi3
no shu
ip add 16.16.16.2 255.255.255.0
exi
do wr
host P3
int lo0
ip add 3.3.3.3 255.255.255.255
exi
int gi1
no shu
ip add 13.13.13.2 255.255.255.0
exi
int gi2
no shu
ip add 16.16.16.1 255.255.255.0
exi
int gi3
no shu
ip add 12.12.12.1 255.255.255.0
exi
Konfigurasi Router PE1
host PE1
int lo0
ip add 11.11.11.11 255.255.255.255
exi
int gi1
no shu
ip add 14.14.14.2 255.255.255.0
exi
int gi2
no shu
ip add 172.16.10.1 255.255.255.0
exi
host PE2
int lo0
ip add 22.22.22.22 255.255.255.255
exi
int gi1
no shu
ip add 17.17.17.2 255.255.255.0
exi
int gi2
no shu
ip add 172.16.20.1 255.255.255.0
exi
host PE3
int lo0
ip add 33.33.33.33 255.255.255.255
exi
int gi1
no shu
ip add 12.12.12.2 255.255.255.0
exi
int gi2
no shu
ip add 172.16.30.1 255.255.255.0
exi
Step 2 : (Advertise network dengan routing OSPF). Selanjutnya kita advertise semua network dengan routing protocol OSPF pada seluruh router ISP (P1,P2,P3, PE1, PE2, PE3 )
Router P1
router ospf 1
net 13.13.13.1 0.0.0.0 are 0
net 14.14.14.1 0.0.0.0 are 0
net 15.15.15.1 0.0.0.0 are 0
net 1.1.1.1 0.0.0.0 are 0
exi
Router P2
router ospf 1
net 17.17.17.1 0.0.0.0 are 0
net 16.16.16.2 0.0.0.0 are 0
net 15.15.15.2 0.0.0.0 are 0
net 2.2.2.2 0.0.0.0 are 0
Router P3
router ospf 1
net 13.13.13.2 0.0.0.0 are 0
net 16.16.16.1 0.0.0.0 are 0
net 12.12.12.1 0.0.0.0 are 0
net 3.3.3.3 0.0.0.0 are 0
exi
Router PE1
router ospf 1
net 14.14.14.2 0.0.0.0 are 0
net 11.11.11.11 0.0.0.0 are 0
exi
router ospf 1
net 17.17.17.2 0.0.0.0 are 0
net 22.22.22.22 0.0.0.0 are 0
exi
Router PE3
router ospf 1
net 12.12.12.2 0.0.0.0 are 0
net 33.33.33.33 0.0.0.0 are 0
exi
Verifikasi
#show ip route ospf
Step 3 : (Konfigurasi MPLS di router pada ISP area yaitu: (P1,P2,P3, PE1, PE2 dan PE3)
Langkah selanjutnya adalah kita masuka konfigurasi MPLS, masih router ISP area.
Konfigurasi MPLS di router P1,P2 dan P3
Router P1
mpls label protocol ldp
mpls ldp router-id lo0 force
int range gi1 - 3
mpls ip
exi
--
Router P2
mpls label protocol ldp
mpls ldp router-id lo0 force
int range gi1 - 3
mpls ip
exi
---
Router P3
mpls label protocol ldp
mpls ldp router-id lo0 force
int range gi1 - 3
mpls ip
exit
Router PE1
mpls label protocol ldp
mpls ldp router-id lo0 force
int gi1
mpls ip
exi
--
Router PE2
mpls label protocol ldp
mpls ldp router-id lo0 force
int gi1
mpls ip
exi
-----------
Router PE3
mpls label protocol ldp
mpls ldp router-id lo0 force
int gi1
mpls ip
exi
VERIFIKASI:
#sh mpls ldp neighbor
Step 4 : (Konfigurasi iBGP di router PE pada ISP area)
Router PE1
router bgp 65010
neighbor PE peer-group
nei PE remote-as 65010
neighbor PE update-source lo0
nei 22.22.22.22 peer-group PE
nei 33.33.33.33 peer-group PE
address-family vpnv4
neighbor 22.22.22.22 activate
neighbor 33.33.33.33 activate
exit
Router PE2
router bgp 65010
neighbor PE peer-group
nei PE remote-as 65010
neighbor PE update-source lo0
nei 11.11.11.11 peer-group PE
nei 33.33.33.33 peer-group PE
address-family vpnv4
neighbor 11.11.11.11 activate
neighbor 33.33.33.33 activate
exit
Router PE3
router bgp 65010
neighbor PE peer-group
nei PE remote-as 65010
neighbor PE update-source lo0
nei 11.11.11.11 peer-group PE
nei 22.22.22.22 peer-group PE
address-family vpnv4
neighbor 11.11.11.11 activate
neighbor 22.22.22.22 activate
exit
Verifkasi di router (PE1, PE2 dan PE3)
#sh ip bgp all summary
Step 5 :(Tahap Terahir, konfigurasi router PE&CE)
Sebelum masuk konfigurasi trahir ini,, perlu diketahui untuk RD nya nanti akan menggunakan list berikut. Sebelum masuk konfigurasi trahir ini,, perlu diketahui untuk RD nya nanti akan menggunakan list berikut:
Kantor
A -> 10:200
Adapun untuk routing protocol, kita akan menggunakan sesuai list berikut:
Kantor A -> OSPF
Router PE1
ip vrf A
rd 10:200
route-target export 10:200
route-target import 10:200
exi
int gi2
ip vrf forwarding A
no sh
ip add 172.16.10.1 255.255.255.0
exi
router ospf 200 vrf A
router-id 200.200.200.200
net 172.16.10.1 0.0.0.0 are 0
exit
Router PE2
ip vrf A
rd 10:200
route-target export 10:200
route-target import 10:200
exi
int gi2
ip vrf forwarding A
no sh
ip add 172.16.20.1 255.255.255.0
exi
router ospf 200 vrf A
router-id 200.200.200.200
net 172.16.20.1 0.0.0.0 are 0
exit
Router PE3
ip vrf A
rd 10:200
route-target export 10:200
route-target import 10:200
exi
int gi2
ip vrf forwarding A
no sh
ip add 172.16.30.1 255.255.255.0
exi
router ospf 200 vrf A
router-id 200.200.200.200
net 172.16.30.1 0.0.0.0 are 0
exi
Verifikasi: di router (PE1, PE2, PE3)
#sh ip route vrf A | b Gateway
#sh mpls forwarding-table labels 16 detail
Langkah terahir adalah redistribute OSPF ke BGP dan
BGP ke OSPF didisisi router PE1, PE2 dan PE3 .
Router PE1
router bgp 65010
address-family ipv4 vrf A
redistribute ospf 200
exi
router ospf 200 vrf A
redistribute bgp 65010 subnets
exi
Router PE2
router bgp 65010
address-family ipv4 vrf A
redistribute ospf 200
exi
router ospf 200 vrf A
redistribute bgp 65010 subnets
exi
Router
PE3
router bgp 65010
address-family ipv4 vrf A
redistribute ospf 200
exi
router ospf 200 vrf A
redistribute bgp 65010 subnets
exi
Step 7: (Langkah paling ahir adalah konfigurasi semua router CE1, CE2 dan CE3)
Router
CE1
host CE1
int gi1
no sh
ip add 172.16.10.2 255.255.255.0
int lo0
ip add 10.10.10.10 255.255.255.255
exi
router ospf 200
net 172.16.10.2 0.0.0.0 are 0
net 10.10.10.10 0.0.0.0 are 0
exi
Router CE2
host CE2
int gi1
no sh
ip add 172.16.20.2 255.255.255.0
int lo0
ip add 20.20.20.20 255.255.255.255
exi
router ospf 200
net 172.16.20.2 0.0.0.0 are 0
net 20.20.20.20 0.0.0.0 are 0
exi
Router CE3
host CE3
int gi1
no sh
ip add 172.16.30.2 255.255.255.0
int lo0
ip add 30.30.30.30 255.255.255.255
exi
router ospf 200
net 172.16.30.2 0.0.0.0 are 0
net 30.30.30.30 0.0.0.0 are 0
exi
Selesai...dan Verifkasi..
Sukses...
1 komentar untuk "Cisco | MPLS - L3VPN"