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:58] – [Syntax] ilyasa | networking:cisco:static-routing [2026/02/04 15:05] (current) – [Topologi] ilyasa | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| ==== Tipe static route ==== | ==== Tipe static route ==== | ||
| - | | + | |
| < | < | ||
| R1(config)# | R1(config)# | ||
| Line 19: | Line 19: | ||
| Default route statis digunakan ketika tidak ada route lain yang cocok dengan alamat IP tujuan. Ini akan menjadi rute pilihan terakhir. | Default route statis digunakan ketika tidak ada route lain yang cocok dengan alamat IP tujuan. Ini akan menjadi rute pilihan terakhir. | ||
| - | | + | |
| < | < | ||
| R1(config)# | R1(config)# | ||
| Line 25: | Line 25: | ||
| Floating static route adalah rute cadangan dengan administrative distance yang lebih tinggi, sehingga membuatnya jadi rute cadangan jika rute utama gagal. | Floating static route adalah rute cadangan dengan administrative distance yang lebih tinggi, sehingga membuatnya jadi rute cadangan jika rute utama gagal. | ||
| - | ==== Some acction ==== | ||
| - | ^ Command ^ Description ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | Contoh: | ||
| - | < | ||
| - | vlan 10 | ||
| - | name VLAN-10 | ||
| - | vlan 20 | ||
| - | name VLAN-20 | ||
| - | vlan 99 | ||
| - | name VLAN-Management | ||
| - | </ | ||
| ===== 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 | ||
| + | </ | ||