OSPF Lab 7 : OSPF External Route Tipe-1

 LAB 7


• Routing yang berasal dari routing protocol lain diberikan label dalam tabel routing dengan label “OE2” yang berarti merupakan hasil redistribute dengan menggunakan metric type 2. 

• Redistribute pada OSPF ada 2 macam, yaitu redistribute metric type 1 dan redistribute metric type 2 

• Perbedaan keduanya terletak pada cost yang akna diberikan kepada setiap network hasil redistribute tersebut. 

• Redistribute type 1 akan memberikan cost pada sebuah network yang merupakan hasil penjumlahan cost internal dan juga cost external. 

• Sedangkan, redistribute type 2 akan memberikan cost pada sebuah network hanya cost external dan tidak memperdulikan cost internal.

Hapus konfig NSSA pada R2 dan R3.

R2

R2(config)#router ospf 2 
R2(config-router)#no area 1 nssa no-summary 
R2(config-router)#no area 1 nssa 
R2(config-router)#exit 

R3

R3(config)#router ospf 3 
R3(config-router)#no area 1 nssa 
R3(config-router)#exit

Kondisi awal :

R1

R1(config)#do sh ip route ospf 
 2.0.0.0/32 is subnetted, 1 subnets 
O IA 2.2.2.2 [110/2] via 12.12.12.2, 09:49:43, FastEthernet0/0 
 3.0.0.0/32 is subnetted, 1 subnets 
O IA 3.3.3.3 [110/3] via 12.12.12.2, 00:02:37, FastEthernet0/0 
 23.0.0.0/24 is subnetted, 1 subnets 
O IA 23.23.23.0 [110/2] via 12.12.12.2, 00:02:37, FastEthernet0/0 
 33.0.0.0/32 is subnetted, 3 subnets 
O E2 33.33.33.1 [110/20] via 12.12.12.2, 00:02:32, FastEthernet0/0 
O E2 33.33.33.2 [110/20] via 12.12.12.2, 00:02:32, FastEthernet0/0 
O E2 33.33.33.3 [110/20] via 12.12.12.2, 00:02:32, FastEthernet0/0

R2

R2(config)#do sh ip route ospf 
 1.0.0.0/32 is subnetted, 1 subnets 
O 1.1.1.1 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0 
 3.0.0.0/32 is subnetted, 1 subnets 
O 3.3.3.3 [110/2] via 23.23.23.3, 00:20:56, GigabitEthernet1/0 
 33.0.0.0/32 is subnetted, 3 subnets 
O E2 33.33.33.1 [110/20] via 23.23.23.3, 00:20:56, GigabitEthernet1/0 
O E2 33.33.33.2 [110/20] via 23.23.23.3, 00:20:56, GigabitEthernet1/0 
O E2 33.33.33.3 [110/20] via 23.23.23.3, 00:20:56, GigabitEthernet1/0 
 100.0.0.0/32 is subnetted, 7 subnets
 
O IA 100.100.100.1 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0 
O IA 100.100.100.2 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0 
O IA 100.100.100.3 [110/2] via 12.12.12.1, 00:21:32, FastEthernet0/0 
O E2 100.100.100.4 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0 
O E2 100.100.100.5 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0 
O E2 100.100.100.6 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0 
O E2 100.100.100.7 [110/20] via 12.12.12.1, 00:21:32, FastEthernet0/0

Perhatikan Code E2 pada tabel routing di R1 dan R2 diatas. Dan perhatikan bagian [110/20], 110 menunjukkan administrator distance OSPF, sedangkan 20 menunjukkan metric yang digunakan oleh R2 menuju network tersebut. Metricnya sama baik ketika route tersebut di R1 ataupun R2. Selanjutnya kita ubah agar menjadi External Type 1 gunakan salah satu cara saja ya.

R3 (Cara Pertama)

R3(config)#router ospf 3 
R3(config-router)#redistribute rip subnets metric-type ? 
 1 Set OSPF External Type 1 metrics  
 2 Set OSPF External Type 2 metrics 
R3(config-router)#redistribute rip subnets metric-type 1 R3(config-router)#exit

R3 (Cara Kedua)

R3(config)#route-map TIPE-SATU 
R3(config-route-map)#set metric-type ? 
 external IS-IS external metric internal IS-IS 
 internal metric or Use IGP metric as the MED for BGP 
 type-1 OSPF external type 1 metric 
 type-2 OSPF external type 2 metric
R3(config-route-map)#set metric-type type-1 
R3(config-route-map)#exit 
R3(config)#router ospf 3 
R3(config-router)#redistribute rip subnets route-map TIPE-SATU 
R3(config-router)#exit

R1

R1(config)#do sh ip route ospf 
 2.0.0.0/32 is subnetted, 1 subnets 
O IA 2.2.2.2 [110/2] via 12.12.12.2, 10:49:50, FastEthernet0/0 
 3.0.0.0/32 is subnetted, 1 subnets 
O IA 3.3.3.3 [110/3] via 12.12.12.2, 01:02:44, FastEthernet0/0 
 23.0.0.0/24 is subnetted, 1 subnets 
O IA 23.23.23.0 [110/2] via 12.12.12.2, 01:02:44, FastEthernet0/0 
 33.0.0.0/32 is subnetted, 3 subnets 
O E1 33.33.33.1 [110/22] via 12.12.12.2, 00:02:50, FastEthernet0/0
O E1 33.33.33.2 [110/22] via 12.12.12.2, 00:02:50, FastEthernet0/0 
O E1 33.33.33.3 [110/22] via 12.12.12.2, 00:02:50, FastEthernet0/0

R2

R2(config)#do sh ip route ospf 
 1.0.0.0/32 is subnetted, 1 subnets 
O 1.1.1.1 [110/2] via 12.12.12.1, 01:09:19, FastEthernet0/0 
 3.0.0.0/32 is subnetted, 1 subnets 
O 3.3.3.3 [110/2] via 23.23.23.3, 01:08:43, GigabitEthernet1/0 
 33.0.0.0/32 is subnetted, 3 subnets 
O E1 33.33.33.1 [110/21] via 23.23.23.3, 00:08:49, GigabitEthernet1/0 
O E1 33.33.33.2 [110/21] via 23.23.23.3, 00:08:49, GigabitEthernet1/0 
O E1 33.33.33.3 [110/21] via 23.23.23.3, 00:08:49, GigabitEthernet1/0 

Terlihat bahwa code Route nya berubah menjadi E1 dan nilai Metric nya berubah dan berbeda pada setiap Router.


Comments