most used Cisco IOS commands

Page 1

List of most used Cisco IOS commands

Router Models Mode

Description

Router>

User mode

Router#

Privileged mode

Router(config)#

Global configuration mode

Router(config-if)#

Interface mode

Router(config-subif)#

Subinterface mode

Router(config-line)#

Line mode

Router(config-router)#

Router configuration mode

Router(config-if)#exit ↵

Exit interface mode, return you one mode before

Router(config)# Router(config-if)#end ↵

Router#

Exit interface mode, return to global configuration mode, (CTRL+Z)

Global Configuration Mode Command

Description

Router>

Can see config but not change

Router#

Can see config, and move to make changes

Router# conf t ↵ Router(config)#

Moves to global config mode

Router(config)#no ip domain-lookup Disable IP domain name system hostname translation ↵ Router(config)#banner motd ^Hello^ Sets Hello like message of the day banner ↵

Configure Router Name

vty.me


List of most used Cisco IOS commands

Command

Description

Router(config)#hostname vtyme ↵

Name can be any word you choose

vtyme(config)#

After Change was made

Configure Passwords Command Router(config)#enable password cisco ↵

Description Set enable password

Router(config)#enable secret class ↵ Set enable secret password Router(config)#line con 0 ↵

Enter console line mode, sets consoleRouter(config-line)#password console line mode password to console, enable password checking at login and ↵ enable synchronized message output. Router(config-line)#login ↵ Router(config-line)#loggin synchronous ↵ Router(config)#line vty 0 4 ↵ Router(config-line)#password telnet ↵ Router(config-line)#login ↵

Enter vty mode for all 5 vty lines, sets vty password to telnet, enable passowrd checking at login and enable synchronized message output.

Router(config-line)#loggin synchronous ↵ Router(config)#line aux 0 ↵

Enter auxiliary line mode, sets Router(config-line)#password nopass auxiliary line mode password to nopass, enable password checking at ↵ login. Router(config-line)#login ↵ Router(config)#service passwordencryption ↵

Show Commands vty.me

Applies a weak encryption to passwords


List of most used Cisco IOS commands

Command

Descpription

Router#show startup-config ↵

Displays configuration saved in NVRAM

Router#show running-config ↵

Displays configuration currently running in RAM

Router#show protocols ↵

Displays status of configured Layer 3 protocols

Router#show ip route ↵

Displays routing table

Router#show ip protocols ↵

Displays IP routing protocols process parameters and statistics

Router#show vlan ↵

Displays VLAN status

Router#show vtp ↵

Displays VTP information

Router#show spanning-tree ↵

Displays spanning tree topology

Router#show mac-address-table ↵

Displays MAC table

Router#show ip interface brief ↵

Displays summary of interface IP status and configuration

Router#show cdp neghbors ↵

Displays neighbor entries

Router#show version ↵

Displays info about loaded software version

Router#show flash ↵

Displays info about Flash memory

Router#show arp ↵

Displays the ARP table

Router#show history ↵

Displays history of commands used

Router#show users ↵

Displays all users connected to device

Router#show clock ↵

Displays time set on device

Router#show controllers serial 0 ↵

Displays statistics for interface hardware. Statistics display if the clock rate is set and if the cable is DCE or DTE or not attached

Router#show sessions ↵

Displays all telnet connections to

vty.me


List of most used Cisco IOS commands

Command

Descpription device

Saving Configuration Command

Description

Router#copy run start ↵

Saves the running-config to local NVRAM

Router#copy run tftp ↵

Saves the running-config remotely to TFTP server

Configure Interface Command

Description

Router(config)#interface fa0/0 ↵

Moves to Fast Ethernet 0/0 interface mode

Router(config-if)#ip address 192.168.1.2 255.255.255.0 ↵

Assigns address and subnet mask to interface

Router(config-if)#no shutdown ↵

Turn interface on

Router(config-if)#description homelan ↵

Optional description of the link is locally significant

Router(config-if)#no ip address ↵

Remove assign address from interface

Router(config)#interface s0/0 ↵

Moves to Serial 0/0 interface mode

Router(config-if)#clock rate 64000 ↵ Configure serial interface clock speed

vty.me


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.