Kamis, 10 Desember 2020

MPLS Backbone

 MPLS Backbone





MPLS terdiri dari 3 jenis router yaitu :


1. Router P (Provider)

  • Terdapat dalam MPLS Domain, P router terhubung dengan router-router lain yang dimiliki service provider
  • Pada jaringan MPLS yang tidak terlalu besar terkadang tidak terdapat P router didalamnya untuk menghemat biaya.

2. Router PE (Provider Edge)

  • Merupakan router yang terhubung langsung dengan router customer dan juga sekaligus dengan router service provider
  • Menjembatani antara network berbasis IP dengan network berbasis MPLS
  • Memberikan pelabelan pada paket IP yang masuk ke dalam MPLS Domain
  • Melepas pelabelan pada paket yang akan keluar dari MPLS Domain
  • PE Router ini sifatnya harus ada pada setiap jaringan MPLS

3. Router CE (Customer Edge)

  • Merupakan router yang terdapat di sisi customer
  • Pada router CE ini tidak terdapat konfigurasi MPLS apapun
  • Konfigurasi routing biasa, bisa static atau dynamic seperti OSPF / EIGRP

Konfigurasi :

R1
R1#conf t
R1(config)#
R1(config)#ho PE-1
PE-1(config)#
PE-1(config)#int lo 0
PE-1(config-if)#ip add 10.10.10.1 255.255.255.255
PE-1(config-if)#
PE-1(config-if)#exit
PE-1(config)#
PE-1(config)#int g1/0
PE-1(config-if)#ip add 192.168.10.1 255.255.255.252
PE-1(config-if)#no sh
PE-1(config-if)#exit
PE-1(config)#


R2
R2(config)#ho P
P(config)#int lo 0
P(config-if)#ip add 10.10.10.10 255.255.255.255
P(config-if)#
P(config-if)#int g1/0
P(config-if)#ip add 192.168.10.2 255.255.255.252
P(config-if)#no sh
P(config-if)#exit
P(config)#
P(config)#
P(config)#int g2/0
P(config-if)#ip add 192.168.20.1 255.255.255.252
P(config-if)#no sh
P(config-if)#
P(config-if)#exit
P(config)#

Setelah itu coba kita test ping terlebih dahulu 

R1
PE1(config)#do ping 192.168.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 3/15/28 ms


R2
P(config)#do ping 192.168.20.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 18/22/27 ms


R3
PE-2#ping 192.168.20.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.20.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/31 ms


Ok sudah bisa, setelah itu kita akan membuat dynamic routing ospf 

R1
PE1(config)#rou
PE1(config)#router ospf 1
PE1(config-router)#net 192.168.10.1 0.0.0.0 area 0
PE1(config-router)#net 10.10.10.1 0.0.0.0 area 0


R2
P(config)#router ospf 1
P(config-router)#net 192.168.10.2 0.0.0.0 area 0
P(config-router)#net 192.168.20.1 0.0.0.0 area 0
P(config-router)#net 10.10.10.10 0.0.0.0 area 0
P(config-router)#exit


R3
PE2(config)#router ospf 1
PE2(config-router)#net 192.168.20.2 0.0.0.0 area 0
PE2(config-router)#net 10.10.10.2 0.0.0.0 area 0

Setelah itu kita cek nih terlebih dahulu kemudian kita ping 


R1
PE1(config-router)#do sh ip route
 192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, GigabitEthernet1/0
 192.168.20.0/30 is subnetted, 1 subnets
O 192.168.20.0 [110/2] via 192.168.10.2, 00:23:14, GigabitEthernet1/0
 10.0.0.0/32 is subnetted, 3 subnets
O 10.10.10.10 [110/2] via 192.168.10.2, 00:23:14, GigabitEthernet1/0
O 10.10.10.2 [110/3] via 192.168.10.2, 00:09:00, GigabitEthernet1/0
C 10.10.10.1 is directly connected, Loopback0


R2
P(config)#do sh ip rou
 192.168.10.0/30 is subnetted, 1 subnets
C 192.168.10.0 is directly connected, GigabitEthernet1/0
 192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, GigabitEthernet2/0
 10.0.0.0/32 is subnetted, 3 subnets
C 10.10.10.10 is directly connected, Loopback0
O 10.10.10.2 [110/2] via 192.168.20.2, 00:06:20, GigabitEthernet2/0
O 10.10.10.1 [110/2] via 192.168.10.1, 00:23:11, GigabitEthernet1/0


R3
PE2#show ip route
 192.168.10.0/30 is subnetted, 1 subnets
O 192.168.10.0 [110/2] via 192.168.20.1, 00:17:40, GigabitEthernet1/0
 192.168.20.0/30 is subnetted, 1 subnets
C 192.168.20.0 is directly connected, GigabitEthernet1/0
 10.0.0.0/32 is subnetted, 3 subnets
O 10.10.10.10 [110/2] via 192.168.20.1, 00:17:40, GigabitEthernet1/0
C 10.10.10.2 is directly connected, Loopback0
O 10.10.10.1 [110/3] via 192.168.20.1, 00:17:40, GigabitEthernet1/0


R1
PE1(config)#do ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/11/20 ms


R2
P(config)#do ping 10.10.10.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/26/31 ms


R3
PE-2#ping 10.10.10.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-t

Sekarang kita buat konfigurasi MPLS nya 

R1
PE1(config)#mpls ip
PE1(config)#int g1/0
PE1(config-if)#mpls ip
PE1(config-if)#exit


R2
P(config)#mpls ip
P(config)#int g1/0
P(config-if)#mpls ip
P(config-if)#int g2/0
P(config-if)#mpls ip


R3
PE2(config)#mpls ip
PE2(config)#int g1/0
PE2(config-if)#mpls ip

Sekarang kita coba lihat MPLS nya apakah sudah aktif 

R1
PE1(config)#do sh mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 17 10.10.10.2/32 0 Gi1/0 192.168.10.2
17 Pop Label 10.10.10.10/32 0 Gi1/0 192.168.10.2
18 Pop Label 192.168.20.0/30 0 Gi1/0 192.168.10.2

R2
P(config)#do sh mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 Pop Label 10.10.10.1/32 762 Gi1/0 192.168.10.1
17 Pop Label 10.10.10.2/32 1016 Gi2/0 192.168.20.2

R3
PE2(config)#do sh mpls forwarding
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or VC or Tunnel Id Switched interface
16 16 10.10.10.1/32 0 Gi1/0 192.168.20.1
17 Pop Label 10.10.10.10/32 0 Gi1/0 192.168.20.1
18 Pop Label 192.168.10.0/30 0 Gi1/0 192.168.20.1

Tidak ada komentar:

Posting Komentar

LAB 1 FORTIGATE BASIC KONFIG

BASIC KONFIG FORTIGATE     Assalamualaikum Warahmatullahi Wabarakaatuh.....       Yaa...  jadi kali ini saya akan menjelaskan tutorial basic...