Contoh Static Routing :


Konfigurasi yang harus dibuat :
Topologi Jaringan yang dibuat

KONFIGURASI R1
Router>enable
Router#configure terminal
Router(config)#hostname R1
R1(config)#INT FA0/0
R1(config-if)#ip add 192.168.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#int s2/0
R1(config-if)#ip add 1.1.1.1 255.255.255.0
R1(config-if)#clock rate 9600
R1(config-if)#no shut
R1(config-if)#exit
R1(config)#
R1(config)#ip route 192.168.2.0 255.255.255.0 1.1.1.2
R1(config)#ip route 192.168.3.0 255.255.255.0 1.1.1.2
R1(config)#ip route 192.168.4.0 255.255.255.0 1.1.1.2
R1(config)#ip route 192.168.5.0 255.255.255.0 1.1.1.2
R1(config)#ip route 2.2.2.0 255.255.255.0 1.1.1.2
R1(config)#ip route 3.3.3.0 255.255.255.0 1.1.1.2
R1(config)#ip route 4.4.4.0 255.255.255.0 1.1.1.2
R1(config)#ip route 5.5.5.0 255.255.255.0 1.1.1.2
R1(config)#^Z
R1#show ip route
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial2/0
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [1/0] via 1.1.1.2
     3.0.0.0/24 is subnetted, 1 subnets
S       3.3.3.0 [1/0] via 1.1.1.2
     4.0.0.0/24 is subnetted, 1 subnets
S       4.4.4.0 [1/0] via 1.1.1.2
     5.0.0.0/24 is subnetted, 1 subnets
S       5.5.5.0 [1/0] via 1.1.1.2
C    192.168.1.0/24 is directly connected, FastEthernet0/0
S    192.168.2.0/24 [1/0] via 1.1.1.2
S    192.168.3.0/24 [1/0] via 1.1.1.2
S    192.168.4.0/24 [1/0] via 1.1.1.2
S    192.168.5.0/24 [1/0] via 1.1.1.2
KONFIGURASI R2
Router>en
Router#conf t
Router(config)#host R2
R2(config)#int fa 0/0
R2(config-if)#ip add 192.168.2.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int s2/0
R2(config-if)#ip add 1.1.1.2 255.255.255.0
R2(config-if)#clock rate 9600
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int s3/0
R2(config-if)#ip add 2.2.2.1 255.255.255.0
R2(config-if)#clock rate 9600
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#int s6/0
R2(config-if)#ip add 3.3.3.1 255.255.255.0
R2(config-if)#clock rate 9600
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#ip route 192.168.1.0 255.255.255.0 1.1.1.1
R2(config)#ip route 192.168.3.0 255.255.255.0 2.2.2.2
R2(config)#ip route 192.168.4.0 255.255.255.0 3.3.3.2
R2(config)#ip route 192.168.5.0 255.255.255.0 3.3.3.2
R2(config)#ip route 4.4.4.0 255.255.255.0 2.2.2.2
R2(config)#ip route 5.5.5.0 255.255.255.0 3.3.3.2
R2(config)#^Z
R2#show ip route
     1.0.0.0/24 is subnetted, 1 subnets
C       1.1.1.0 is directly connected, Serial2/0
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial3/0
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Serial6/0
     4.0.0.0/24 is subnetted, 1 subnets
S       4.4.4.0 [1/0] via 2.2.2.2
     5.0.0.0/24 is subnetted, 1 subnets
S       5.5.5.0 [1/0] via 3.3.3.2
S    192.168.1.0/24 [1/0] via 1.1.1.1
C    192.168.2.0/24 is directly connected, FastEthernet0/0
S    192.168.3.0/24 [1/0] via 2.2.2.2
S    192.168.4.0/24 [1/0] via 3.3.3.2
S    192.168.5.0/24 [1/0] via 3.3.3.2
KONFIGURASI R3
Router>en
Router#conf t
Router(config)#host R3
R3(config)#int fa0/0
R3(config-if)#ip add 192.168.3.1 255.255.255.0
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#int s3/0
R3(config-if)#ip add 2.2.2.2 255.255.255.0
R3(config-if)#clock rate 9600
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#int s2/0
R3(config-if)#ip add 4.4.4.1 255.255.255.0
R3(config-if)#clock rate 9600
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#ip route 192.168.1.0 255.255.255.0 2.2.2.1
R3(config)#ip route 192.168.2.0 255.255.255.0 2.2.2.1
R3(config)#ip route 192.168.4.0 255.255.255.0 4.4.4.2
R3(config)#ip route 192.168.5.0 255.255.255.0 4.4.4.2
R3(config)#ip route 1.1.1.0 255.255.255.0 2.2.2.1
R3(config)#ip route 3.3.3.0 255.255.255.0 2.2.2.1
R3(config)#ip route 5.5.5.0 255.255.255.0 4.4.4.2
R3(config)#^Z
R3#show ip route
     1.0.0.0/24 is subnetted, 1 subnets
S       1.1.1.0 [1/0] via 2.2.2.1
     2.0.0.0/24 is subnetted, 1 subnets
C       2.2.2.0 is directly connected, Serial3/0
     3.0.0.0/24 is subnetted, 1 subnets
