Cisco Commands Cheat Sheet (2024)

Cisco IOS is the backbone software that powers many of Cisco's network devices. For professionals working with these systems, knowing the right commands is crucial.

This article provides a Cisco commands cheat sheet, outlining the most common Cisco IOS commands for configuring, securing and troubleshooting Cisco network equipment. It includes the list of Cisco switch commands, a Cisco router commands list and Cisco network commands. Being familiar with the basic Cisco console commands will aid network administrators in managing Cisco devices efficiently and in line with best practices.

Cisco IOS has several command modes that fall into further categories such as operational and configuration. Each mode serves a slightly unique purpose. For instance, Setup Mode provides the user with an interactive menu guide the user to create an initial configuration file for the device.

Mode Control Commands

Command

Description

enableMoves a userfrom user exec modeinto Privileged EXEC mode. Privileged exec mode is indicated by the # symbol in the command prompt.
configure terminalLogsthe user into Global Configuration mode
interfacefastethernet/numberEnters interface configuration mode for the specified fast ethernet interface

Basic Configuration Commands List

reloadReboots the Cisco switch or router
hostnamenameSets a host name to the current Cisco network device
copyfrom-location to-locationCopies files from one file location to another
copy running-config startup-configReplaces the startup configwith the active configwhen the Cisco network device initializes
copy startup-config running-configMerges the startup config with the currently active config in RAM
write erase
erase startup-config
Deletes the startup config
ip addressip-address maskAssignsthe specified IP address and subnet mask
shutdown
no shutdown
Shuts the interface down (shutdown) orbrings it up (no shutdown)
ip default-gatewayip_addressSets the default gateway onthe Cisco device
show running-configDisplays the current configuration of the device
show startup-configDisplays the saved configuration stored in the device's NVRAM, which will be loaded when the device starts up
descriptionstringAssigns the specified description to an interface
show running-configinterfaceinterface slot/numberDisplays the running configuration forthe specified interface
show ip interface[type number]Displays the status of a network interface as well as a detailed listing of its IP configurations and related characteristics.
ip name-serverserverip-1 serverip-2Sets the IP address of or more DNS servers that the device can use to resolve hostnames to IP addresses.

Troubleshooting Cisco Commands List

ping{hostname|system-address} [sourcesource-address]Used to diagnose basic network connectivity
speed{10 | 100 | 1000 | auto}Either configures the transmission speed of a network interface to the specified value in megabits per second (Mbps), or enables automatic speed detection for the port
duplex{auto | full | half}Sets duplex to half, full or auto
cdp run
no cdp run
Enables or disables Cisco Discovery Protocol (CDP) for the device
show mac address-tableDisplays the MAC address table
show cdpShows whether CDP is enabled globally
show cdp neighbors[detail]Lists summary (or detailed) information about each neighbor connected to the device
show interfacesDisplays detailed information about interface status, settings and counters
show interface statusDisplays the interface line status
show interfaces switchportDisplays many configuration settings and current operational status, including VLAN trunking details
show interfaces trunkLists information about the currently operational trunks and the VLANs supported by those trunks
show vlan
show vlan brief
Lists each VLAN and all interfaces assigned to that VLAN but does not include trunks
show vtp statusLists the current VLAN Trunk Protocol (VTP) status, including the current mode

Routing and VLAN Commands

