A Few Easy Steps: Cisco IOS, Setup for Automation

In this session of A Few Easy Steps, we will be doing the initial setup for automation on a Cisco IOS Device. In General this will work on any Cisco IOS Device.  Session Prerequisites:

  • You have a Cisco Console Cable
  • You have a serial port
  • You have a Terminal Program that you can access your Serial Port

Session Assumptions:

  • Hostname is already set
  • Domain name is:  SPC.DEV
  • RSA modulus is  1024 bits
  • Our Admin interface is:  FA0/0
  • The Interface has already had its IP Address assigned
  • Enable Password is: password
  • Username is : pytest
  • Password is:  pytest
  • We are using VTY ports 0-5

Our goals of this session are:

  • Setup IP Domain Name
  • Create RSA key for SSH
  • Set Enable Password
  • Setup Username
  • Setup Password
  • Turn interface FA0/0 on
  • Enable SSH on VTY 0-5
  • Set Login to Local Authentication

Set Domain Name:

conf t
!
ip domain name test.dev
!
exit
!
copy running-config startup-config

Create RSA Key for SSH:

conf t
!
crypto key generate rsa general-keys modulus 1024
!
exit
!
copy running-config startup-config

Set Enable Password:

conf t
!
enable password password
!
exit
!
copy running-config startup-config

Set Username and Password:

conf t
!
username pytest password pytest
!
exit
!
copy running-config startup-config

 

Turn Interface FA0/0 on:

conf t
!
interface fe0/0
!
no shut
!
exit
!
copy running-config startup-config

Enable SSH on VTY 0-5:

conf t
!
line vty 0 5
!
transport input ssh
!
transport output ssh
!
exit
!
copy running-config startup-config

Enable local login on VTY 0-5:

conf t
!
line vty 0 5
!
login local
!
exit
!
copy running-config startup-config

 

Entire Session:

conf t
!
ip domain name test.dev
!
crypto key generate rsa general-keys modulus 1024
! 
enable password password
!
username pytest password pytest
!
interface fe0/0
!
no shut
!
exit
!
!
line vty 0 5
!
transport input ssh
!
transport output ssh
!
login local
!
exit
! 
copy running-config startup-config


 

One comment

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.