Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
Masuk mode global config:
#Router>en
#Router#conf t
#Enter configuration commands, one per line. End with CNTL/Z.
#Router(config)#
Beri perintah untuk mengeksekusi perinah yang dikenali saja
RT-O(config)#no ip domain-lookup
Buat Hostname dan username dan password untuk console 0
#Router(config)#hostname Ahmad
#Ahmad(config)#username upin secret cisco
#Ahmad(config)#line console 0
#Ahmad(config-line)#login local
#Ahmad(config-line)#password cisco
#Ahmad(config-line)#exit
Simpan konfigurasi
#Ahmad(config)#do write
Building configuration...
[OK]
#Ahmad(config)#
TELNET
=======================================================================
Melanjutkan konfigurasi di atas
Buat IP pada port dan hidupkan port
#Ahmad(config)#int g0/0/1
#Ahmad(config-if)#ip address 192.168.1.1 255.255.255.0
#Ahmad(config-if)#no shutdown
#Ahmad(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0/1, [changed state to up/link ini sudah aktif]
#Ahmad(config-if)#exit
Buat line vty 04
#Ahmad(config)#line vty 0 4
#Ahmad(config-line)#login local (karena sudah buat username dan password jadi lebih aman)
#Ahmad(config-line)#password cisco
#Ahmad(config-line)#exi
Masuk ke comand promt pc
Cisco Packet Tracer PC Command Line 1.0
C:\>telnet 192.168.1.1
Trying 192.168.1.1 ...Open
User Access Verification
Username: upin
Password: (password tersembunyi)
#Ahmad>en
% No password set.
#Ahmad>
Buat secret untuk mengamankan previledge
#Ahmad(config)#ena sec cisco
SSH
=======================================================================
SSH punya syarat untuk bisa digunakan:
- hotsname tidak boleh default
- ada domain name
- authentication menggunakan username & password
- ubah jalur telnet akan menjadi ssh
- generate crypto key
karena kia sudah membuat hostname, username password
kita tinggal buat ip domain, generate crypto key, ubah jalur telnet ke ssh...
#Ahmad(config)#ip domain-name Bestpath-Network.com
#Ahmad(config)#crypto key generate rsa
The name for the keys will be: RT-O.Bestpath-Network.com
Choose the size of the key
modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 1024/512 (hanya beda versi)
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
#Ahmad(config)#
*Mar 1 0:28:2.789: %SSH-5-ENABLED: SSH 1.99 has been enabled
#Ahmad(config)#
#Ahmad(config)#line vty 0 4
#Ahmad(config-line)#transport input ssh
#Ahmad(config-line)#exi
#Ahmad(config)#
Tampilan komfigurasi menggunakan telnet
Tampilan konfigurasi menggunakan ssh
Selesai sudah kita mengkonfigurasi ssh dan telnet semoga bermanfaat:)
TEMUAN MASALAH SERTA PENYELESAIANNYA
Permasalahan: username dan password tidak mau berjalan untuk semua konfigurasi line, jika telah digunakan di line consol tidak mau jalan di line vty.
Solusi: buat username dan password sekali lagi
Baiklah , sekian pembahasan pada Blog kali ini, jika ada kesilapan mohon maaf
Wassalamu'alaikum Wr.Wb :)