Anda di halaman 1dari 46

Pengenalan

Konfigurasi Router

Triastana Anang Wibawa, ST, MT

13-Dec-16 Politeknik Negeri Malang 1


Tujuan
mahasiswa dapat menjelaskan cara-cara
penggunaan dan konfigurasi dasar router

13-Dec-16 2
Topics
Cisco Internetwork Operating System (IOS).
Mode IOS
Struktur Perintah Dasar IOS
File Konfigurasi
Pengetesan Konektivitas Jaringan

13-Dec-16 3
S Ward Abingdon and Witney College CCNA Exploration Semester 1
IOS (Internetwork Operating System)
Semua perangkat Cisco menggunakan
Cisco IOS.
Detil mungkin berbeda beda tergantung
perangkat dan fiturnya
Akses normal melalui command line
IOS Disimpan di flash memory dan bisa
diupgrade.
Dijalankan dalam RAM.

13-Dec-16 4
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Akses ke interface
Console port melalui serial connection
Initial configuration
Telnet, SSH, Aux
Konfigurasi berikutnya melalui Telnet
IP address harus dikonfigurasi
Password harus dikonfigurasi
Secure shell memberikan keamanan tambahan

13-Dec-16 5
S Ward Abingdon and Witney College CCNA Exploration Semester 1
File Konfigurasi
Menyimpan perintah yang sudah
dikonfigurasi di router
Running configuration di RAM menyimpan
perintah yang sekarang dijalankan
Startup configuration di NVRAM menyimpan
saved commands.

13-Dec-16 6
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Router storage areas
ROM Flash
Permanen Menyimpan IOS image
POST, instruksi boot, System files
limited IOS

NVRAM RAM
Startup configuration Volatile
file runnning config, tables,
queues etc

13-Dec-16 7
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Mode IOS

User EXEC mode


enable disable
+ password
Privileged EXEC mode
Configure terminal Exit or Ctrl+z
Global Configuration mode
Various commands Exit End
Specific Configuration modes
13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester
8 1
Router prompts

User EXEC mode Router>

Privileged EXEC mode Router#

Global Configuration mode Router(config)#

Router(config-if)#
Specific Configuration modes and others
13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester
9 1
Router prompts

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


10 1
Struktur Command

Diakhiri dengan <Enter>

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


11 1
? Untuk mengeluarkan Help
? Memberikan list dari commands yang
tersedia di prompt saat ini.
Command diikuti dengan space lalu ?
memberikan daftar keywords/arguments
yang bisa digunakan.
Prefix command diikuti dengan ? / <tab>
tanpa space menunjukkan daftar command
dengan prefix tersebut

13-Dec-16 12
S Ward Abingdon and Witney College CCNA Exploration Semester 1
? Untuk mengeluarkan Help

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


13 1
Command yang dipersingkat
Router#show running-config
Router#show run
Router#sh ru
Diperlukan prefix huruf supaya tidak terjadi
ambigu. (<Tab> menunjukkan keseluruhan
kata command)
Router#s ru
% Ambiguous command: s

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


14 1
Command yang dipersingkat

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


15 1
Error messages
Switch#clock set
% Incomplete command

Switch#clock set 19:50:00 25 6


% Invalid input detected at ^ marker
^

Router#show runming-config
% Invalid input detected at ^ marker
^

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


16 1
Keyboard shortcuts
Tab melengkapi prefix command
Backspace menghapus 1 karakter ke kiri
Ctrl+D menghapus di cursor
Ctrl+Z kembali ke privileged exec mode
dari config mode apapun
Ctrl+C keluar dari Setup mode

13-Dec-16 17
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Show
show commands menghasilkan informasi
dari router dan operasinya
Show running-config menunjukkan file
konfigurasi yang ada di RAM
Show startup-config menunjukkan file
konfigurasi yang ada di NVRAM
Show version memberikan informasi tentang
IOS dan router

13-Dec-16 18
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Show

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


19 1
Show interfaces
Menunjukkan statistic di tiap interface dan
statusnya
Show interfaces serial 0/0
untuk menunjukkan selected interface
show int s 0/0
disingkat
Show ip interface menunjukkan IP statistics

13-Dec-16 20
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Show interfaces

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


21 1
Save configuration
Router#copy running-config startup-
config
Router#copy run start (shortened)
Router#wr (Cara lama, singkatan dari
write, bisa dan aman juga digunakan)

13-Dec-16 22
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Hostname
Router>enable
Router#config t
Router(config)#hostname Paris
Paris(config)#

Melakukan setting hostname sebagai


pengenal berikutnya

13-Dec-16 23
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Console password
Paris(config)#line con 0
Paris(config-line)#password cisco
Paris(config-line)#login
Paris(config-line)#exit

Membatasi akses melalui console


Gunakan password yang aman untuk
network production

13-Dec-16 24
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Vty password for Telnet
Paris(config)#line vty 0 4
Paris(config-line)#password cisco
Paris(config-line)#login
Paris(config-line)#exit

Memungkinkan akses melalui 5 vty lines


Gunakan password yang aman untuk
network production

13-Dec-16 25
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Enable and enable secret
Paris(config)#enable password cisco
Tidak dienkripsi

Paris(config)#enable secret class


password class dibutuhkan ketika command
enable untuk memasuki privileged exec mode
password di enkripsi
Bila dua2nya dikonfigurasi, hanya enable secret
yang digunakan

