Home > BOOTCAMP, Mutual Redistribution > HARI 3 Sesi 1 MUTUAL REDISTRIBUTION

HARI 3 Sesi 1 MUTUAL REDISTRIBUTION

************************

Lab 1. Mutual Redistribution
Lab 2. Mutual Redistribution – 2 titik
Lab 3. Mutual Redistribution – Route Tagging

*************************

Percobaan lab untuk saling meredistribute antar routing protokol.

LAB 1 MUTUAL REDISTRIBUTION

Scenario :

Mutual redistribusi antara RIP – OSPF – EIGRP dan RIP lagi.

Note :

ke Eigrp : issue metric K1 – K5 ( metric 1 1 1 1 1)

ke OSPF issue Subnet (area) command subnets

ke RIP isu metric/Hop ( metric 1)

R1

interface Serial0/0
ip address 12.12.12.1 255.255.255.0

router rip
version 2
network 12.0.0.0
no auto-summary
R2

interface FastEthernet0/0
ip address 23.23.23.2 255.255.255.0
!
interface Serial0/0
ip address 12.12.12.2 255.255.255.0

router rip
version 2
redistribute ospf 1 metric 1
network 12.0.0.0
no auto-summary
!
router ospf 1
redistribute rip subnets
network 23.23.23.2 0.0.0.0 area 0

R3
interface FastEthernet0/0
ip address 23.23.23.3 255.255.255.0
!
interface FastEthernet0/1
ip address 34.34.34.3 255.255.255.0
!
router eigrp 1
redistribute ospf 1 metric 1 1 1 1 1
network 34.34.34.3 0.0.0.0
no auto-summary
!
router ospf 1
redistribute eigrp 1 subnets
network 23.23.23.3 0.0.0.0 area 0

R4

interface FastEthernet0/0
ip address 34.34.34.4 255.255.255.0
interface Serial0/0
ip address 45.45.45.4 255.255.255.0
!
router eigrp 1
redistribute rip metric 1 1 1 1 1
network 34.34.34.4 0.0.0.0
no auto-summary
!
router rip
version 2
redistribute eigrp 1 metric 1
network 45.0.0.0
no auto-summary

R5
!
interface Serial0/0
ip address 45.45.45.5 255.255.255.0
!
router rip
version 2
!
network 45.0.0.0
no auto-summary

Verifikasi :

R5#sh ip route
Gateway of last resort is not set
34.0.0.0/24 is subnetted, 1 subnets
R 34.34.34.0 [120/1] via 45.45.45.4, 00:00:44, Serial0/0
23.0.0.0/24 is subnetted, 1 subnets
R 23.23.23.0 [120/1] via 45.45.45.4, 00:00:44, Serial0/0
12.0.0.0/24 is subnetted, 1 subnets
R 12.12.12.0 [120/1] via 45.45.45.4, 00:00:44, Serial0/0
45.0.0.0/24 is subnetted, 1 subnets
C 45.45.45.0 is directly connected, Serial0/0

R5#ping 12.12.12.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.12.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 64/103/156 ms


*****************************************

LAB 2 MUTUAL REDISTRIBUTION dua titik

Skenario : Lab Mutual Redistribution kondisi dua titik

Note : Issue yangmuncul adalah routing loop di kedua titik tersebut.

R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 12.12.12.1 255.255.255.0
!
interface Serial0/1
ip address 13.13.13.1 255.255.255.0
!
router ospf 1
network 1.1.1.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

R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 10.10.10.2 255.255.255.0
!
interface Serial0/0
ip address 12.12.12.2 255.255.255.0
!
router ospf 1
redistribute rip subnets
network 2.2.2.2 0.0.0.0 area 0
network 12.12.12.2 0.0.0.0 area 0
!
router rip
version 2
redistribute ospf 1 metric 1
network 10.0.0.0
no auto-summary

R3
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 10.10.10.3 255.255.255.0
!
interface Serial0/0
ip address 13.13.13.3 255.255.255.0
!
router ospf 1
redistribute rip subnets
network 3.3.3.3 0.0.0.0 area 0
network 13.13.13.3 0.0.0.0 area 0
!
router rip
version 2
redistribute ospf 1 metric 1
network 10.0.0.0
no auto-summary

  R4

