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
Next revision
Previous revision
networking:cisco:ospf-2a [2026/02/04 15:54] – [Cisco : Dynamic Routing - OSPF (multi area)] ilyasanetworking:cisco:ospf-2a [2026/02/04 16:17] (current) ilyasa
Line 39: Line 39:
  
 ===== Topologi ===== ===== Topologi =====
-Gambar topology +{{ :networking:cisco:cisco_ospf-multiarea.png?nolink |}} 
-Goals Topology +<hidden Preconfiguration> 
-===== Konfigurasi ===== +  * **BR1 Preconfig** 
-  * **Step 1 Pembuatan VLANs** +<code json
-<code> +hostname BR1  
-Switch(config)#vlan 10 + 
-Switch(config-vlan)#name BIRU +interface GigabitEthernet0/ 
-Switch(config-vlan)#exit +ip address 192.168.1.1 255.255.255.0  
- + 
-Switch(config)#vlan 20 +interface GigabitEthernet0/0/ 
-Switch(config-vlan)#name MAGENTA +ip address 201.0.0.1 255.255.255.0  
-Switch(config-vlan)#exit+!  
 +interface GigabitEthernet0/1/0  
 +ip address 200.0.0.1 255.255.255.0  
 +
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports** +  * **BR2 : Preconfig** 
-<code> +<code json> 
-Switch(config)#interface f0/1 +hostname BR2  
-Switch(config-if)#switchport mode access  +!  
-Switch(config-if)#switchport access vlan 10 +interface GigabitEthernet0/0  
-Switch(config-if)#exit +ip address 192.168.2.1 255.255.255.0  
- +!  
-Switch(config)#interface f0/2 +interface GigabitEthernet0/0/0  
-Switch(config-if)#switchport mode access  +ip address 200.0.0.2 255.255.255.0  
-Switch(config-if)#switchport access vlan 10 +!  
-Switch(config-if)#exit+interface GigabitEthernet0/1/0  
 +ip address 202.0.0.1 255.255.255.0  
 +</code> 
 +  * **ABR1 Preconfig** 
 +<code json
 +hostname ABR1  
 +!  
 +interface GigabitEthernet0/0  
 +ip address 10.1.1.1 255.255.255.252  
 +!  
 +interface GigabitEthernet0/ 
 +ip address 10.0.0.1 255.255.255.252  
 + 
 +interface GigabitEthernet0/0/0  
 +ip address 201.0.0.2 255.255.255.0  
 +
 +</code> 
 +  * **ABR2 : Preconfig** 
 +<code json> 
 +hostname ABR2  
 + 
 +interface GigabitEthernet0/0/0  
 +ip address 202.0.0.255.255.255.0  
 + 
 +interface Serial0/1/0  
 +ip address 172.16.0.1 255.255.255.252  
 +!  
 +</code> 
 +  * **R1 : Preconfig** 
 +<code json> 
 +hostname R1  
 +!  
 +interface GigabitEthernet0/0  
 +ip address 10.1.1.2 255.255.255.252  
 +!  
 +interface GigabitEthernet0/1  
 +ip address 192.168.10.1 255.255.255.0  
 +!  
 +</code> 
 +  * **R2 : Preconfig** 
 +<code json> 
 +hostname R2  
 +!  
 +interface GigabitEthernet0/0  
 +ip address 10.0.0.2 255.255.255.252  
 +!  
 +interface GigabitEthernet0/1  
 +ip address 192.168.20.1 255.255.255.0  
 +
 +</code> 
 +  * **R3 : Preconfig** 
 +<code json> 
 +hostname R3  
 +!  
 +interface GigabitEthernet0/1  
 +ip address 192.168.100.1 255.255.255.0  
 +!  
 +interface Serial0/0/0  
 +ip address 172.16.0.2 255.255.255.252  
 +clock rate 2000000 
 </code> </code>
  
-===== Testing =====+</hidden> 
 +===== Konfigurasi ===== 
 +  * **BR1 : Konfigurasi OSPF** 
 +<code json> 
 +BR1(config)#router ospf 1 
 +BR1(config-router)#network 192.168.1.0 0.0.0.255 area 0 
 +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 
 +</code> 
 +  * **BR2 : Konfigurasi OSPF** 
 +<code json> 
 +BR2(config)#router ospf 1 
 +BR2(config-router)#network 192.168.2.0 0.0.0.255 area 0 
 +BR2(config-router)#network 200.0.0.0 0.0.0.255 area 0 
 +BR2(config-router)#network 202.0.0.0 0.0.0.255 area 0 
 +</code> 
 +  * **ABR1 : Konfigurasi OSPF** 
 +<code js> 
 +ABR1(config)#router ospf 1 
 +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 2 
 +</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>
  • networking/cisco/ospf-2a.1770195287.txt.gz
  • Last modified: 2026/02/04 15:54
  • by ilyasa