Review Configurasi Static Route, RIP V1 Dan RIP V2 Pada GNS3
Review Configurasi Static Route, RIP V1 Dan RIP V2 Pada GNS3
Router R1
Reachability towards 172.16.1.0/24,192.168.1.0/24 and route 192.168.2.0 .
The next-hop router is R2. The same outbound interface is s2/0.
R1>
R1>enable
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 172.16.1.0 255.255.255.0 serial 2/0
R1(config)#ip route 192.168.1.0 255.255.255.0
R1(config)#ip route 192.168.1.0 255.255.255.0 serial 2/0
R1(config)#ip route 192.168.2.0 255.255.255.0 serial 2/0
R2
Router R2
Reachability towards 172.16.3.0/24,192.168.2.0/24 . The next-hop router
R1 outbound interface is s2/0 and R3 outbound interface is s2/1.
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 172.16.3.0 255.255.255.0 serial 2/0
R2(config)#ip route 192.168.2.0 255.255.255.0 serial 2/1
R3
R3#
R3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#ip route 172.16.3.0 255.255.255.0 serial 2/0
R3(config)#ip route 172.16.2.0 255.255.255.0 serial 2/0
R3(config)#ip route 172.16.1.0 255.255.255.0 serial 2/0
Static Route
IP Table
Task 1: Execute basic command in each router: host
name, enable secret, password, login...
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#service password-encryption
R1(config)#exit
Untuk menyimpan configuration gunakan perintah "copy running-config startup-
config"
R1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Untuk Menghapus configurasi "erase startup-config"
R1#erase startup-config
Erasing the nvram filesystem will remove all configuration files! Continue?
[confirm]
[OK]
Task 2: Configure IP for each interface in each
router and PCs
Router R1
Configure ip address for port serial 2/0 and f0/0
R1>enable
Password:
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z
R1(config)#interface serial 0/2
R1(config-if)#ip address 172.16.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastEthernet 0/0
R1(config-if)#ip address 172.16.3.1 255.255.255.0
R1(config-if)#no shutdown
Show result, use command "show ip
interface brief"
Router R2
Configure ip address for interface serial 2/0, serial 2/1 and f0/0
R2>enable
Password:
R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface serial 2/0
R2(config-if)#ip address 172.16.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 172.16.1.1 255.255.255.0
R2(config-if)#no shut
R2(config-if)#exit
R2(config)#interface serial 2/1
R2(config-if)#ip address 192.168.1.1 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no shutdown
R2(config-if)#
r3
R3#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#interface serial 2/0
R3(config-if)#ip address 192.168.1.2 255.255.255.0
R3(config-if)#clock rate 64000
R3(config-if)#no shut
R3(config-if)#exit
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 192.168.2.1 255.255.255.0
R3(config-if)#no shut
Memasukan IP pada VPCS
PC1
PC1> ip 172.16.3.2 255.255.255.0 172.16.3.1
Checking for duplicate address...
PC1 : 172.16.3.2 255.255.255.0 gateway 172.16.3.1
PC2
PC2> ip 172.16.1.2 255.255.255.0 172.16.1.1
Checking for duplicate address...
PC1 : 172.16.1.2 255.255.255.0 gateway 172.16.1.1
PC3
PC3> ip 192.168.2.2 255.255.255.0 192.168.2.1
Checking for duplicate address...
PC1 : 192.168.2.2 255.255.255.0 gateway 192.168.2.1
Task 3: Configure static route
R1#debug ip routing
IP routing debugging is on
Kalau kita salah dalam memasukan konfigurasi
Tidak bisa langsung menindih konfigurasi yang ada
Konfigurasi yang lama harus di hapus dulu dengan perintah
no ip route
Contoh R3(config)#no ip route 172.16.1.0 255.255.255.0 serial 2/0
Untuk menampilkan Ip route kita menggunakan perintah
show ip route
Test konektifitas pada tiap PC
Latihan