Copy-Pasta / Cisco IOS – SSH/HTTP(S)/SNMPv3 for testing

Quick and dirty – FOR LAB USE ONLY (GNS3 or EVE-NG)

Used for testing on: csr1000v-universalk9-15.4-3S

SSH

enable
conf t
hostname Router1
username admin privilege 15 secret cisco
ip domain-name cisco.com
crypto key generate rsa general-keys modulus 1024
ip ssh version 2
line vty 0 4
 login local
 transport input ssh

!- Setup interface for testing SSH 
interface g1
 ip address 192.168.0.191 255.255.255.0
 no shutdown
 end
copy running-config startup-config

HTTP and HTTPS

conf t
ip http server
ip http secure-server
ip http authentication local
end
copy running-config startup-config

SNMP

snmp-server view TestSNMPv3User_View iso included
snmp-server group TestSNMPv3User_Group  v3 priv write TestSNMPv3User_View 
snmp-server user TestSNMPv3User TestSNMPv3User_Group v3 auth sha P@55w0rd priv aes 256 P@55w0rd

Leave a Reply

Your email address will not be published. Required fields are marked *