Midterm Flashcards
Mopasar
What is the purpose of Cisco IOS Software
- Provides basic routing and switching functions.
- Enables reliable and secure access to networked resources.
- Supports network scalability.
What are the different methods to access the Cisco IOS CLI
- Console (physical connection)
- AUX (auxiliary port for modem access)
- Telnet/SSH (remote access)
How do you switch from User EXEC to Privileged EXEC mode?
Enter the enable command:
Router> enable
Password: [enter password]
Router#
What is the purpose of the show version command
Displays:
* IOS version and image name.
* Hardware details (CPU, memory).
* Uptime and configuration register value.
* Boot source (e.g., flash).
What does the show flash command verify?
Checks available flash memory for storing IOS images.
Lists files in flash and their sizes.
Describe the router startup sequence.
ROM: Loads bootstrap program.
Flash: Locates and loads the Cisco IOS image.
NVRAM: Loads the startup-config (if none, enters Setup Mode).
TFTP Server/Console: Fallback if no config is found.
When does a router enter Setup Mode?
When no startup-config exists in NVRAM.
When the user manually runs setup or answers “yes” to the initial dialog.
How do you abort Setup Mode without saving?
Ctrl+C.
What are the keyboard shortcuts for CLI navigation?
Ctrl+A - Move to line start.
Ctrl+E - Move to line end.
Ctrl+U - Erase entire line.
Ctrl+W - Erase one word.
Ctrl+P (↑) - Recall previous command.
Ctrl+Z - Exit config mode.
? - Context-sensitive help.
TAB - Auto-complete commands.
How do you adjust the command history buffer size?
Router(config-line)# history size [0-256]
What do LED indicators on a router signify?
Green OK LED: System initialized correctly.
Interface LEDs: Activity status (e.g., Ethernet link).
What is ROMMON mode used for?
Password recovery or OS restoration when Flash is corrupted.
What is the difference between Router> and Router# prompts?
Router>: User EXEC (limited commands).
Router#: Privileged EXEC (full access).
What does the caret symbol (^) indicate in CLI errors?
Points to the exact location of a syntax error in a command.
IOS
Internetwork Operating System
CLI
Command-Line Interface
a text-based interface where users interact with a computer by typing commands into a terminal or command prompt
NVRAM
Non-Volatile RAM
TFTP
Trivial File Transfer Protocol
a simple, lightweight protocol used for transferring files
ROMMON
ROM Monitor
a bootstrap program that initializes the hardware and boots the Cisco IOS XE software when you power on or reload a router
How do you set a console password
Router(config)# line console 0
Router(config-line)# password cisco
Router(config-line)# login
What is the difference between enable password and enable secret?
enable password: Stores password in plaintext (less secure).
enable secret: Uses MD5 encryption (preferred; overrides enable password).
How do you encrypt all plaintext passwords in the configuration?
Router(config)# service password-encryption
What commands configure an IP address on an interface
Router(config)# interface fastethernet 0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Why might an interface show “administratively down”?
The interface was manually disabled with shutdown. Use no shutdown to activate it.
What is required for a serial link to function?
DCE side must provide clocking:
Router(config-if)# clock rate 64000
How do you set a router hostname?
Router(config)# hostname R1
R1(config)#
What does show running-config display?
Current configuration in RAM (active but unsaved).
How do you back up a configuration to a TFTP server?
Router# copy running-config tftp
Remote host IP: 192.168.1.100
Filename: backup-config
How do you restore a router to factory defaults?
Router# erase startup-config
Router# reload
What is the purpose of a loopback interface?
A virtual interface that is always up.
Used for testing, routing protocols (e.g., BGP), and stability.
How do you add a static hostname-to-IP mapping?
Router(config)# ip host R2 192.168.1.2
What does ip name-server do?
Specifies DNS servers for hostname resolution
How do you enable/disable DNS lookup?
Enable: ip domain-lookup (default).
Disable: no ip domain-lookup.
What information does show hosts display?
Permanent (perm): Manually configured.
Temporary (temp): Learned via DNS (expires after 72 hours).
How do you configure a login banner?
Router(config)# banner motd #
Unauthorized access prohibited! #
List critical show commands for troubleshooting.
show interfaces - Interface status/statistics.
show controllers serial - Hardware details (e.g., DCE/DTE).
show protocols - Layer 3 protocol status.
show arp - ARP cache.
show flash - IOS files in flash memory.
What are the default states of router interfaces?
Administratively down (requires no shutdown).
Line protocol down until both ends are configured.
DCE/DTE
Data Communications Equipment - devices that facilitate data transmission over a network
Data Terminal Equipment - equipment that acts as the endpoint in a communication network,
HDLC
High-Level Data Link Control
a bit-oriented, synchronous data link layer protocol used for transmitting data between network points,
What is Cisco Discovery Protocol (CDP)?
A Layer 2 protocol that connects lower physical media and upper network layer protocols
What information does CDP(Cisco Discovery Protocol) share between neighbors?
Device ID (hostname).
Local/Port Interface (e.g., FastEthernet0/0).
Holdtime (default: 180s).
Capabilities (Router, Switch, etc.).
Platform (e.g., WS-C2960).
VTP Domain (CDPv2 only).
Native VLAN (CDPv2 only).
How often does CDP send updates?
Update timer: 60 seconds (default).
Hold timer: 180 seconds (time before neighbor entry expires).
List key CDP commands.
show cdp neighbors - Lists connected devices.
show cdp neighbors detail - Detailed neighbor info (IP, IOS version).
show cdp interface - CDP status per interface.
cdp run - Enables CDP globally.
no cdp enable - Disables CDP on an interface.
clear cdp counters - Resets traffic stats.
How do you disable CDP globally?
Router(config)# no cdp run
What is telnet
Telnet is a virtual terminal protocol that is part
of the TCP/IP protocol suite.
It allows connections to be made to remote
hosts. Telnet provides a network terminal or
remote login capability.
What is the purpose of telnet in network troubleshooting?
Tests application-layer connectivity (OSI Layer 7).
Verifies remote device accessibility via TCP port 23.
Requires VTY password configuration on the target device.
How do you initiate a Telnet session?
Router> telnet 192.168.1.1
Or
Router> connect 192.168.1.1
How do you suspend/resume a Telnet session?
Suspend: Press Ctrl+Shift+6, then x.
Resume: Type resume [session-ID] or press Enter for the last session.
What does ping test?
End-to-end connectivity using ICMP Echo Requests/Replies.
Success symbols: ! (reply received), . (timeout).
Extended ping: Adjust packet size/timeout (Router# ping + Enter).
What is traceroute
The traceroute command is the ideal tool for finding where data is being sent in a network.
How does traceroute work?
Maps the path to a destination by incrementing TTL values.
Each router decrements TTL; if TTL=0, it sends an ICMP Time Exceeded message.
- indicates a hop is unreachable.
What is the difference between ping and traceroute?
Tests end-to-end connectivity. - Identifies each hop in the path.
Uses ICMP. - Uses UDP/ICMP with TTL.
Returns ! or .. - Lists router IPs/hostnames.
What is the purpose of debug cdp packets?
Logs real-time CDP packet exchanges for troubleshooting.
What does show cdp traffic display?
Packet statistics: Sent/received, checksum errors.
Why might CDP fail to detect a neighbor?
CDP disabled on either device.
Layer 1/2 issues (cable, port shutdown).
Non-Cisco device (CDP is Cisco-proprietary).
How do you map a network using CDP?
Use show cdp neighbors to list devices.
Telnet to neighbors and repeat.
Document device names, interfaces, and IPs.
What are the default Telnet (VTY) lines in IOS?
Lines 0–4 (supports 5 simultaneous sessions).
How do you test DNS resolution on a router?
Router# ping hostname
CDP
Cisco Discovery Protocol.
SNAP
Subnetwork Access Protocol.
a protocol that helps different network protocols like IP and IPX to operate over common network types such as Ethernet and Wi-Fi
TTL
Time-To-Live (used in traceroute).
is the length of time or “hops” that a packet may move through a network before being discarded by a router
VTY
Virtual Teletype (Telnet/SSH access).
virtual interfaces that allow remote access to network devices like routers and switches via protocols like Telnet or SSH.
TLV
Type Length Values
is an encoding scheme used to represent data in a structured manner, where each piece of data is identified by its type, length, and value.
What is the purpose of the configuration register?
A 16-bit value in NVRAM that controls boot behavior.
Default: 0x2102 (boot from Flash, check NVRAM for boot system commands).
What does the boot field (bits 0–3) in the configuration register determine?
0x–0 - Boots into ROM monitor mode (manual recovery).
0x–1 - Boots from ROM (limited IOS).
0x–2 to 0x–F - Checks NVRAM for boot system commands (default: 0x2102).
How do you recover a lost router password?
Reboot and press Ctrl+Break to enter ROMmon.
Change register to 0x2142 (ignores NVRAM):
rommon> confreg 0x2142
rommon> reset
Reload, then restore original register:
Router(config)# config-register 0x2102
What commands verify the IOS boot source?
show version: Displays IOS filename and configuration register.
show running-config: Checks for boot system commands.
What are symptoms of a corrupted Flash IOS image?
Error messages during boot (e.g., open: read error, cannot open “flash:”).
Router fails to load IOS or enters ROMmon mode.
What is the Cisco IOS File System (IFS)?
Provides a single method to perform all the file
system management that a router uses
How do you restore an IOS image via TFTP?
Router# copy tftp flash
Address of remote host: 192.168.1.100
Source filename: c2600-js-1_121-3.bin
Erase flash? [confirm]
How do you back up a configuration file to a TFTP server?
Router# copy running-config tftp
Remote host: 192.168.1.100
Destination filename: router-backup.cfg
How do you interpret an IOS filename (e.g., c2600-js-1_121-3.bin)?
c2600: Hardware platform (Cisco 2600 series).
js: Feature set (e.g., “j” = enterprise, “s” = extended capabilities).
121-3: Version 12.1(3).
bin: File format (binary executable).
What are the key differences between running-config and startup-config?
Stored in RAM (volatile). - Stored in NVRAM (persistent).
Active configuration. - Loads at boot.
View with show running-config. - View with show startup-config.
How do you copy the running config to NVRAM?
Router# copy running-config startup-config
What are the ROMmon environment variables used for TFTP recovery?
Set in ROMmon to restore IOS:
rommon> IP_ADDRESS=192.168.1.1
rommon> IP_SUBNET_MASK=255.255.255.0
rommon> TFTP_SERVER=192.168.1.100
rommon> TFTP_FILE=c2600-js-1_121-3.bin
rommon> tftpdnld
What is Environment variables
The environmental variables provide a minimal
configuration to allow for the TFTP of the IOS.
How do you troubleshoot a router stuck in ROMmon?
- Check Flash corruption (use
dir flash:
). - Verify
boot system
commands in NVRAM. - Ensure configuration register is correct (e.g., 0x2102).
What is the purpose of setup
mode?
Provides a minimal configuration dialog when no startup-config exists
How do you capture a router config to a text file?
- Use
terminal emulator
(e.g., HyperTerminal). - Enable text capture.
- Run
show running-config
and save the output.
What does show flash display?
- IOS files in Flash memory.
- Total/used/free space.
Cisco IFS
Cisco IOS File System