Mutual Redistribution

Senin, 10 Desember 2012

Mutual Redistribution


Lab 1

---Tujuan---
mempelajari konfigurasi untuk saling redistribute antara satu routing protokol dengan protokol yang lain.

---Topologi Lab---






--- Metode Lab---
  • Konfigurasikan beberapa routing pada topologi diatas
  • Gunakan Pengalamatan standar IDN
  • Lakukan mutual redistribution pada R2, R3, dan R4
---Verifikasi Lab---
  • Pastikan semua ip masing-masing router bisa diping oleh semua router

===
R1
===
[command_start]
!
interface Serial0/0
 ip address 12.12.12.1 255.255.255.0
 clock rate 2000000
end
!
router rip
 ver 2
 network 12.0.0.0
 no au
!
[command_end]

===
R2
===
[command_start]
!
interface Serial0/0
 ip address 12.12.12.2 255.255.255.0
 clock rate 2000000
end
!
interface FastEthernet0/0
 ip address 23.23.23.2 255.255.255.0
 duplex auto
 speed auto
end
!
router rip
 version 2
 redistribute ospf 1 metric 1
 network 12.0.0.0
 no au
!
router ospf 1
 log-adjacency-changes
 redistribute rip subnets
 network 23.23.23.2 0.0.0.0 area 0
!
[command_end]

===
R3
===
[command_start]
!
interface FastEthernet0/0
 ip address 23.23.23.3 255.255.255.0
 duplex auto
 speed auto
end
!
interface FastEthernet0/1
 ip address 34.34.34.3 255.255.255.0
 duplex auto
 speed auto
end
 !
 router ospf 1
  network 23.23.23.3 0.0.0.0 area 0
  redistribute eigrp 1 subnets
!
router eigrp 1
 redistribute ospf 1 metric 1 1 1 1 1
 network 34.34.34.3 0.0.0.0
 no auto-summary
!
[command_end]

===
R4
===
[command_start]
!
interface FastEthernet0/0
 ip address 34.34.34.4 255.255.255.0
 duplex auto
 speed auto
end
!
interface Serial0/0
 ip address 45.45.45.4 255.255.255.0
 clock rate 2000000
end
!
router eigrp 1
 net 34.34.34.4 0.0.0.0
 redistribute rip metric 1 1 1 1 1
!
router rip
 version 2
 redistribute eigrp 1 metric 1
 network 45.0.0.0
 no auto-summary
!
[command_end]

===
R5
===
[command_start]
!
int serial 0/0
 ip add 45.45.45.5 255.255.255.0
 no sh
!
router rip
 net 45.0.0.0
 ver 2
 no au
!
[command_end]

======
Test Plan
======

Semua router dapat di Ping.



Lab 2

--- Tujuan Lab---
  • Mempelajari akibat dari melakukan mutual redistribution pada 2 titik redistribution yang berbeda, yakni terjadinya routing loop
  • Mempelajari bagaimana cara untuk mencegah terjadi routing loop, yakni dengan merubah nilai administrative distance nya.
--- Topologi Lab---

















---Metode Lab---
  • Konfigurasikan OSPF dan RIP untuk topologi diatas
  • Lakukan mutual redistribution pada R2 dan R3
  • Pastikan terjadi loop dari R1 menuju R4
  • Konfigurasikan distance agar tidak terjadi loop
---Verifikasi Lab---
  • Periksa apakah terjadi routing loop sebelum dan sesudah nilai distance dikonfigurasikan, satu titik redistribusi tidak memiliki resiko apapun, namun dua titik redistribusi akan rentan terjadi adanya routing loop.
===
R1
===
[command_start]
!
int se0/0
 ip add 13.13.13.1 255.255.255.0
 no sh
!
int se0/1
 ip add 12.12.12.1 255.255.255.0
 no sh
!
int lo0
 ip add 1.1.1.1 255.255.255.255
!
router ospf 1
 net 13.13.13.1 0.0.0.0 area 0
 net 12.12.12.1 0.0.0.0 area 0
 net 1.1.1.1 0.0.0.0 area 0
!
[command_end]

===
R2
===
[command_start]
!
int se0/0
 ip add 12.12.12.2 255.255.255.0
 no sh
!
int fa0/0
 ip add 10.10.10.2  255.255.255.0
 no sh
!
int lo0
 ip add 2.2.2.2 255.255.255.255
