Cisco IOS

Cisco IOS Cheatsheet #

Cisco IOS is the operating system used by Cisco devices, including routers and switches. This cheatsheet provides common commands and configurations for Cisco IOS.

Basic Commands #

Command/OptionExampleDescription
show versionshow versionDisplay the IOS version and device info
show running-configshow running-configDisplay the current configuration
show startup-configshow startup-configDisplay the configuration saved to NVRAM
configure terminalconfigure terminalEnter global configuration mode
copy running-config startup-configcopy running-config startup-configSave the running configuration to startup

Interface Configuration #

Command/OptionExampleDescription
interfaceinterface GigabitEthernet0/1Enter interface configuration mode
ip addressip address 192.168.1.1 255.255.255.0Set IP address and subnet mask
no shutdownno shutdownEnable the interface
shutdownshutdownDisable the interface
descriptiondescription Link to Data CenterAdd a description to the interface

VLAN Configuration #

Command/OptionExampleDescription
vlanvlan 10Create VLAN with ID 10
namename SalesName the VLAN
interface vlaninterface vlan 10Enter VLAN interface configuration mode
ip addressip address 192.168.10.1 255.255.255.0Assign IP address to VLAN interface
no vlanno vlan 10Remove VLAN with ID 10

Routing Configuration #

Command/OptionExampleDescription
router ospfrouter ospf 1Enter OSPF routing configuration mode
networknetwork 192.168.1.0 0.0.0.255 area 0Configure OSPF network statement
router bgprouter bgp 65001Enter BGP routing configuration mode
neighborneighbor 192.168.1.2 remote-as 65002Configure BGP neighbor
redistributeredistribute ospfRedistribute routes between protocols

Access Control #

Command/OptionExampleDescription
access-listaccess-list 100 permit ip 192.168.1.0 0.0.0.255 anyCreate an access control list (ACL)
ip access-groupip access-group 100 inApply ACL to an interface
usernameusername admin privilege 15 password mypassCreate a user with a specified privilege level

NAT Configuration #

Command/OptionExampleDescription
ip nat inside source listip nat inside source list 1 interface FastEthernet0/1 overloadConfigure NAT for inside source
ip access-listip access-list standard 1Define NAT access list
ip nat outsideip nat outsideSet NAT to outside interface

Troubleshooting #

Command/OptionExampleDescription
pingping 8.8.8.8Test connectivity to a remote host
traceroutetraceroute 8.8.8.8Trace the route to a remote host
show ip interface briefshow ip interface briefShow a summary of IP interfaces
show logshow logDisplay system log

Management #

Command/OptionExampleDescription
enableenableEnter privileged EXEC mode
disabledisableExit privileged EXEC mode
write memorywrite memorySave configuration to startup configuration
reloadreloadReboot the device

This cheatsheet covers essential Cisco IOS commands for configuration, management, and troubleshooting of Cisco devices. For detailed command syntax and additional options, consult the Cisco documentation.

Cisco IOS

Explore our comprehensive cheatsheets to enhance your knowledge and efficiency. Each cheatsheet provides detailed command options, examples, and descriptions to help you master various tools and technologies.