top of page

BELAJAR NETWORK BERSAMA

CISCO Telnet and SSH to Switch

Pada bab ini, kita akan membuat lab Telnet dan SSH ke switch menggunakan laptop, jadi apabila kita ingin mengkonfigurasi switch tersebut, maka kita tinggal menggunakan laptop.


Buatlah topologi seperti dibawah ini.

TELNET


Cara untuk memberi laptop akses telnet menuju switch, caranya seperti dibawah ini.

Switch(config)#int fa0/1
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config-if)#int vlan 10
Switch(config-if)#ip add
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#username hunter password 123
Switch(config)#enable secret 456
Switch(config)#line vty 0 3
Switch(config-line)#login local
Switch(config-line)#exit

- Perintah pada baris ketiga langsung mengetikkan 'switchport access vlan 10' agar lebih menghemat waktu, tanpa menambahkan vLAN satu per satu.

- vty adalah jumlah user yang dapat login secara bersamaan, apabila kita mengetikkan 0 3, maka hanya 4 orang yang dapat login secara bersamaan, apabila kita hanya mengetikkan 0, maka hanya ada 1 orang yang boleh login kedalam switch.


Setelah itu, berilah IP, subnet, dan gateway yang sesuai untuk laptop (IP 10.10.10.2, subnet 255.255.255.0, gateway 10.10.10.1). Lalu, lakukan Telnet menuju IP switch.


SSH

Cara untuk memberi laptop akses telnet menuju switch, caranya seperti dibawah ini.

Switch(config)#int fa0/1
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int vlan 10
Switch(config-if)#ip address 10.10.10.1 255.255.255.0
Switch(config-if)#exit
Switch(config)#username hunter password 123
Switch(config)#ip domain-name hunter.com
Switch(config)#crypto key generate rsa 
% Please define a hostname other than Switch. <--wajib hostname baru
Switch(config)#hostname Rimuru
Rimuru(config)#crypto key generate rsa 
The name for the keys will be: Rimuru.rimuru
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]:  <--tekan enter
% Generating 512 bit RSA keys, keys will be non-exportable...[OK]

Rimuru(config)#line vty 0 1
Rimuru(config-line)#login local 

Setelah itu, berilah IP, subnet, dan gateway yang sesuai untuk laptop (IP 10.10.10.2, subnet 255.255.255.0, gateway 10.10.10.1). Lalu, lakukan SSH menuju IP switch.

21 views0 comments

Recent Posts

See All

Comentários


bottom of page