Commands Flashcards
Enable
To move from user EXEC mode to privileged EXEC mode.
Disable
Use this privileged EXEC mode command to return to user EXEC mode
Line Console 0
To enter console sub-configuration mode, use this command followed by the management line type and number.
Ctrl-Z
When in any configuration mode, ends the configuration mode and returns to privileged EXEC mode
Ctrl-Shift-6
All-purpose break sequence. Use to abort DNS lookups, traceroutes, pings.
Ctrl-R or Ctrl-I or Ctr-L
Redisplays the system prompt and command line after a console message is received.
Privileged EXEC mode password
enable secret global config command. The most important password to configure.
User EXEC mode password
To secure user EXEC access, the console port must be configured.
R1(config)#line console 0
R1(config-line)#password
R1(config-line)#login
Enable user EXEC access
To enable user EXEC access, use the login command.
Secure VTY lines
VTY lines enable remote access to the device.
R1(config)#line vty 0 15
R1(config-line)password
R1(config-line)login
Encrypt passwords
R1(config)#service password-encryption
Banner Messages
R1(config)#banner motd “ “
Show startup-config
Use this command to view the startup config file
show running-config
Use this command to view the running config file
SVI configuration
R1(config)#interface VLAN1
R1(config-if)#ip address
R1(config-if)#no shut
show ip interface brief
Use this command to display the IP address and status of all the switch ports and interfaces
no ip domain-lookup
To prevent the switch from attempting to translate incorrectly entered commands as though they were hostnames, disable the DNS lookup.
Initialize and reloading a switch
Use the show flash command to see if there is a vlan.dat file in the output. If there is, delete it. Erase the startup-config file. Reload the switch. S1#show flash S1#delete vlan.dat S1#erase startup-config S1#reload