Lab.14 Tutorial Static Route

by - Rabu, Juni 11, 2014

Static Route adalah routing yang patch/jalurnya ditentukan oleh kita sendiri di dalam router untuk menentukan bagaimana jalur paket melewati subnet tertentu dengan menggunakan jalur tertentu.

rumus sederhana

router(config)#ip route A.A.A.A B.B.B.B C.C.C.C

dimana
A.A.A.A = Destination network/host
B.B.B.B= subnet mask
C.C.C.C = IP yang dituju

Contoh

Router JAKARTA
Kita set IP di interface Fa0/0 (10.10.10.2/30)
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname JAKARTA
JAKARTA(config)#interface Fa0/0
JAKARTA(config-if)#ip addr 10.10.10.2 255.255.255.0
JAKARTA(config-if)#no shut

Lalu kita set route nya
JAKARTA(config-if)#ip route 192.168.0.0 255.255.255.252 10.10.10.1



Router SEMARANG
sama seperti router JAKARTA, namun di SEMARANG kita hanya konfig IP di kedua Interface

Kita konfig IP di Fa0/0 (10.10.10.1/30)
SEMARANG(config)#
SEMARANG(config)#int Fa0/0
SEMARANG(config-if)#ip addr
SEMARANG(config-if)#ip address 10.10.10.1 255.255.255.252
SEMARANG(config-if)#no shut

SEMARANG(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Kita konfig IP di Fa0/1 (192.168.0.1/30)
SEMARANG(config-if)#int Fa0/1
SEMARANG(config-if)#ip add 192.168.0.1 255.255.255.252
SEMARANG(config-if)#no shut

SEMARANG(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up


SEMARANG(config-if)#


Router SURABAYA
sama seperti Router Jakarta, hanya saja di perintah route dibuat terbalik

kita konfig interface Fa0/0 (192.168.0.2/30)
SURABAYA(config)#int Fa0/0
SURABAYA(config-if)#ip addr 192.168.0.2 255.255.255.252
SURABAYA(config-if)#no shut

SURABAYA(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up


Lalu kita set route nya
SURABAYA(config-if)#ip route 10.10.10.0 255.255.255.252 192.168.0.1

SURABAYA(config)#

Terima Kasih

You May Also Like

0 comments