networking:cisco:ospf-1a

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-1a [2026/02/04 15:38] – [Some acction] ilyasanetworking:cisco:ospf-1a [2026/02/04 16:25] (current) – [Konfigurasi] ilyasa
Line 37: Line 37:
  
 ===== Topologi ===== ===== Topologi =====
-Gambar topology +{{ :networking:cisco:cisco_template_routing_rev.png?nolink |}} 
-Goals Topology+<hidden Konfigurasi IP> 
 +  * **R1 : Konfigurasi IP** 
 +<code js> 
 +R1(config)#interface FastEthernet0/
 +R1(config-if)#ip address 192.168.1.1 255.255.255.0 
 +R1(config-if)#no shutdown 
 +R1(config-if)#exit 
 +R1(config)#interface Serial0/0/
 +R1(config-if)#ip address 10.0.1.1 255.255.255.252 
 +R1(config-if)#no shutdown 
 +R1(config-if)#exit 
 +R1(config)#interface Serial0/1/
 +R1(config-if)#ip address 10.0.0.1 255.255.255.252 
 +R1(config-if)#no shutdown 
 +R1(config-if)#exit 
 +</code> 
 +  * **R2 : Konfigurasi IP** 
 +<code js> 
 +R2(config)#interface FastEthernet0/
 +R2(config-if)#ip address 192.168.2.1 255.255.255.0 
 +R2(config-if)#no shutdown 
 +R2(config-if)#exit 
 +R2(config)#interface Serial0/0/
 +R2(config-if)#ip address 10.0.2.1 255.255.255.252 
 +R2(config-if)#no shutdown 
 +R2(config-if)#exit 
 +R2(config)#interface Serial0/1/
 +R2(config-if)#ip address 10.0.0.2 255.255.255.252 
 +R2(config-if)#no shutdown 
 +</code> 
 +  * **R3 : Konfigurasi IP** 
 +<code js> 
 +R3(config)#interface FastEthernet0/
 +R3(config-if)#ip address 192.168.3.1 255.255.255.0 
 +R3(config-if)#no shutdown 
 +R3(config-if)#exit 
 +R3(config)#interface Serial0/0/
 +R3(config-if)#ip address 10.0.2.2 255.255.255.252 
 +R3(config-if)#no shutdown 
 +R3(config-if)#exit 
 +R3(config)#interface Serial0/1/
 +R3(config-if)#ip address 10.0.1.2 255.255.255.252 
 +R3(config-if)#no shutdown 
 +</code> 
 +  * **PCs : Konfigurasi IP** 
 +{{ :networking:cisco:cisco_pcsetip.png?nolink |}} 
 +^PC ^IP Address ^Subnet Mask ^Gateway 
 +| PC1 | 192.168.1.2 | 255.255.255.0 | 192.168.1.1 |  
 +| PC2 | 192.168.2.2 | 255.255.255.0 | 192.168.2.1 |  
 +| PC3 | 192.168.3.2 | 255.255.255.0 | 192.168.3.1 | 
 +</hidden> 
 + 
 +Hubungkan semua segment jaringan hanya dengan ospf dan hanya menggunakan single area
 ===== Konfigurasi ===== ===== Konfigurasi =====
-  * **Step 1 Pembuatan VLANs**+  * **R1 Konfigurasi OSFP**
 <code> <code>
-Switch(config)#vlan 10 +R1(config)#router ospf 1 
-Switch(config-vlan)#name BIRU +R1(config-router)#network 192.168.1.0 0.0.0.255 area 0 
-Switch(config-vlan)#exit+R1(config-router)#network 10.0.0.0 0.0.0.3 area 0 
 +R1(config-router)#network 10.0.1.0 0.0.0.3 area 0 
 +</code> 
 +  * **R2 : Konfigurasi OSFP** 
 +<code> 
 +R2(config)#router ospf 1 
 +R2(config-router)#network 192.168.2.0 0.0.0.255 area 0 
 +R2(config-router)#network 10.0.0.0 0.0.0.3 area 0 
 +R2(config-router)#network 10.0.2.0 0.0.0.3 area 0 
 +</code> 
 +  * **R3 : Konfigurasi OSFP** 
 +<code> 
 +R3(config)#router ospf 1 
 +R3(config-router)#network 192.168.3.0 0.0.0.255 area 0 
 +R3(config-router)#network 10.0.1.0 0.0.0.3 area 0 
 +R3(config-router)#network 10.0.2.0 0.0.0.3 area 0 
 +</code> 
 +===== Testing ===== 
 +===== Testing ===== 
 +* **Route tables R1** 
 +<code> 
 +R1#show ip route 
 +Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP 
 +       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
 +       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 
 +       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP 
 +       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area 
 +       * - candidate default, U - per-user static route, o - ODR 
 +       P - periodic downloaded static route
  
