Vol 1 Ch 4 - Using the Command-Line Interface Flashcards
Ways to access the CLI
There are three ways to access the CLI.
- Console - via physical port and terminal emulator software package
- a serial port > rollover cable > RJ-45 console port:
- b USB port > USB cable > USB converter > rollover cable > Rj-45 console port
- c USB port > USB cable > USB console port
- Telnet (via IP network and terminal emulator)
- Secure Shell (via IP network and terminal emulator, all communications are encrypted)
CLI modes
There are two modes main modes.
User exec mode Enable privileged exec mode
From enable mode you can access
Global configuration mode (config t) Configuration subcommands
How do you enable security to the console?
You can password protect the access to the console. This will affect the console physical connection, telnet, and SSH access to the CLI:
enable conf t line console 0 password \_\_\_\_\_\_\_\_ login exit
Switching between CLI modes
enable
takes you from user to enable mode
disable
takes you from enable mode to user mode
configure terminal
takes you from enable mode to global configuration mode
end or CTRL-Z
takes you from configuration mode to enable mode
takes you from subcommand mode all the way to enable mode
exit
takes you from a subcommand mode to global configuration mode
if executed again, takes you to enable mode (per packet tracer)
Main types of memory in a Cisco switch
There are four main type of memory in a Cisco switch.
- RAM/DRAM: Working memory. Volatile. Running-Config.
- FLASH: Chip or removable. Cisco IOS and backup config files.
- ROM: Bootstrap. Finds and loads Cisco IOS.
- NVRAM: Startup-Configuration file.
Commands to erase the startup-config file
There are three commands that can be used to erase the startup-config file.
write erase
erase startup-config
erase nvram:
Command to start over (initialize, reboot) with the startup-config file
reload
How do you enable security to enable mode?
You can password protect enable mode:
enable
conf t
enable secret __________