Rabu, 07 Desember 2011

Day 5 - MPLS Backbone (Basic)

Hari kelima, setelah belajar BGP berlanjut ke MPLS.
Dimana pada network MPLS, routing IGP dan EGP diaplikasikan.
IGP yang biasa digunakan adalah routing OSPF sedangkan EGP yang pasti digunakan adalah BGP dengan tambahan MPBGP (Multi Protocol BGP).
MPLS pada dasarnya terdiri dari 3 jenis router.
1. Router P (provider)
    Terdapat dalam MPLS domain, router P terhubung dengan router lain di service provider.
    Dalam jaringan MPLS yang kecil, terkadang tidak terdapat router P agar lebih hemat biaya.
2. Router PE (provider edge)
    Terhubung langsung dengan router pelanggan sekaligus dengan router service provider
    Menjembatani network berbasis IP dengan network berbasis MPLS
    Memberikan pelabelan pada packet IP yang masuk kedalam MPLS domain
    Melepas label pada paket yang akan keluar dari MPLS domain
    Router PE ini sifatnya harus ada pada setiap network MPLS.
3. Router CE (customer edge)
    Merupakan router yang terdapat pada sisi pelanggan
    Pada router CE tidak terdapat konfigurasi MPLS apapun
    Konfigurasi routing bisa static maupuna dynamic (RIP / OSPF /EIGRP).

Lab 5 - MPLS Backbone (Basic)

Pada lab kali ini kita akan membahas bagaimana langkah untuk membangun sebuah network MPLS domain.
Karena pada sebuah MPLS domain hanya terdapat router P dan PE, maka topologi MPLS yang sederhana dapat berbentuk sbb :

 
Adapun tahapan konfigurasi adalah sbb :
1. Konfigurasi IP address pada semua interface router
2. Mengaktifkan routing IGP (OSPF)
3. Mengaktifkan routing BGP
4. Mengaktifkan MPLS

Mari kita bahas satu persatu :
1. Konfigurasi IP address pada masing - masing router :

Router PE-1 :
interface Loopback0
 ip address 10.10.10.2 255.255.255.255
!
interface FastEthernet0/0
 description ### Link to P Router ###
 ip address 12.12.12.2 255.255.255.0

P-Router :
interface Loopback0
 ip address 10.10.10.1 255.255.255.255
!
interface FastEthernet0/0
 description ### Link to PE-1### 
 ip address 12.12.12.1 255.255.255.0
!
interface FastEthernet0/1
 description ### Link to PE-1### 
 ip address 13.13.13.1 255.255.255.0
Router PE-2 :
interface Loopback0
 ip address 10.10.10.3 255.255.255.255
!
interface FastEthernet0/0
 description ### Link to P Router ###
 ip address 13.13.13.3 255.255.255.0

2. Mengaktifkan routing IGP (OSPF) :

Router PE-1 :
router ospf 1
 log-adjacency-changes
 network 10.10.10.2 0.0.0.0 area 0
 network 12.12.12.2 0.0.0.0 area 0

P-Router :
router ospf 1
 log-adjacency-changes
 network 10.10.10.1 0.0.0.0 area 0
 network 12.12.12.1 0.0.0.0 area 0
 network 13.13.13.1 0.0.0.0 area 0

Router PE-2 :
router ospf 1
 log-adjacency-changes
 network 10.10.10.3 0.0.0.0 area 0
 network 13.13.13.3 0.0.0.0 area 0

Setelah itu kita coba cek routing table dari masing - masing router.
PE-1#sh ip route
Gateway of last resort is not set
     10.0.0.0/32 is subnetted, 3 subnets
C       10.10.10.2 is directly connected, Loopback0
O       10.10.10.3 [110/21] via 12.12.12.1, 00:47:31, FastEthernet0/0
O       10.10.10.1 [110/11] via 12.12.12.1, 00:47:41, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/0
     13.0.0.0/24 is subnetted, 1 subnets
O       13.13.13.0 [110/20] via 12.12.12.1, 00:47:41, FastEthernet0/0
P-Router#sh ip route
Gateway of last resort is not set
     10.0.0.0/32 is subnetted, 3 subnets
