CISCO / BushNET Quick Reference Card

Quick reference for common commands on the CISCO / BushNET.

Console Connection Settings

Parameter Value
Baud Rate 9600
Data Bits 8
Parity None
Stop Bits 1
Flow Control None

Command Mode Navigation

Command Action
enable Enter privileged mode
disable Return to user mode
configure terminal Enter config mode
exit Exit current mode
end Return to privileged mode
Ctrl+Z Return to privileged mode

Essential Show Commands

Command Description
show version System info, uptime, IOS version
show running-config Current configuration
show startup-config Saved configuration
show interfaces status All interface status summary
show ip interface brief IP address summary
show vlan brief VLAN summary
show mac address-table MAC address table
show spanning-tree STP status
show cdp neighbors Connected Cisco devices
show log System log
show environment all Temperature, power status
show inventory Hardware inventory

Interface Commands

View Interface Status

show interfaces status
show interfaces GigabitEthernet1/1
show interfaces trunk

Configure Access Port

interface GigabitEthernet1/1
 switchport mode access
 switchport access vlan 10
 spanning-tree portfast
 no shutdown

Configure Trunk Port

interface GigabitEthernet1/9
 switchport trunk encapsulation dot1q
 switchport mode trunk
 switchport trunk native vlan 99
 switchport trunk allowed vlan 10,20,30
 no shutdown

Shutdown/Enable Interface

interface GigabitEthernet1/1
 shutdown           ! Disable
 no shutdown        ! Enable

VLAN Commands

Create VLAN

vlan 10
 name Production

View VLANs

show vlan brief
show vlan id 10

Delete VLAN

no vlan 10

IP Configuration

Management IP (SVI)

interface Vlan100
 ip address 192.168.1.10 255.255.255.0
 no shutdown

Default Gateway

ip default-gateway 192.168.1.1

Security Quick Setup

Local User

username admin privilege 15 secret MyPassword123!

Console Security

line console 0
 login local
 exec-timeout 10 0

SSH Setup

ip domain-name company.local
crypto key generate rsa modulus 2048
ip ssh version 2

line vty 0 15
 transport input ssh
 login local

Port Security

interface GigabitEthernet1/1
 switchport port-security
 switchport port-security maximum 2
 switchport port-security violation restrict
 switchport port-security mac-address sticky

Save & Backup

Command Description
write memory Save running to startup
copy run start Save running to startup
copy run tftp Backup to TFTP server
copy tftp run Restore from TFTP
write erase Erase startup config
reload Reboot switch

Troubleshooting

Clear Commands

clear mac address-table dynamic
clear counters
clear logging
clear port-security all

Debug (use carefully)

debug spanning-tree events
debug ip packet
undebug all

Reset Interface

interface GigabitEthernet1/1
 shutdown
 no shutdown

Reset Port Security Violation

interface GigabitEthernet1/1
 shutdown
 no shutdown

Output Filtering

Filter Example
| include show run \| include interface
| exclude show run \| exclude !
| section show run \| section vlan
| begin show run \| begin line

Disable Paging

terminal length 0

Useful Shortcuts

Shortcut Full Command
conf t configure terminal
sh run show running-config
sh int show interfaces
sh ip int br show ip interface brief
sh vlan br show vlan brief
sh mac add show mac address-table
sh cdp nei show cdp neighbors
sh span show spanning-tree
wr write memory
no sh no shutdown

Keyboard Shortcuts

Keys Action
Tab Complete command
? Show available commands
Ctrl+A Move to beginning of line
Ctrl+E Move to end of line
Ctrl+C Cancel current command
Ctrl+Z Exit to privileged mode
Up Arrow Previous command
Down Arrow Next command
Ctrl+Shift+6 Interrupt (ping, trace)

Default Values

Parameter Default
Native VLAN 1
Default VLAN 1
STP Mode RPVST+
Port Speed Auto
Port Duplex Auto
Console Timeout 10 minutes
VTY Timeout 10 minutes
Logging Level Informational

Common Port Numbers

Service Port
Telnet 23
SSH 22
HTTP 80
HTTPS 443
TFTP 69
SNMP 161/162
Syslog 514
NTP 123