show ip routeDisplays the current state of the IP routing of all known routes that are either statically configured or learned dynamically through a routing protocol
ip route network-number network-mask {ip-address | interface}Sets a static route in the IP routing table
router ripEnables a Routing Information Protocol (RIP) routing process, which places you in router configuration mode
networkip-addressAssociates a network with a RIP routing process
version 2Configures the software to receive and send only RIP version 2 packets
no auto-summaryDisables automatic summarization
default-information originateGenerates a default route into RIP
passive-interfaceinterfaceSets the specified interface to passive RIP mode, which means RIP routing updates are accepted by, but not sent out of, the interface
show ip rip databaseDisplays the contents of the RIP routing database
ip nat[inside|outside]Configure Network Address Translation (NAT), which allows private IP addresses on a local network to be translated into public IP addresses before being sent over the internet
ip nat inside source{list{access-list-number|access-list-name}}interfacetype number[overload]Establishes dynamic source translation. Use of the“list”keyword enables you to use an ACL to identify the traffic that will be subject to NAT. The“overload”option enables the router to use one global address for many local addresses.
ip nat inside source staticlocal-ip global-ipEstablishes a static translation between an inside local address and an inside global address
vlanCreates a VLAN and enters VLAN configuration mode for further definitions
switchport access vlanSets the VLAN that the interface belongs to.
switchport trunk encapsulation dot1qSpecifies 802.1Q encapsulation on the trunk link.
switchport accessConfigures a specific Ethernet port on a switch to operate in access mode to accommodate an end device such as a computer, server or printer. The port must then be assigned to a single VLAN.
vlanvlan-id[name vlan-name]Configures a specific VLAN name (1 to 32 characters)
switchport mode{ access | trunk}Configures the VLAN membership mode of a port. The access port is set to access unconditionally and operates as a non-trunking, single VLAN interface that sends and receives non-encapsulated (non-tagged) frames. An access port can be assigned to only one VLAN. The trunk port sends and receives encapsulated (tagged) frames that identify the VLAN of origination. A trunk is a point-to-point link between two switches or between a switch and a router.
switchport trunk{encapsulation { dot1q }Sets the trunk characteristics when the interface is in trunking mode. In this mode, the switch supports simultaneous tagged and untagged traffic on a port.
encapsulation dot1qvlan-idDefines the matching criteria to map 802.1Q frames ingress on an interface to the appropriate service instance
show spanning-treeProvides detailed information about the Spanning Tree protocol for all VLANs

DHCP Commands

ip address dhcpAcquires an IP address on an interface via DHCP
ip dhcp poolnameUsed to configure a DHCP address pool on a DHCP server and enter DHCP pool configuration mode
domain-namedomainSpecifies the domain name for a DHCP client
networknetwork-number[mask]Configures the network number and mask for a DHCP address pool primary or secondary subnet on a Cisco IOS DHCP server
ip dhcp excluded-addressip-address[last-ip-address]Specifies IP addresses that a DHCP server should not assign to DHCP clients
ip helper-addressaddressEnables forwarding of UDP broadcasts, including BOOTP, received on an interface
default-routeraddress[address2 ... address8]Specifies the default routers for a DHCP client

Security Commands

password pass-valueLists the password that is required if thelogincommand (with no other parameters) is configured
usernamenamepasswordpass-valueDefines one of possibly multiple user names and associated passwords used for user authentication. It is used when thelogin localline configuration command has been used
enable passwordpass-valueDefines the password required when using theenablecommand
enable secret pass-valueSets the password required for any user to enter enable mode
service password-encryptionDirects the Cisco IOS software to encrypt the passwords, CHAP secrets and similar data saved in its configuration file
ip domain-namenameConfigures a DNS domain name
crypto key generate rsaCreates and stores (in a hidden location in flash memory) the keys that are required by SSH
transport input{telnet | ssh}Defines whether Telnet or SSH access is allowed into this switch. Both values can be specified in a single command to allow both Telnet and SSH access (default settings)
access-listaccess-list-number{deny | permit}source[source-wildcard] [log]Defines a standard IP access list
access-classRestricts incoming and outgoing connections between a particular VTY (into a basic Cisco device) and the addresses in an access list
ip access-list{standard|extended} {access-list-name|access-list-number}Defines an IP access list by name or number
permitsource[source-wildcard]Allows a packet to pass a named IP ACL. To remove a permit condition from an ACL, use the“no”form of this command.
denysource[source-wildcard]Used to set conditions in a named IP ACL that will deny packets. To remove a deny condition from an ACL, use the“no”form of this command.
ntp peer<ip-address>Configures the software clock to synchronize a peer or to be synchronized by a peer
switchport port-securityEnables port security on the interface
switchport port-security maximummaximumSets the maximum number of secure MAC addresses on the port
switchport port-security mac-address{mac-addr| {sticky [mac-addr]}}
Adds a MAC address to the list of secure MAC addresses. The “sticky” option configures the MAC addresses as sticky on the interface
switchport port-security violation{shutdown|restrict|protect}Sets the action to be taken when a security violation is detected
show port security[interface interface-id]Displays information about security options configured on the interface

Monitoring and Logging Commands

loggingip addressConfigures the IP address of the host that will receive the system logging (syslog) messages
logging traplevelUsed to limit messages that are logged to the syslog servers based on severity. Specify the number or name of the desired severity level at which messages should be logged
show loggingDisplays the state of system logging (syslog) and the contents of the standard system logging buffer
terminal monitorSends a copy of all syslog messages, including debug messages, to the Telnet or SSH user who issues this command
Cisco Commands Cheat Sheet (2024)
Top Articles
What Is Behavioral Financial Advice? Here’s Your Guide | think2perform
What is Dyadic Developmental Psychotherapy (DDP)? | Top Doctors
Katie Pavlich Bikini Photos
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Selly Medaline
Latest Posts
Article information

Author: Msgr. Refugio Daniel

Last Updated:

Views: 6411

Rating: 4.3 / 5 (74 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Msgr. Refugio Daniel

Birthday: 1999-09-15

Address: 8416 Beatty Center, Derekfort, VA 72092-0500

Phone: +6838967160603

Job: Mining Executive

Hobby: Woodworking, Knitting, Fishing, Coffee roasting, Kayaking, Horseback riding, Kite flying

Introduction: My name is Msgr. Refugio Daniel, I am a fine, precious, encouraging, calm, glamorous, vivacious, friendly person who loves writing and wants to share my knowledge and understanding with you.