Skip to content

Cisco IOS

Good to know

With the “?”, you see what is expected next for each command.

The tab key is another lifesaver. It completes the command, if the IOS knows exactly what you want to enter, so you don’t have to type it all out. If the tab key does not work, there are more than one option so your command cannot be autocompleted.

FunctionsTerminal
User modeSwitch>
Privileged mode (after enabling it)Switch#
Global configuration modeConfigure terminal
Interface configuration modeInterface ethernet0/0
Lists all interfaces with IP and statusShow ip interface brief  
Changes the hostnameHostname <>  
Configure a banner before logging inBanner motd = <YOURBANNERTEXT> =  
Protecting privileged exec modeenable secret 0 <PASSWORD>
protecting the console lineline console 0 password <PASSWORD> login
Restricting the VTY lines (the virtual lines)line vty 0 4 password <PASSWORD> login transport input ssh
Obfuscate line passwords in configService password-encryption
Give switch a management ipInterface vlan 1 Ip address 192.168.10.11 255.255.255.0 No shutdown
Give a port a descriptionInterface Gigabitethernet 1/0/1 Description “uplink to switch03” Exit
Save the configurationwr
Lists interfaces with status, vlan, duplex and speed stateshow interface status
Lists interfaces with its description so its not cut in halfshow interface description
Lists all the mac addresses connected to the switchshow mac address-table
Let you search for one specific mac addressshow mac address-table address ab12.cd34.ef56

Cisco Base configuration checklist

  1. Hostname
  2. Banner MOTD
  3. Enable secret
  4. Console password and login
  5. VTY password and remote access settings
  6. Service password-encryption
  7. Management IP on VLAN 1
  8. Port descriptions
  9. Saving the configuration

The Cisco boot process

  1. POST (Power-On Self Test)
    First of all there is a self test which checks the hardware components.
  2. Bootstrap Program Initialization
    Once POST completes successfully the Bootstrap program stored in ROM is loaded and executed. It initialises the basic hardware.
  3. Locating and Loading the IOS
    Based on the configuration register the bootstrap program locates the Cisco IOS and loads it into RAM.
  4. Loading the config file
    When IOS is fully operational the devices searches the NVRAM for a saved configuration file. If its found it’s loaded into RAM. If not the device prompts the user for setup configuration wizard.
  5. Final initialization
    When the IOS is loaded and conigs are applied the hardware interfaces are initialized and the device opens in user exec mode.

Saving or resetting Cisco configurations

Your device is dealing with two types of storage. The RAM and the NVRAM. The running configuration is living in RAM that means if you type “reload” the switch loses what is in RAM so that config would be deleted (if not saved earlier). If you want to delete a startup config (which lives in NVRAM) you can type “write erase”. So the startup config is deleted, but are we done? Not quite yet. We probably still have a running config loaded into RAM which is currently working. So how can we get rid of these? Correct, we reboot the switch and we successfully reset our config.

Leave a Reply

Your email address will not be published. Required fields are marked *