Kita gunakan topologi yang mudah saja seperti dibawah ini
Kemidian kita Setting ip dhcp pada router nya dengan command seperti berikut
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add
Router(config-if)#ip address 192.168.100.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#ip dhcp pool davidsmk
Router(dhcp-config)#network 192.168.100.0 255.255.255.0
Router(dhcp-config)#def
Router(dhcp-config)#default-router 192.168.100.1
Router(dhcp-config)#dn
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#exit
Router(config)#do wr
Building configuration...
[OK]
Router(config)#
Kemudian kita cek pada pc dengan cara msuk di pc-desktop-ip configuration-dhcp
Kemudian kita setting keamanan dasarnya dulu seperti berikut, baru kita setting ssh nya dengan comment berikut
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#username david password 12345
Router(config)#line console 0
Router(config-line)#login local
Router(config-line)#exit
Router(config)#line vty 0 15
Router(config-line)#password 12345
Router(config-line)#login
Router(config-line)#exit
Router(config)#enable secr
Router(config)#enable secret 12345
Router(config)#service pass
Router(config)#service password-encryption
Kemudian kita set ssh nya dimulai dari command berikut :
Router(config)#hostname david
david(config)#ip domain-name david.net
david(config)#crypto key generate rsa
The name for the keys will be: david.david.net
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
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
david(config)#ip ssh version 2
*Mar 1 0:11:49.178: %SSH-5-ENABLED: SSH 1.99 has been enabled
david(config)#line vty 0 15
david(config-line)#transport input ssh
david(config-line)#password 12345
david(config-line)#login
david(config-line)#exit
david(config)#do wr
Building configuration...
[OK]
david(config)#
jangan lupa menuliskan write agar command kalian tidak terhapus ketika kita startup
Kemudian kita cek dengan cara masuk PC seperti berikut
SEKIAN TERIMA KASIH SEMOGA BERMANFAAT
BY : DAVID SEPTIANO RONALDO
0 komentar:
Posting Komentar