Automation, Initial Configuration

 



Pertama-tama kita buat SSH agar ubuntu bisa mengakses router lewat SSH.

R1:
R1(config)#interface f0/0  
R1(config-if)#ip add 192.168.10.2 255.255.255.0  
R1(config-if)#no shutdown  
R1(config-if)#exit  
R1(config)#ip domain-name fairuzharits.com
R1(config)#username adib privilege 15 secret adibnk11
R1(config)#crypto key generate rsa modulus 1024  
R1(config)#line vty 0 4  
R1(config-line)#transport input ssh  
R1(config-line)#login local  

Namun, kita tambahkan IP dulu di ubuntu

root@NetworkAutomation-1:~# ifconfig eth0 192.168.10.1 netmask 
255.255.255.0 
root@NetworkAutomation-1:~# ifconfig  eth0 Link 
encap:Ethernet HWaddr da:f2:40:f4:fd:c0 inet addr:192.168.10.1 Bcast:192.168.10.255 Mask:255.255.255.0   

Jika sudah coba tes ping dari Ubuntu ke Router, pastikan reply.

Jika sudah reply kita coba lakukan SSH ke router.

root@NetworkAutomation-1:~# ssh cisco@192.168.10.2  
The authenticity of host '192.168.10.2 (192.168.10.2)' can't be established. RSA key fingerprint is SHA256:OD8L7HJtKz59WwuaaZL4qoxdkcsv6NEbhP+f6vlSfYo. 
Are you sure you want to continue connecting (yes/no)? yes  
Warning: Permanently added '192.168.10.2' (RSA) to the list of known hosts.   
Password:   
  
R1#  

Pastikan berhasil

Komentar

Postingan populer dari blog ini

LAB 11. BGP Dual Homing – ISP sama