Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:cisco:static-routing [2026/02/04 14:59] – [Some acction] ilyasa | networking:cisco:static-routing [2026/02/04 15:05] (current) – [Topologi] ilyasa | ||
|---|---|---|---|
| Line 27: | Line 27: | ||
| ===== Topologi ===== | ===== Topologi ===== | ||
| - | Gambar topology | + | {{ : |
| - | Goals Topology | + | |
| + | Hubungkan semua segment dengan hanya static routing | ||
| ===== Konfigurasi ===== | ===== Konfigurasi ===== | ||
| - | * **Step 1 : Pembuatan VLANs** | + | * **R1 : Tambah static route ke 192.168.13.0/ |
| < | < | ||
| - | Switch(config)#vlan 10 | + | R1(config)#ip route 192.168.13.0 255.255.255.0 192.168.12.2 |
| - | Switch(config-vlan)#name BIRU | + | R1(config)#ip route 192.168.2.0 255.255.255.0 192.168.12.2 |
| - | Switch(config-vlan)#exit | + | </ |
| + | * **R1 : Tambah static route ke 192.168.1.0/ | ||
| + | < | ||
| + | R2(config)#ip route 192.168.1.0 255.255.255.0 192.168.12.1 | ||
| + | R2(config)# | ||
| + | </ | ||
| + | * **R3 : Tambah static route ke 192.168.1.0/ | ||
| + | < | ||
| + | R3(config)# | ||
| + | R3(config)# | ||
| + | </ | ||
| + | ===== Testing ===== | ||
| + | * **Route tables R1** | ||
| + | < | ||
| + | R1#show ip route | ||
| + | Codes: L - local, C - connected, S - static, 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)# | + | Gateway of last resort is not set |
| - | Switch(config-vlan)# | + | |
| - | Switch(config-vlan)# | + | 192.168.1.0/ |
| + | C | ||
| + | L | ||
| + | S 192.168.2.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | S 192.168.13.0/ | ||
| </ | </ | ||
| - | | + | |
| + | * **Route tables R2** | ||
| < | < | ||
| - | Switch(config)#interface f0/1 | + | R1#show ip route |
| - | Switch(config-if)# | + | Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP |
| - | Switch(config-if)# | + | 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)# | + | Gateway of last resort is not set |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | |
| - | Switch(config-if)# | + | C |
| + | L | ||
| + | S 192.168.2.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | S 192.168.13.0/ | ||
| </ | </ | ||
| + | * **Route tables R3** | ||
| + | < | ||
| + | R3#show ip route | ||
| + | Codes: L - local, C - connected, S - static, 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 |
| + | |||
| + | S 192.168.1.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | S 192.168.12.0/ | ||
| + | | ||
| + | C | ||
| + | L | ||
| + | </ | ||
| + | * **Test Ping PC to PC** | ||
| + | |||
| + | < | ||
| + | C:\>ping 192.168.2.2 | ||
| + | |||
| + | Pinging 192.168.2.2 with 32 bytes of data: | ||
| + | |||
| + | Reply from 192.168.2.2: | ||
| + | Reply from 192.168.2.2: | ||
| + | Reply from 192.168.2.2: | ||
| + | Reply from 192.168.2.2: | ||
| + | |||
| + | Ping statistics for 192.168.2.2: | ||
| + | Packets: Sent = 4, Received | ||
| + | Approximate round trip times in milli-seconds: | ||
| + | Minimum = 0ms, Maximum = 0ms, Average = 0ms | ||
| + | </ | ||