S       3.3.3.0 [1/0] via 2.2.2.1
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Serial2/0
     5.0.0.0/24 is subnetted, 1 subnets
S       5.5.5.0 [1/0] via 4.4.4.2
S    192.168.1.0/24 [1/0] via 2.2.2.1
S    192.168.2.0/24 [1/0] via 2.2.2.1
C    192.168.3.0/24 is directly connected, FastEthernet0/0
S    192.168.4.0/24 [1/0] via 4.4.4.2
S    192.168.5.0/24 [1/0] via 4.4.4.2
KONFIGURASI R4
Router>en
Router#conf t
Router(config)#host R4
R4(config)#int fa0/0
R4(config-if)#ip add 192.168.4.1 255.255.255.0
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#int s2/0
R4(config-if)#ip add 3.3.3.2 255.255.255.0
R4(config-if)#clock rate 9600
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#int s3/0
R4(config-if)#ip add 5.5.5.1 255.255.255.0
R4(config-if)#no shut
R4(config-if)#exit
R4(config)#ip route 192.168.1.0 255.255.255.0 3.3.3.1
R4(config)#ip route 192.168.2.0 255.255.255.0 3.3.3.1
R4(config)#ip route 192.168.3.0 255.255.255.0 5.5.5.2
R4(config)#ip route 192.168.5.0 255.255.255.0 5.5.5.2
R4(config)#ip route 1.1.1.0 255.255.255.0 3.3.3.1
R4(config)#ip route 2.2.2.0 255.255.255.0 3.3.3.1
R4(config)#ip route 4.4.4.0 255.255.255.0 5.5.5.2
R4(config)#^Z
R4#show ip route
     1.0.0.0/24 is subnetted, 1 subnets
S       1.1.1.0 [1/0] via 3.3.3.1
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [1/0] via 3.3.3.1
     3.0.0.0/24 is subnetted, 1 subnets
C       3.3.3.0 is directly connected, Serial2/0
     4.0.0.0/24 is subnetted, 1 subnets
S       4.4.4.0 [1/0] via 5.5.5.2
     5.0.0.0/24 is subnetted, 1 subnets
C       5.5.5.0 is directly connected, Serial3/0
S    192.168.1.0/24 [1/0] via 3.3.3.1
S    192.168.2.0/24 [1/0] via 3.3.3.1
S    192.168.3.0/24 [1/0] via 5.5.5.2
C    192.168.4.0/24 is directly connected, FastEthernet0/0
S    192.168.5.0/24 [1/0] via 5.5.5.2
KONFIGURASI R5
Router>en
Router#conf t
Router(config)#host R5
R5(config)#int fa 0/0
R5(config-if)#ip add 192.168.5.1 255.255.255.0
R5(config-if)#no shut
R5(config-if)#exit
R5(config)#int s3/0
R5(config-if)#ip add 5.5.5.2 255.255.255.0
R5(config-if)#clock rate 9600
R5(config-if)#no shut
R5(config-if)#exit
R5(config)#int s2/0
R5(config-if)#ip add 4.4.4.2 255.255.255.0
R5(config-if)#clock rate 9600
R5(config-if)#no shut
R5(config-if)#exit
R5(config)#ip route 192.168.1.0 255.255.255.0 4.4.4.1
R5(config)#ip route 192.168.2.0 255.255.255.0 4.4.4.1
R5(config)#ip route 192.168.3.0 255.255.255.0 4.4.4.1
R5(config)#ip route 192.168.4.0 255.255.255.0 5.5.5.1
R5(config)#ip route 1.1.1.0 255.255.255.0 4.4.4.1
R5(config)#ip route 2.2.2.0 255.255.255.0 4.4.4.1
R5(config)#ip route 3.3.3.0 255.255.255.0 5.5.5.1
R5(config)#^Z
R5#show ip route
     1.0.0.0/24 is subnetted, 1 subnets
S       1.1.1.0 [1/0] via 4.4.4.1
     2.0.0.0/24 is subnetted, 1 subnets
S       2.2.2.0 [1/0] via 4.4.4.1
     3.0.0.0/24 is subnetted, 1 subnets
S       3.3.3.0 [1/0] via 5.5.5.1
     4.0.0.0/24 is subnetted, 1 subnets
C       4.4.4.0 is directly connected, Serial2/0
     5.0.0.0/24 is subnetted, 1 subnets
C       5.5.5.0 is directly connected, Serial3/0
S    192.168.1.0/24 [1/0] via 4.4.4.1
S    192.168.2.0/24 [1/0] via 4.4.4.1
S    192.168.3.0/24 [1/0] via 4.4.4.1
S    192.168.4.0/24 [1/0] via 5.5.5.1
C    192.168.5.0/24 is directly connected, FastEthernet0/0
PENGUJIAN KONEKSI ANTAR PC
Dari 192.168.1.2 ke 192.168.2.2
Hasil pengujian ke 192.168.2.2
Dari 192.168.1.2 ke 192.168.3.2
Hasil pengujian ke 192.168.3.2
Dari 192.168.1.2 ke 192.168.4.2 dan 192.168.5.2
Hasil pengujian ke 192.168.4.2 dan 192.168.5.2

0 komentar:

Posting Komentar

 
Top