-Switch(config)#vlan 20 +Gateway of last resort is not set 
-Switch(config-vlan)#name MAGENTA + 
-Switch(config-vlan)#exit+     10.0.0.0/30 is subnetted, 3 subnets 
 +C       10.0.0.0 is directly connected, Serial0/1/
 +C       10.0.1.0 is directly connected, Serial0/0/
 +O       10.0.2.0 [110/128] via 10.0.0.2, 00:02:20, Serial0/1/
 +                 [110/128] via 10.0.1.2, 00:02:20, Serial0/0/
 +C    192.168.1.0/24 is directly connected, FastEthernet0/0 
 +O    192.168.2.0/24 [110/65] via 10.0.0.2, 00:04:16, Serial0/1/0 
 +O    192.168.3.0/24 [110/65] via 10.0.1.2, 00:02:30, Serial0/0/0
 </code> </code>
-  * **Step 2 : Assign VLANs ke Ports**+ 
 +* **Route tables R2**
 <code> <code>
-Switch(config)#interface f0/+R2#show ip route 
-Switch(config-if)#switchport mode access  +Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP 
-Switch(config-if)#switchport access vlan 10 +       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
-Switch(config-if)#exit+       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 
 +       E1 OSPF external type 1, E2 - OSPF external type 2, E - EGP 
 +       i IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area 
 +       * candidate default, U - per-user static route, o - ODR 
 +       P - periodic downloaded static route
  
-Switch(config)#interface f0/2 +Gateway of last resort is not set 
-Switch(config-if)#switchport mode access  + 
-Switch(config-if)#switchport access vlan 10 +     10.0.0.0/30 is subnetted, 3 subnets 
-Switch(config-if)#exit+C       10.0.0.0 is directly connected, Serial0/1/
 +O       10.0.1.0 [110/128] via 10.0.0.1, 00:03:12, Serial0/1/
 +                 [110/128] via 10.0.2.2, 00:03:12, Serial0/0/0 
 +C       10.0.2.0 is directly connected, Serial0/0/0 
 +O    192.168.1.0/24 [110/65] via 10.0.0.1, 00:05:08, Serial0/1/0 
 +C    192.168.2.0/24 is directly connected, FastEthernet0/
 +O    192.168.3.0/24 [110/65] via 10.0.2.2, 00:03:12, Serial0/0/0
 </code> </code>
 +* **Route tables R3**
 +<code>R3#show ip route
 +Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 +       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
 +       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
 +       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
 +       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
 +       * - candidate default, U - per-user static route, o - ODR
 +       P - periodic downloaded static route
  
-===== Testing =====+Gateway of last resort is not set 
 + 
 +     10.0.0.0/30 is subnetted, 3 subnets 
 +O       10.0.0.0 [110/128] via 10.0.1.1, 00:03:44, Serial0/1/
 +                 [110/128] via 10.0.2.1, 00:03:44, Serial0/0/
 +C       10.0.1.0 is directly connected, Serial0/1/
 +C       10.0.2.0 is directly connected, Serial0/0/
 +O    192.168.1.0/24 [110/65] via 10.0.1.1, 00:03:54, Serial0/1/
 +O    192.168.2.0/24 [110/65] via 10.0.2.1, 00:03:44, Serial0/0/
 +C    192.168.3.0/24 is directly connected, FastEthernet0/
 +</code> 
 +* **Test Ping PC to PC** 
 + 
 +<code> 
 +C:\>ping 192.168.2.2 
 + 
 +Pinging 192.168.2.2 with 32 bytes of data: 
 + 
 +Reply from 192.168.2.2: bytes=32 time=23ms TTL=126 
 +Reply from 192.168.2.2: bytes=32 time=32ms TTL=126 
 +Reply from 192.168.2.2: bytes=32 time=22ms TTL=126 
 +Reply from 192.168.2.2: bytes=32 time=31ms TTL=126 
 + 
 +Ping statistics for 192.168.2.2: 
 +    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), 
 +Approximate round trip times in milli-seconds: 
 +    Minimum = 22ms, Maximum = 32ms, Average = 27ms 
 + 
 +C:\>ping 192.168.3.2 
 + 
 +Pinging 192.168.3.2 with 32 bytes of data: 
 + 
 +Reply from 192.168.3.2: bytes=32 time=15ms TTL=126 
 +Reply from 192.168.3.2: bytes=32 time=13ms TTL=126 
 +Reply from 192.168.3.2: bytes=32 time=22ms TTL=126 
 +Reply from 192.168.3.2: bytes=32 time=13ms TTL=126 
 + 
 +Ping statistics for 192.168.3.2: 
 +    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), 
 +Approximate round trip times in milli-seconds: 
 +    Minimum = 13ms, Maximum = 22ms, Average = 15ms 
 +</code>
  • networking/cisco/ospf-1a.1770194338.txt.gz
  • Last modified: 2026/02/04 15:38
  • by ilyasa