Static Routing (Cisco Router)

cisco-logoBasic Configuration

Static Routing adalah teknik routing yang mengharuskan Administrator jaringan menyusun tabel routing secara manual. Administrator jaringan harus mengisikan entry route untuk menuju remote network, beserta gateway (next hop) yang dapat digunakan router untuk mencapai remote network tersebut.
 static_routing_cisco_1
Pada topologi di atas, Administrator jaringan harus memasukkan entry static routing menuju network 192.168.2.0/24 pada R1. Entry ini harus menggunakan 10.10.10.2 sebagai parameter gateway next hop. Sedangkan pada R2, Administrator harus memasukkan entry 192.168.1.0/24 dengan 10.10.10.1 sebagai next hop.
Pada saat static routing belum dikonfigurasikan, maka tabel routing pada kedua router akan terlihat seperti berikut ini.
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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
C    192.168.1.0/24 is directly connected, FastEthernet0/0
 
 

 
R2#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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
C    192.168.2.0/24 is directly connected, FastEthernet0/0
 
 
Adapun konfigurasi static routing yang harus diberikan kepada Router R1 adalah sebagai berikut
 R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip route 192.168.2.0 255.255.255.0 10.10.10.2

Sedangkan konfigurasi static routing pada R2, dapat menggunakan perintah sebagai berikut.
R2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#ip route 192.168.1.0 255.255.255.0 10.10.10.1

Sehingga hasil akhir dari konfigurasi static routing tersebut dapat dilihat pada tabel routing seperti berikut ini.

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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S    192.168.2.0/24 [1/0] via 10.10.10.2
 
R2#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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
S    192.168.1.0/24 [1/0] via 10.10.10.1
C    192.168.2.0/24 is directly connected, FastEthernet0/0
Pengujian dapat dilakukan pada kedua router seperti terlihat berikut ini.
R1#ping 192.168.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/24/36 ms
 
 

R2#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 10/18/20 ms
 
 
 

Load Balance

Teknik Load Balance digunakan untuk membagi bebas (load) dari traffic jaringan. Teknik ini bisa digunakan jika untuk menuju satu remote network terdapat beberapa link (jalur), seperti terlihat pada gambar berikut ini.
 static_routing_cisco_2

Konfigurasi yang perlu dilakukan pada router R1 adalah sebagai berikut.
R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#ip route 192.168.2.0 255.255.255.0 10.10.10.2
R1(config)#ip route 192.168.2.0 255.255.255.0 172.16.10.2

Sedangkan pada Router R2, konfigurasi yang perlu dilakukan adalah sebagai berikut.
R2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#ip route 192.168.1.0 255.255.255.0 10.10.10.1
R2(config)#ip route 192.168.1.0 255.255.255.0 172.16.10.1

Tabel routing dari kedua router yang menerapkan teknik load balance akan terlihat seperti berikut ini.
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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
     172.16.0.0/30 is subnetted, 1 subnets
C       172.16.10.0 is directly connected, FastEthernet1/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S    192.168.2.0/24 [1/0] via 10.10.10.2
                    [1/0] via 172.16.10.2
 
 
 
 
 
R2#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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
     172.16.0.0/30 is subnetted, 1 subnets
C       172.16.10.0 is directly connected, FastEthernet1/0
S    192.168.1.0/24 [1/0] via 10.10.10.1
                    [1/0] via 172.16.10.1
C    192.168.2.0/24 is directly connected, FastEthernet0/0



Fail Over

Teknik Fail Over adalah teknik yang digunakan untuk menyediakan link cadangan untuk menuju suatu network tujuan. Link cadangan ini tidak akan digunakan bila link utama masih berfungsi dengan baik. Untuk menerapkan teknik ini, harus dikonfigurasikan nilai Administrative Distance (AD) yang lebih besar pada link cadangan. Router cenderung akan menggunakan link dengan Administrative Distance terkecil untuk dimasukkan ke dalam tabel routing.
Secara default, static routing memiliki nilai AD = 1, sehingga untuk membuat link cadangan, harus dikonfigurasikan static routing dengan nilai AD yang lebih besar dari 1, seperti terlihat berikut ini.
 static_routing_cisco_3

Konfigurasi static routing dengan nilai AD yang bervariasi harus dilakukan pada kedua router dengan menggunakan perintah sebagai berikut.
R1(config)#
R1(config)#ip route 192.168.2.0 255.255.255.0 10.10.10.2
R1(config)#ip route 192.168.2.0 255.255.255.0 172.16.10.2 2
 
R2(config)#
R2(config)#ip route 192.168.1.0 255.255.255.0 10.10.10.1
R2(config)#ip route 192.168.1.0 255.255.255.0 172.16.10.1 2


Sehingga tabel routing pada kedua router akan terlihat seperti berikut ini.
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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
     172.16.0.0/30 is subnetted, 1 subnets
C       172.16.10.0 is directly connected, FastEthernet1/0
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S    192.168.2.0/24 [1/0] via 10.10.10.2
 
 
 
 
 
R2#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
       * – candidate default, U – per-user static route, o – ODR
       P – periodic downloaded static route
 
Gateway of last resort is not set
 
     10.0.0.0/30 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/1
     172.16.0.0/30 is subnetted, 1 subnets
C       172.16.10.0 is directly connected, FastEthernet1/0
S    192.168.1.0/24 [1/0] via 10.10.10.1
C    192.168.2.0/24 is directly connected, FastEthernet0/0

Link yang menggunakan network 172.16.10.0/30 akan terlihat pada tabel routing jika link utama “down”.
Previous
Next Post »