Upload
gilang-evandyano
View
218
Download
0
Embed Size (px)
Citation preview
Eksp. Jaringan Komputer | 27
MODUL 05 BASIC ROUTER CONFIGURATION
(STATIC ROUTING & DYNAMIC ROUTING)
TUJUAN
1. Mampu melakukan konfigurasi dasar pada Cisco Router
2. Mampu memberikan password pada Cisco Router
3. Mampu melakukan konfigurasi static route pada Cisco Router
4. Mampu melakukan konfigurasi dynamic route pada Cisco Router
PENDAHULUAN
Rute dapat diperbarui secara manual, atau secara dinamis bereaksi pada saat ada
jaringan yang putus atau peristiwa lain-nya. Beberapa contoh protokol routing dinamik
yang populer ialah RIP, OSPF, BGP, dan OLSR. Dalam praktek kali ini, kita akan membahas
static routing dan dynamic routing versi RIP.
PROSEDUR PRAKTIKUM
Berikut ini topologi yang akan dijadikan materi praktikum :
Eksp. Jaringan Komputer | 28
1. Konfigurasi pada Router-A
Konfigurasi Dasar
PERINTAH KETERANGAN Router>enable Router#configure terminal Router(config)#hostname Router-A Router-A(config)#interface fastEthernet 0/0 Router-A(config-if)#ip address 192.168.1.100 255.255.255.0 Router-A(config-if)#no shutdown Router-A(config)#exit Router-A(config-if)#interface serial 0/0/0 Router-A(config-if)#ip address 192.168.2.1 255.255.255.0 Router-A(config-if)#clock rate 56000 Router-A(config-if)#no shutdown Router-A(config-if)#exit Router-A(config)#exit Router-A#show ip interface brief Interface IP-Address OK? Method Status Protocol FastEthernet0/0 192.168.1.100 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Serial0/0/0 192.168.2.1 YES manual down down Serial0/0/1 unassigned YES unset administratively down down Vlan1 unassigned YES unset administratively down down
Berpindah ke Privileged Exec Masuk Mode Global Configuration Mengganti nama router Masuk Mode Interface Configuration Memberi IP Address Mengaktifkan interface Keluar dari Interface Configuration Masuk Mode Interface Configuration Memberi IP Address Memberikan clock-rate 56Kbps Mengaktifkan interface Keluar dari Interface Configuration Keluar dari Global Configuration Melihat IP Address
Konfigurasi Static Routing
Static Routing ini dilakukan dengan cara mendefinisikan network yang tidak
terhubung langsung dari router yang bersangkutan.
Perintah :
ip route
PERINTAH KETERANGAN Router-A#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 inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set C 192.168.1.0/24 is directly connected, FastEthernet0/0 Router-A#configure terminal Router-A(config)#ip route 192.168.3.0 255.255.255.0 192.168.2.2 Router-A#show ip route .... Gateway of last resort is not set
Melihat Routing Table Masuk Mode Global Configuration Menambah Routing Table Static
Eksp. Jaringan Komputer | 29
C 192.168.1.0/24 is directly connected, FastEthernet0/0
Melihat dan menyimpan konfigurasi keseluruhan
PERINTAH KETERANGAN Router-A#show running-config Building configuration... Current configuration : 644 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router-A ! interface FastEthernet0/0 ip address 192.168.1.100 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 ip address 192.168.2.1 255.255.255.0 clock rate 56000 ! interface Serial0/0/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! ip classless ip route 192.168.3.0 255.255.255.0 192.168.2.2 ! line con 0 line vty 0 4 login ! End Router-A#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK] Router-A#show startup-config Using 644 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router-A ! ! interface FastEthernet0/0 ip address 192.168.1.100 255.255.255.0 duplex auto
Melihat Running-Configuration di RAM Masuk Mode Global Configuration Menambah Routing Table Static Menyimpan konfigurasi ke NVRAM Melihat Startup-Configuration di NVRAM
Eksp. Jaringan Komputer | 30
speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 ip address 192.168.2.1 255.255.255.0 clock rate 56000 ! interface Serial0/0/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! ip classless ip route 192.168.3.0 255.255.255.0 192.168.2.2 ! line con 0 line vty 0 4 login ! end
2. Konfigurasi pada Router-B
PERINTAH KETERANGAN Router-B#show startup-config Using 626 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router-B ! interface FastEthernet0/0 ip address 192.168.3.100 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0/0 ip address 192.168.2.2 255.255.255.0 ! interface Serial0/0/1 no ip address shutdown ! interface Vlan1 no ip address shutdown ! ip classless
Eksp. Jaringan Komputer | 31
ip route 192.168.1.0 255.255.255.0 192.168.2.1 ! line con 0 line vty 0 4 login ! end
3. Menghapus Konfigurasi yang salah
Menghapus konfigurasi / perintah yang salah dengan menggunakan :
no .
Contoh untuk menghapus IP Address :
Router-A(config-if)#no ip address 192.168.1.100 255.255.255.0
4. Konfigurasi Dynamic Routing
Dynamic Routing ini dilakukan dengan cara mendefinisikan network yang terhubung
langsung dengan router yang bersangkutan.
Perintah :
router rip
version 2
Network
exit
PERINTAH KETERANGAN Router-A(config)#router rip Router-A(config-router)#version 2 Router-A(config-router)#network 192.168.1.0 Router-A(config-router)#network 192.168.2.0 Router-A(config-router)#exit Router-B(config)#router rip Router-B(config-router)#version 2 Router-B(config-router)#network 192.168.2.0 Router-B(config-router)#network 192.168.3.0 Router-B(config-router)#exit
Konfigurasi dynamic routing pada Router-A Konfigurasi dynamic routing pada Router-B