!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
ip address 10.10.10.4 255.255.255.0
!
router rip
version 2
network 4.0.0.0
network 10.0.0.0
no auto-summary

Verifikasi : 

…Terlihat terjadi looping , R2 ( RIP ) dan R3 ( OSPF) , router memilih yg nilai AD nya paling kecil. sehingga paket tidak

akan memilih RIP (120), melainkan kembali lagi ke OSPF(110), demikian seterusnya
sehingga terjadi looping

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 52 msec 16 msec
2 10.10.10.3 32 msec 44 msec 4 msec
3 13.13.13.1 56 msec 48 msec 16 msec
4 12.12.12.2 28 msec 56 msec 32 msec
5 10.10.10.3 36 msec 64 msec 40 msec
6 13.13.13.1 20 msec 60 msec 24 msec
7 12.12.12.2 36 msec 68 msec 52 msec
8 10.10.10.3 48 msec 80 msec 52 msec
9 13.13.13.1 32 msec 76 msec 32 msec
10 12.12.12.2 52 msec 80 msec 32 msec
11 10.10.10.3 48 msec 84 msec 72 msec
12 13.13.13.1 48 msec 68 msec 72 msec
13 12.12.12.2 60 msec 84 msec 64 msec
14 10.10.10.3 60 msec 76 msec 72 msec
15 13.13.13.1 44 msec 76 msec 48 msec
16 12.12.12.2 60 msec 80 msec 76 msec
17 10.10.10.3 76 msec 88 msec 68 msec
18 13.13.13.1 56 msec 96 msec 56 msec
19 12.12.12.2 68 msec 96 msec 76 msec
20 10.10.10.3 100 msec 112 msec 72 msec
21 13.13.13.1 84 msec 104 msec 64 msec
22 12.12.12.2 80 msec 108 msec 92 msec
23 10.10.10.3 72 msec 124 msec 84 msec
24 13.13.13.1 96 msec 100 msec 104 msec
25 12.12.12.2 96 msec 120 msec 88 msec
26 10.10.10.3 100 msec 128 msec 76 msec
27 13.13.13.1 136 msec 100 msec 104 msec
28 12.12.12.2 96 msec 108 msec 120 msec
29 10.10.10.3 104 msec 128 msec 104 msec
30 13.13.13.1 112 msec 124 msec 116 msec

agar tidak looping, R2 dan 3 dipaksa untuk memakai RIP :

R2(config)#router rip
R2(config-router)#distance 109 10.10.10.4 0.0.0.0

R3(config)#router rip
R3(config-router)#distance 109 10.10.10.4 0.0.0.0

Verifikasi lagi

R2#sh ip route
4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [109/1] via 10.10.10.4, 00:00:19, FastEthernet0/0
R3#sh ip route
4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [109/1] via 10.10.10.4, 00:00:25, FastEthernet0/0

R1#traceroute 4.4.4.4
Type escape sequence to abort.
Tracing the route to 4.4.4.4
1 13.13.13.3 40 msec
12.12.12.2 36 msec
13.13.13.3 40 msec
2 10.10.10.4 56 msec 68 msec *

*****************************

Lab 3. Mutual Redistribution – Route Tagging

Skenario : menghindari looping dengan memberlakukan tagging pada jalur masuk dan keluar-nya

R1
!
interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.1 255.255.255.0
!
interface FastEthernet0/1
ip address 13.13.13.1 255.255.255.0
!
router eigrp 1
network 1.1.1.1 0.0.0.0
network 12.12.12.1 0.0.0.0
network 13.13.13.1 0.0.0.0
no auto-summary

!
R2
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.12.12.2 255.255.255.0
!
interface FastEthernet0/1
ip address 24.24.24.2 255.255.255.0
!
router eigrp 1
network 2.2.2.2 0.0.0.0
network 12.12.12.2 0.0.0.0
network 24.24.24.2 0.0.0.0
no auto-summary

R3
!
interface Loopback0
ip address 3.3.3.3 255.255.255.255
!
interface FastEthernet0/0
ip address 13.13.13.3 255.255.255.0
!
interface FastEthernet0/1
ip address 35.35.35.3 255.255.255.0
!
router eigrp 1
network 3.3.3.3 0.0.0.0
network 13.13.13.3 0.0.0.0
no auto-summary
!
router ospf 1
network 35.35.35.3 0.0.0.0 area 0