13-Dec-16 26
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Message of the day
Paris(config)#banner motd # No
unauthorised access #

# adalah delimiter untuk menunjukkan awal dan


akhir dari string pesan
Pesan biasanya untuk mengingatkan bahwa
penggunaan secara tidak sah, dilarang.

13-Dec-16 27
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Message of the day

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


28 1
Reload
Mematikan router dan melakukan start
ulang.
Bila konfigurasi berubah, anda akan diminta
konfirmasi untuk menyimpan terlebih dahulu.
running configuration di RAM akan hilang.
startup configuration di NVRAM akan di load
ke dalam RAM saat startup.

13-Dec-16 29
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Back up ke TFTP server
Paris#copy running-config tftp
Remote host []? 172.16.1.1
Name of configuration file to write [Paris-
config]? Paris12Oct16
Write file Paris12Oct16 to 172.16.1.1?
[confirm] y
Writing Paris12Oct16 ! ! ! ! ! ! [OK]

13-Dec-16 30
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Restore file dari TFTP server
Router#copy tftp running-config
Anda akan diminta alamat IP address dan file
name.
Konfigurasi disalin ke RAM dan berlaku saat itu
juga.
Disimpan ke NVRAM.

13-Dec-16 31
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Putty text file
Putty adalah freeware Telnet client yang
paling populer
Bisa digunakan juga sebagai SSH client
Bisa melakukan capture text dan
menyimpannya di file.

13-Dec-16 32
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Menghapus startup configuration
Paris#erase NVRAM:startup-config
Paris#erase startup-config
Paris#erase start
Ketika reload berikutnya, router akan start up
dengan default konfigurasi. Tanpa passwords,
tanpa IP addresses.

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


33 1
Konfigurasi router interface
Paris(config)#interface FastEthernet 0/0
Paris(config-if)#ip address 172.16.1.1
255.255.0.0
Paris(config-if)#no shutdown
Paris(config-if)#exit
Interface name bisa bermacam-macam,
tergantung apakah router modular dan
bandwithnya
E.g. interface Ethernet 0 untuk older router

13-Dec-16 34
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Konfigurasi router interface
Paris(config)#interface serial 0/0
Paris(config-if)#ip address 192.168.4.1
255.255.255.0
(Paris(config-if)#clock rate 64000)
Paris(config-if)#no shutdown
Paris(config-if)#exit DCE only

13-Dec-16 35
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Description
Paris(config)#interface fa0/0
Paris(config-if)#description Connects to
Paris central switch

Bisa berisi arah koneksi dan kontak


Jarang digunakan untuk operation
Bermanfaat untuk dokumentasi, muncul di
show configuration

13-Dec-16 36
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Switch interfaces
Switch physical interfaces tidak memiliki IP
addresses
Active secara default dan tidak
membutuhkan command no shutdown.
Bisa ditambahkan deskripsi.

13-Dec-16 37
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Switch IP address
switch IP address digunakan di virtual
interface, misalnya VLAN1.

SwA(config)#interface VLAN1
SwA(config-if)#ip address 172.16.255.1
255.255.0.0
SwA(config-if)#no shutdown
SwA(config-if)#exit

13-Dec-16 38
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Switch default gateway
SwA(config)#ip default gateway
172.16.255.254

Seperti juga workstation, switch


membutuhkan default gateway bila
mengirimkan message ke network yang
berbeda
default gateway adalah alamat dari local
router.

13-Dec-16 39
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Interface show commands
show interfaces memberikan informasi
up/down, memberikan informasi protocol dan
statistics dari interface.
show ip interface memberikan informasi IP
addresses dan informasi tambahan lain.
show ip interface brief memberikan
informasi IP addresses dan up/down

13-Dec-16 40
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Interface show commands

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester


41 1
Up / down
Interface status: Layer 1
Up
Down
Administratively down (no shutdown untuk
membuat up)
Protocol: Layer 2
Up
Down (tidak ada keepalive signal yang diterima)

13-Dec-16 42
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Ping step by step
Ping 127.0.0.1 (loopback, apakah TCP/IP
OK?)
Ping lokal IP address (apakah NIC hardware
dan driver bisa bekerja?)
Ping gateway
Ping intermediate routers
Ping hosts di remote networks

13-Dec-16 43
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Informasi tentang nodes
Ping digunakan melalui host, router/switch
menunjukkan tujuan bisa dikontak
Traceroute menunjukkan rute hop ke
tujuan
Arp -a di host menunjukkan list dari MAC
dan IP address
show mac-address-table - di switch
menunjukkan list dari MAC addresses dan
switch ports

13-Dec-16 44
S Ward Abingdon and Witney College CCNA Exploration Semester 1
Selesai

13-Dec-16 S Ward Abingdon and Witney College CCNA Exploration Semester 1 45


Network baseline
Mengukur dan menyimpan performansi
jaringan
di waktu-waktu yang berbeda
di beberapa kondisi
Berulang di periode waktu
Menyusun record dari performansi jaringan
Berguna saat troubleshooting dan
melakukan optimasi terhadap jaringan
Berguna untuk memprediksi masalah
Berguna untuk planning

13-Dec-16 46
S Ward Abingdon and Witney College CCNA Exploration Semester 1

Anda mungkin juga menyukai