Cisco IOS Command Line Cheatsheet |
--------------------------------- |
--- Verify Basic Configuration: |
Shows information close the switch in addition to its interfaces, RAM, NVRAM, flash, IOS, etc. |
SW1# demo version |
Shows the electrical flow configuration file stored inwards DRAM. |
SW1# demo running-config |
Shows the configuration file stored inwards NVRAM which is used at get-go kick process. |
SW1# demo startup-config |
Lists the commands currently held inwards the history buffer. |
SW1# demo history |
Shows an overview of all interfaces, their physical status, protocol condition in addition to ip address if assigned. |
SW1# demo ip interface brief |
Shows detailed information close the specified interface, its status, protocol, duplex, speed, encapsulation, concluding five 2d traffic. |
SW1# demo interface vlan 1 |
Shows the description of all interfaces |
SW1# demo interfaces description |
Shows the condition of all interfaces similar connected or not, speed, duplex, body or access vlan. |
SW1# demo interfaces status |
Shows Blue Planet encryption fundamental used for SSH. |
SW1# demo crypto fundamental mypubkey rsa |
Shows information close the leased IP address (when an interface is configured to become IP address via a dhcp server) |
SW1# demo dhcp lease |
--- Router Modes: |
Router>: User trend = Limited to basic monitoring commands |
Router#: Privileged trend (exec-level mode) = Provides access to all other router commands |
Router(config)#: global configuration trend = Commands that deport upon the entire system |
Router(config-if)#: interface trend = Commands that deport upon interfaces |
Router(config-subif)#: subinterface trend = Commands that deport upon subinterfaces |
Router(config-line)#: trouble trend = Commands that deport upon inwards lines modes (console, vty, aux…) |
Router(config-router)#: router configuration mode |
--- Changing switch hostname: |
Switch(config)# hostname SW1 |
--- Configuring passwords: |
SW1(config)# enable hush-hush cisco ! MD5 hash |
SW1(config)# enable password notcisco ! Clear text |
--- Securing console port: |
SW1(config)# trouble con 0 |
SW1(config-line)# password cisco |
SW1(config-line)# login |
--- Securing end lines: |
SW1(config)# trouble vty 0 4 |
SW1(config-line)# password cisco |
SW1(config-line)# login |
--- Encrypting passwords: |
SW1(config)# service password-encryption |
--- Configuring banners: |
SW1(config)# banner motd $ |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
UNAUTHORIZED ACCESS IS PROHIBITED |
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- |
$ |
--- Giving the switch an IP address: |
SW1(config)# interface vlan 1 |
SW1(config-if)# ip address 172.16.1.11 255.255.255.0 ! or DHCP |
SW1(config-if)# no shutdown |
--- Setting the default gateway: |
SW1(config)# ip default-gateway 172.16.1.1 |
--- Saving configuration: |
SW1# re-create running-config startup-config |
Destination filename [startup-config]? ! Press come inwards to confirm file name. |
Building configuration… |
[OK] |
! Short for write memory. |
SW1# wr |
Building configuration… |