networking:cisco:ospf-2a

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
networking:cisco:ospf-2a [2026/02/04 16:14] – [Topologi] ilyasanetworking:cisco:ospf-2a [2026/02/04 16:17] (current) ilyasa
Line 129: Line 129:
 </hidden> </hidden>
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 Pembuatan VLANs** +  * **BR1 Konfigurasi OSPF** 
-<code> +<code json
-Switch(config)#vlan 10 +BR1(config)#router ospf 1 
-Switch(config-vlan)#name BIRU +BR1(config-router)#network 192.168.1.0 0.0.0.255 area 0 
-Switch(config-vlan)#exit +BR1(config-router)#network 200.0.0.0 0.0.0.255 area 0 
- +BR1(config-router)#network 201.0.0.0 0.0.0.255 area 0
-Switch(config)#vlan 20 +
-Switch(config-vlan)#name MAGENTA +
-Switch(config-vlan)#exit+
 </code> </code>
-  * **Step 2 Assign VLANs ke Ports** +  * **BR2 Konfigurasi OSPF** 
-<code> +<code json
-Switch(config)#interface f0/1 +BR2(config)#router ospf 1 
-Switch(config-if)#switchport mode access  +BR2(config-router)#network 192.168.2.0 0.0.0.255 area 0 
-Switch(config-if)#switchport access vlan 10 +BR2(config-router)#network 200.0.0.0 0.0.0.255 area 0 
-Switch(config-if)#exit +BR2(config-router)#network 202.0.0.0 0.0.0.255 area 0 
- +</code> 
-Switch(config)#interface f0/+  * **ABR1 : Konfigurasi OSPF** 
-Switch(config-if)#switchport mode access  +<code js> 
-Switch(config-if)#switchport access vlan 10 +ABR1(config)#router ospf 
-Switch(config-if)#exit+ABR1(config-router)#network 201.0.0.0 0.0.0.255 area 0 
 +ABR1(config-router)#network 10.0.0.0 0.0.0.3 area 1 
 +ABR1(config-router)#network 10.1.1.0 0.0.0.3 area 1 
 +</code> 
 +  * **ABR2 : Konfigurasi OSPF** 
 +<code json> 
 +ABR2(config)#router ospf 1 
 +ABR2(config-router)#network 202.0.0.0 0.0.0.255 area 0 
 +ABR2(config-router)#network 172.16.0.0 0.0.0.3 area 
 +</code> 
 +  * **R1 : Konfigurasi OSPF** 
 +<code json> 
 +R1(config)#router ospf 1 
 +R1(config-router)#network 192.168.10.0 0.0.0.255 area 1 
 +R1(config-router)#network 10.1.1.0 0.0.0.3 area 1 
 +</code> 
 +  * **R2 : Konfigurasi OSPF** 
 +<code json> 
 +R2(config)#router ospf 1 
 +R2(config-router)#network 192.168.20.0 0.0.0.255 area 1 
 +R2(config-router)#network 10.0.0.0 0.0.0.3 area 1 
 +</code> 
 +  * **R3 : Konfigurasi OSPF** 
 +<code json> 
 +R3(config)#router ospf 1 
 +R3(config-router)#network 192.168.100.0 0.0.0.255 area 2 
 +R3(config-router)#network 172.16.0.0 0.0.0.3 area 2
 </code> </code>
- 
-===== Testing ===== 
  • networking/cisco/ospf-2a.1770196487.txt.gz
  • Last modified: 2026/02/04 16:14
  • by ilyasa