System information

Cisco IOS system information commands

show version                 # Software & hardware information
show running-config          # Current configuration
show startup-config          # Boot configuration
show history                 # Command history buffer
show ip interface brief      # Interface overview
show interface $TYPE $NUM    # Detailed interface information
show interfaces description  # Interface descriptions
show interfaces status       # Status of all interfaces
show crypto key mypubkey rsa # Current SSH public key
show dhcp lease              # Current DHCP status/information
Link to original

Configuration

config           # General configuration mode
config interface # Interface configuration mode
config line      # Serial console configuration mode

General configuration

Cisco IOS general configuration commands

config                             # Enter general configuration mode
hostname $HOSTNAME                 # Set switch hostname
enable secret $MD5_PASS            # Set password using MD5 hash 
enable password $PASSWORD          # Set password using clear text
banner motd $BANNER                # Set login banner (use "$" like "EOF")
ip default-gateway $IP_ADDRESS     # Set default gateway
copy running-config startup-config # Persiste current config
Link to original

Interface configuration

Cisco IOS interface configuration commands

# Configure network interface
#
config
interface $IFACE_TYPE $IFACE_NUM
ip address $IP_ADDRESS $NETMASK
Link to original

Line (login) configuration

Cisco IOS line (login) configuration commands

# Configure console port
#
config
line con 0
password $PASSWORD
login
 
# Configure terminal connections
#
config
line vty 0 $VTTY_NUM
password $PASSWORD
login
Link to original