!
router ospf 1
 net 2.2.2.2 0.0.0.0 area 0
 net 12.12.12.2 0.0.0.0 area 0
 redistribute rip subnets
!
router rip
 ver 2
 redistribute ospf 1 metric 1
 net 10.0.0.0
 no au
!
[command_end]

===
R3
===
[configuration_start]
!
int se0/0
 ip add 13.13.13.3 255.255.255.0
 no sh
!
int fa0/0
 ip add 10.10.10.3 255.255.255.0
 no sh
!
int lo0
 ip add 3.3.3.3 255.255.255.255
!
router ospf 1
 redistribute rip subnets
 net 3.3.3.3 0.0.0.0 area 0
 net 13.13.13.3 0.0.0.0 area 0
!
router rip
 ver 2
 redistribute ospf 1 metric 1
 net 10.0.0.0
 no au
!

===
R4
===
[command_start]
!
int fa0/0
 ip add 10.10.10.4 255.255.255.0
 no sh
!
int lo0
 ip add 4.4.4.4 255.255.255.255
!
router rip
 ver 2
 net 10.0.0.0
 net 4.0.0.0
 no au
!
[command_end]

=================
Cek Routing Tabel di R1
=================
Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
C       1.1.1.1 is directly connected, Loopback0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/65] via 12.12.12.2, 00:16:47, Serial0/1
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/65] via 13.13.13.3, 00:13:00, Serial0/0
     4.0.0.0/32 is subnetted, 1 subnets
O E2    4.4.4.4 [110/20] via 12.12.12.2, 00:00:46, Serial0/1
     10.0.0.0/24 is subnetted, 1 subnets
O E2    10.10.10.0 [110/20] via 13.13.13.3, 00:00:07, Serial0/0
                   [110/20] via 12.12.12.2, 00:11:56, Serial0/1
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, Serial0/1
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, Serial0/0


=================
Cek Routing Tabel di R2
=================

Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 12.12.12.1, 00:18:17, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/129] via 12.12.12.1, 00:14:21, Serial0/0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/1] via 10.10.10.4, 00:00:26, FastEthernet0/0
                [120/1] via 10.10.10.3, 00:00:11, FastEthernet0/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
O       13.13.13.0 [110/128] via 12.12.12.1, 00:15:32, Serial0/0

=================
Cek Routing Tabel di R3
=================
Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 13.13.13.1, 00:15:40, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/129] via 13.13.13.1, 00:15:40, Serial0/0
     3.0.0.0/32 is subnetted, 1 subnets
C       3.3.3.3 is directly connected, Loopback0
     4.0.0.0/32 is subnetted, 1 subnets
O E2    4.4.4.4 [110/20] via 13.13.13.1, 00:03:22, Serial0/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
O       12.12.12.0 [110/128] via 13.13.13.1, 00:15:42, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
C       13.13.13.0 is directly connected, Serial0/0

========================
Cek Routing Tabel pada Router R4
========================
Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
R       1.1.1.1 [120/1] via 10.10.10.3, 00:00:09, FastEthernet0/0
                [120/1] via 10.10.10.2, 00:00:18, FastEthernet0/0
     2.0.0.0/32 is subnetted, 1 subnets
R       2.2.2.2 [120/1] via 10.10.10.3, 00:00:09, FastEthernet0/0
                [120/1] via 10.10.10.2, 00:00:18, FastEthernet0/0
     3.0.0.0/32 is subnetted, 1 subnets
R       3.3.3.3 [120/1] via 10.10.10.3, 00:00:09, FastEthernet0/0
                [120/1] via 10.10.10.2, 00:00:18, FastEthernet0/0
     4.0.0.0/32 is subnetted, 1 subnets
C       4.4.4.4 is directly connected, Loopback0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
R       12.12.12.0 [120/1] via 10.10.10.3, 00:00:12, FastEthernet0/0
                   [120/1] via 10.10.10.2, 00:00:21, FastEthernet0/0
     13.0.0.0/24 is subnetted, 1 subnets
R       13.13.13.0 [120/1] via 10.10.10.3, 00:00:12, FastEthernet0/0
                   [120/1] via 10.10.10.2, 00:00:21, FastEthernet0/0

untuk pengetesan, shutdown interface pada loopback 0 pada R4 terlebih dahulu, kemudian kalau dicek ternyata masih terdapat dalam routing tabel masing-masing router meski sudah di shutdown.

