CCNA Command Guide: Help: When You Write Command in Cisco Device
CCNA Command Guide: Help: When You Write Command in Cisco Device
Mode User mode Privileged mode Global configuration mode Interface configuration mode
Prompt Router> Router# Router(config)# Router(config-if)#
To move Mode from
Router>enable Router#configure terminal Router(config)# interface f0/0
Up Mode
To move Mode from
Router#disable Router(config)#exit Router(config-if)#exit
Down Mode
Basic Configuring
Command Description
Router(config)#hostname R1 Change name Device
Router(config)#enable password cisco Sets enable password
Router(config)#enable secret class Sets enable secret password
Router(config)#line console 0 Enters console line mode
Router(config-line)#password console Sets console line mode password to console
Router(config-line)#login Enables password checking at login
Router(config)#line vty 0 4 lines Enters vty line mode for all five vty
Router(config-line)#password telnet Sets vty password to telnet
Router(config-line)#login Enables password checking at login
Router(config)#service password-encryption Applies a weak encryption to passwords
Router(config)#no service password -encryption Turns off password encryption
Turns off trying to automatically resolve an unrecognized
Router(config)#no ip domain-lookup
command to alocal host name
Saving Configuring
Command Description
Router#copy running-config startup-config Saves the running configuration to local NVRAM
Router#copy running-config tftp Saves the running configuration remotely to a TFTP server
Router#copy flash: tftp Saves the IOS remotely to a TFTP server
Router#erase startup-config Deletes the startup configuration file from NVRAM
Configuring a Switch (Verifying Commands)
Command Description
switch#show mac-address-table Displays the current MAC address forwarding table.
switch#show vlan Displays the current VLAN configuration.
switch#show vlan brief Displays VLAN information in brief
switch#show interface vlan1 Displays setting of virtual interface VLAN 1, the default VLAN on the switch.
switch#delete flash:vlan.dat Removes the VLAN database from flash memory.
switch#erase startup-config Erases the file from NVRAM.
switch#reload Restarts the sw