Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| networking:cisco:static-routing [2026/02/04 00:27] – created ilyasa | networking:cisco:static-routing [2026/02/04 15:05] (current) – [Topologi] ilyasa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | ====== Cisco : Static Routing | + | ====== Cisco : Static Routing ====== |
| - | Desciption | + | Static routing ialah sebuah konsep jaringan yang penting yang melibatkan konfigurasi rute secara manual pada router. Rute ini mengarahkan perutean ke tujuan jaringan tertentu dan memiliki administrative distance (AD) 1, yang menjadikannya sangat tepercaya, nomor dua setelah rute yang terhubung secara langsung AD 0. |
| ===== Syntax ===== | ===== Syntax ===== | ||
| - | ==== Some acction ==== | ||
| - | ^ Command ^ Description ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | Contoh: | ||
| < | < | ||
| - | vlan 10 | + | R1(config)# |
| - | name VLAN-10 | + | |
| - | vlan 20 | + | |
| - | name VLAN-20 | + | |
| - | vlan 99 | + | |
| - | name VLAN-Management | + | |
| </ | </ | ||
| + | * network-address: | ||
| + | * subnet-mask: | ||
| + | * next-hop-ip: | ||
| + | * exit-int: interface dari next hop network tujuan. | ||
| + | |||
| + | ==== Tipe static route ==== | ||
| + | * **Default Static Route** | ||
| + | < | ||
| + | R1(config)# | ||
| + | </ | ||
| + | Default route statis digunakan ketika tidak ada route lain yang cocok dengan alamat IP tujuan. Ini akan menjadi rute pilihan terakhir. | ||
| + | |||
| + | * **Floating static route** | ||
| + | < | ||
| + | R1(config)# | ||
| + | </ | ||
| + | Floating static route adalah rute cadangan dengan administrative distance yang lebih tinggi, sehingga membuatnya jadi rute cadangan jika rute utama gagal. | ||
| + | |||
| ===== 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 | ||
| + | |||
| + | Gateway of last resort is not set | ||
| - | Switch(config)# | + | |
| - | Switch(config-vlan)# | + | C |
| - | Switch(config-vlan)# | + | 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 | ||
| + | </ | ||