Setelah kita selesai konfigurasi seperti pada lab sebelumnya sekarang kita akan mengubah metric ke type 1
R1(config)#router ospf 1
R1(config-router)#redistribute rip subnets metric-type 1
Cek table routingR1(config-router)#redistribute rip subnets metric-type 1
R2#show ip route | i O E
O E1 10.10.10.3 [110/30] via 12.12.12.1, 00:01:08, Ethernet0/0
O E1 10.10.10.4 [110/30] via 12.12.12.1, 00:01:08, Ethernet0/0
O E2 30.30.30.2 [110/20] via 23.23.23.3, 00:05:27, Ethernet0/1
O E2 30.30.30.1 [110/20] via 23.23.23.3, 00:05:27, Ethernet0/1
R3#show ip route | i O E
O E1 10.10.10.3 [110/40] via 23.23.23.2, 00:03:27, Ethernet0/0
O E1 10.10.10.4 [110/40] via 23.23.23.2, 00:03:27, Ethernet0/0
Bisa kita lihat pada table routing R2 dan R3 metric berubah menjadi 30 dan 40, untuk type 2 nilai metricnya 20 dengan konfigurasi diatas semua metric akan menjadi type 1. Tapi apabila kita ingin membuat sebgian menjadi type 1 maka bisa menggunakan route-map dengan perintah berikut :O E1 10.10.10.3 [110/30] via 12.12.12.1, 00:01:08, Ethernet0/0
O E1 10.10.10.4 [110/30] via 12.12.12.1, 00:01:08, Ethernet0/0
O E2 30.30.30.2 [110/20] via 23.23.23.3, 00:05:27, Ethernet0/1
O E2 30.30.30.1 [110/20] via 23.23.23.3, 00:05:27, Ethernet0/1
R3#show ip route | i O E
O E1 10.10.10.3 [110/40] via 23.23.23.2, 00:03:27, Ethernet0/0
O E1 10.10.10.4 [110/40] via 23.23.23.2, 00:03:27, Ethernet0/0
R3(config)#route-map TIPE1 10
R3(config-route-map)#match interface lo1
R3(config-route-map)#set metric-type type-1
R3(config)#route-map 20
R3(config-route-map)#match interface lo2
R3(config-route-map)#set metric-type type-2
R3(config-route-map)#router ospf 3
R3(config-router)#redistribute rip subnets route-map TIPE1
R3(config-route-map)#match interface lo1
R3(config-route-map)#set metric-type type-1
R3(config)#route-map 20
R3(config-route-map)#match interface lo2
R3(config-route-map)#set metric-type type-2
R3(config-route-map)#router ospf 3
R3(config-router)#redistribute rip subnets route-map TIPE1
0 Komentar
Penulisan markup di komentar