-----------------------
R1, traceroute 4.4.4.4
-----------------------
Type escape sequence to abort.
Tracing the route to 4.4.4.4

  1 12.12.12.2 52 msec 4 msec 8 msec
  2 10.10.10.3 96 msec 80 msec 60 msec
  3 13.13.13.1 156 msec 32 msec 60 msec
  4 12.12.12.2 72 msec 100 msec 108 msec
  5 10.10.10.3 124 msec 96 msec 124 msec
  6 13.13.13.1 80 msec 124 msec 108 msec
  7 12.12.12.2 124 msec 172 msec 92 msec
  8 10.10.10.3 128 msec 248 msec 312 msec
  9 13.13.13.1 152 msec 264 msec 128 msec
 10 12.12.12.2 264 msec 232 msec 204 msec
 11 10.10.10.3 124 msec 252 msec 280 msec
 12 13.13.13.1 248 msec 168 msec 236 msec
 13 12.12.12.2 228 msec 340 msec 264 msec
 14 10.10.10.3 268 msec 280 msec 312 msec
 15 13.13.13.1 280 msec 232 msec 280 msec
 16 12.12.12.2 352 msec 268 msec 328 msec
 17 10.10.10.3 372 msec 312 msec 236 msec
 18 13.13.13.1 496 msec 360 msec 412 msec
 19 12.12.12.2 424 msec 468 msec 432 msec
 20 10.10.10.3 344 msec 372 msec 388 msec
 21 13.13.13.1 364 msec 432 msec 328 msec
 22 12.12.12.2 416 msec 436 msec 448 msec
 23 10.10.10.3 468 msec 548 msec 576 msec
 24 13.13.13.1 500 msec 356 msec 496 msec
 25 12.12.12.2 448 msec 512 msec 436 msec
 26 10.10.10.3 612 msec 524 msec 436 msec
 27 13.13.13.1 476 msec 440 msec 700 msec
 28 12.12.12.2 500 msec 560 msec 532 msec
 29 10.10.10.3 468 msec 496 msec 516 msec
 30 13.13.13.1 640 msec 496 msec 472 msec

hal serupa juga akan terjadi pada router R2 dan R3, bahkan setelah diaktifkan lagi interface lo 0 pada router 4 masih tetap tidak bisa di akses.

Routing loop tersebut terjadi karena pada satu titik redistribusi R2 lebih memilih menginstal RIP untuk network 4.4.4.4 sedangkan titik redistribusi lain pada router R3 lebih memilih menginstal OSPF E2 dalam routing tabelnya.

dan tentunya router akan memilih yang nilai AD nya paling rendah. sehingga akibatnya paket tidak akan memilih ke area RIP (120), melainkan kembali lagi ke area OSPF (110), demikian seterusnya, sehingga paket ngeloop dan tidak pernah sampai ke network yang di tuju yaitu lo R4 (4.4.4.4)

Maka solusinya harus dibuat agar kedua tittik redistribusi untuk lebih memilih RIP dibanding OSPF, yakni dengan membuat nilai AD RIP yang diredistribusi dari R4 lebih kecil dibanding OSPF (110)

===
R2
===
[command_start]
!
router rip
 distance 109 10.10.10.4 0.0.0.0
!
[command_end]

===
R3
===
[command_start]
!
router rip
 distance 109 10.10.10.4 0.0.0.0
!
[command_end]


====================
Cek lagi Routing Tabel di R2
====================
Gateway of last resort is not set

     1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/65] via 12.12.12.1, 00:36:16, Serial0/0
     2.0.0.0/32 is subnetted, 1 subnets
C       2.2.2.2 is directly connected, Loopback0
     3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/129] via 12.12.12.1, 00:32:19, Serial0/0
     4.0.0.0/32 is subnetted, 1 subnets
R       4.4.4.4 [120/1] via 10.10.10.3, 00:00:18, FastEthernet0/0
     10.0.0.0/24 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
     12.0.0.0/24 is subnetted, 1 subnets
C       12.12.12.0 is directly connected, Serial0/0
     13.0.0.0/24 is subnetted, 1 subnets
O       13.13.13.0 [110/128] via 12.12.12.1, 00:33:31, Serial0/0

yup sekarang di setiap titik redistribusi sudah mantap !!! bahwa network 4.4.4.4 akan dilewatkan ke area RIP.









0 komentar :

Posting Komentar