R4
!
interface Loopback0
ip address 4.4.4.4 255.255.255.255
interface FastEthernet0/0
ip address 24.24.24.4 255.255.255.0
!
interface FastEthernet0/1
ip address 46.46.46.4 255.255.255.0
!
router eigrp 1
network 24.24.24.4 0.0.0.0
no auto-summary
!
router ospf 1
network 4.4.4.4 0.0.0.0 area 0
network 46.46.46.4 0.0.0.0 area 0
R5
!
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/0
ip address 56.56.56.5 255.255.255.0
!
interface FastEthernet0/1
ip address 35.35.35.5 255.255.255.0
!
router ospf 1
network 5.5.5.5 0.0.0.0 area 0
network 35.35.35.5 0.0.0.0 area 0
network 56.56.56.5 0.0.0.0 area 0
R6
!
interface Loopback0
ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
ip address 56.56.56.6 255.255.255.0
!
interface FastEthernet0/1
ip address 46.46.46.6 255.255.255.0
router ospf 1
network 6.6.6.6 0.0.0.0 area 0
network 46.46.46.6 0.0.0.0 area 0
network 56.56.56.6 0.0.0.0 area 0

PEMBERIAN TAGGING

R3(config)#router eigrp 1
R3(config-router)# redistribute ospf 1 metric 1 1 1 1 1 route-map OSPF-ke-EIGRP
R3(config)#router ospf 1
R3(config-router)# redistribute eigrp 1 metric 1 subnets route-map EIGRP-ke-OSPF
!
R3(config)#route-map EIGRP-ke-OSPF deny 10
R3(config-route-map)# match tag 120
!
R3(config-route-map)# route-map EIGRP-ke-OSPF permit 20
R3(config-route-map)# set tag 90
!
R3(config-route-map)# route-map OSPF-ke-EIGRP deny 10
R3(config-route-map)# match tag 90
!
R3(config-route-map)# route-map OSPF-ke-EIGRP permit 20
R3(config-route-map)# set tag 120
R4(config)#router eigrp 1
R4(config-router)# redistribute ospf 1 metric 1 1 1 1 1 route-map OSPF-ke-EIGRP
R4(config)#router ospf 1
R4(config-router)# redistribute eigrp 1 metric 1 subnets route-map EIGRP-ke-OSPF
!
R4(config)#route-map EIGRP-ke-OSPF deny 10
R4(config-route-map)# match tag 120
!
R4(config-route-map)# route-map EIGRP-ke-OSPF permit 20
R4(config-route-map)# set tag 90
!
R4(config-route-map)# route-map OSPF-ke-EIGRP deny 10
R4(config-route-map)# match tag 90

R4(config-route-map)# route-map OSPF-ke-EIGRP permit 20
R4(config-route-map)# set tag 120

VERIFIKASI

tag menandakan bahwa network berasal dari RIP atau EIGRP misalnya, dan dengan tag tersebut diberlakukan pengaturan untuk tidak akan dikembalikan ke arah informasi routing berasal

R1#sh ip route 5.5.5.5
Routing entry for 5.5.5.5/32
Known via “eigrp 1″, distance 170, metric 2560025856
Tag 120, type external
Redistributing via eigrp 1
Last update from 13.13.13.3 on FastEthernet0/1, 01:15:45 ago
Routing Descriptor Blocks:
* 13.13.13.3, from 13.13.13.3, 01:15:45 ago, via FastEthernet0/1
Route metric is 2560025856, traffic share count is 1
Total delay is 1010 microseconds, minimum bandwidth is 1 Kbit
Reliability 1/255, minimum MTU 1 bytes
Loading 1/255, Hops 1
Route tag 120

R6#sh ip route 2.2.2.2
Routing entry for 2.2.2.2/32
Known via “ospf 1″, distance 110, metric 1
Tag 90, type extern 2, forward metric 10
Last update from 46.46.46.4 on FastEthernet0/1, 01:18:23 ago
Routing Descriptor Blocks:
* 46.46.46.4, from 4.4.4.4, 01:18:23 ago, via FastEthernet0/1
Route metric is 1, traffic share count is 1
Route tag 90


Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.