O       10.10.10.2 [110/11] via 12.12.12.2, 00:51:55, FastEthernet0/0
O       10.10.10.3 [110/11] via 13.13.13.3, 00:51:55, FastEthernet0/1
C       10.10.10.1 is directly connected, Loopback0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, FastEthernet0/0
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, FastEthernet0/1

R3#sh ip route
Gateway of last resort is not set
     10.0.0.0/32 is subnetted, 3 subnets
O       10.10.10.2 [110/21] via 13.13.13.1, 00:52:28, FastEthernet0/0
C       10.10.10.3 is directly connected, Loopback0
O       10.10.10.1 [110/11] via 13.13.13.1, 00:52:38, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
O       12.12.12.0 [110/20] via 13.13.13.1, 00:52:38, FastEthernet0/0
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, FastEthernet0/0
3. Mengaktifkan BGP
  BGP perlu dikonfigurasikan karena kita nanti membutuhkan MP-BGP, untuk melewatkan routing vpn dan vrf. Konfigurasi hanya dilakukand didalam router PE saja.
 
PE-1 :
router bgp 65500
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.10.10.3 remote-as 65500
 neighbor 10.10.10.3 update-source Loopback0
 no auto-summary
 
PE-2 :
router bgp 65500
 no synchronization
 bgp log-neighbor-changes
 neighbor 10.10.10.2 remote-as 65500
 neighbor 10.10.10.2 update-source Loopback0
 no auto-summary
 
Kemudian dicek menggunakan command show ip bgp summary
PE-1#sh ip bgp sum
BGP router identifier 10.10.10.2, local AS number 65500
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.10.3      4 65500       4       4        1    0    0 00:01:57        0
 
R3#sh ip bgp sum
BGP router identifier 10.10.10.3, local AS number 65500
BGP table version is 1, main routing table version 1

Neighbor        V    AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
10.10.10.2      4 65500       5       5        1    0    0 00:02:31        0

4. Mengaktifkan MPLS
MPLS dikonfigurasikan pada semua router baik P dan PE router.
 
Router PE-1
mpls ip
interface fa0/0
  mpls ip

P-Router
mpls ip
interface fa0/0
  mpls ip
interface fa0/1
  mpls ip
 
Router PE-2 
mpls ip
interface fa0/1
  mpls ip

Setelah diaktifkan, kita cek MPLS nya sbb :

PE-1#sh mpls for
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
tag    tag or VC   or Tunnel Id      switched   interface
16     17          10.10.10.3/32     0          Fa0/0      12.12.12.1
17     Pop tag     10.10.10.1/32     0          Fa0/0      12.12.12.1
18     Pop tag     13.13.13.0/24     0          Fa0/0      12.12.12.1

P-Router#sh mpls forwarding-table
Local  Outgoing    Prefix            Bytes tag  Outgoing   Next Hop
tag    tag or VC   or Tunnel Id      switched   interface
16     Pop tag     10.10.10.2/32     200        Fa0/0      12.12.12.2
17     Pop tag     10.10.10.3/32     254        Fa0/1      13.13.13.3


PE-1#sh mpls ldp nei
    Peer LDP Ident: 10.10.10.1:0; Local LDP Ident 10.10.10.2:0
        TCP connection: 10.10.10.1.646 - 10.10.10.2.53799
        State: Oper; Msgs sent/rcvd: 58/59; Downstream
        Up time: 00:44:39
        LDP discovery sources:
          FastEthernet0/0, Src IP addr: 12.12.12.1
        Addresses bound to peer LDP Ident:
          12.12.12.1      13.13.13.1      10.10.10.1

R3#sh mpls ldp nei
    Peer LDP Ident: 10.10.10.1:0; Local LDP Ident 10.10.10.3:0
        TCP connection: 10.10.10.1.646 - 10.10.10.3.21389
        State: Oper; Msgs sent/rcvd: 58/59; Downstream
        Up time: 00:44:36
        LDP discovery sources:
          FastEthernet0/0, Src IP addr: 13.13.13.1
        Addresses bound to peer LDP Ident:
          12.12.12.1      13.13.13.1      10.10.10.1


Dari hasil diatas menunjukkan bahwa untuk mpls nya sudah berjalan, yaitu dengan adanya peer LDP router dalam domain MPLS.

Tidak ada komentar:

Posting Komentar