6. Internetworking Operating System (IOS) Flashcards
Who created IOS and when?
William Yeager in 1985
What common things is IOS responsible for?
- Carrying out network protocols and functions
- Connecting high speed traffic between devices
- Adding security to control access and stopping unauthorised network use
- Supplying network reliability for connecting to network resources
What ways can you access the IOS on a router or switch?
- Console port (RJ-45, USB)
- Modem into the auxiliary (aux) port (only on a router)
- Telnet and SSH session
Access to the IOS command line is called an EXEC session
Which connection methods are considered out-of-band?
- Console
- Auxiliary (via modem connection)
The auxiliary connection allows you to remotely configure the router even if it’s down
Which connection methods are considered in band?
- Telnet and SSH (via the network hence ‘in band’)
What will a switch or router do upon power up?
- Perform a power on self test (POST)
- Load the Cisco IOS from flash memory into RAM (if an IOS file is present)
- Locate and load into RAM the startup-config file (stored in NVRAM)
- If no valid startup-config is found, the switch/router enters setup mode.
You can exit set up mode at any time by pressing?
Ctrl + C
Identify the different command prompt types and they uses?
switch>
switch#
switch(config)#
switch(config-line)#
switch(config-if)#
switch(config-router)#
switch(config-std-nacl)#
.
.
.
.
.
.
.
.
.
.
.
.
switch>
- user exec mode
- Mode first entered when session starts
- Limited to basic monitoring commands
switch>enable
switch#
- Privileged exec mode
- Provide access to all other router commands
switch#configure terminal
switch#config t
switch(config)#
- Global configuration mode
- Commands that affect the whole system
- Makes changes to running-config in RAM
switch(config)#line console 0
switch(config-line)#
- Configuration of line inputs, ie console 0, vty 0 15 (telnet, SSH), aux
switch(config)#interface FastEthernet 0/0
switch(config)#int fa0/0
switch(config-if)#
- Commands that affect interfaces/processes only
switch(config)#ip routing
switch(config)#router rip
switch(config-router)#
switch(config)#ip access-list standard username
switch(config-std-nacl)#
What command do you use to set the system clock?
switch#clock set 21:30:00 28 february 2025
What does % Incomplete command mean?
The command entered isn’t complete, ie missing inputs or options
What does % Invalid input detected at ‘^’ marker mean?
The command entered is incorrect at the given place ie an incorrect option was used, an option or command word is missing
What does % Ambiguous command: “command repeated” mean?
Example: switch#sh cl
There are multiple commands that begin with the string you entered and it’s not unique
Use switch#sh cl? to show the options
Enhanced editing commands
Ctrl+A
Ctrl+E
Esc+B
Ctrl+B
Ctrl+F
Esc+F
Ctrl+D
Backspace
Ctrl+R
Ctrl+U
Ctrl+W
Ctrl+Z
Tab
Ctrl+A - Move cursor to the beginning of the line
Ctrl+E - Move cursor to the end of the line
Esc+B - move back one word
Ctrl+B - move back one character
Ctrl+F - move forward one character
Esc+F - move forward one word
Ctrl+D - delete a single character
Backspace - delete a single character
Ctrl+R - redisplays a line
Ctrl+U - erases a line
Ctrl+W - erases a word
Ctrl+Z - end configuration mode and return to EXEC
Tab - finishes typing a command for you
What does the $ indicate on the command line?
The command line has automatically scrolled left (11 spaces) to display a long command
What does Ctrl+P do on the command line?
Shows the last command entered
Same as up arrow
What does Ctrl+N do on the command line?
Shows previous commands entered.
Same as down arrow
What does show history do on the command line?
Shows the last 20 commands entered
History buffer is 20 by default
What does show terminal do on the command line?
Shows the terminal configuration and history buffer size
What command can you use to change the history buffer size?
switch#terminal history size X
Max size is 255
What command would you use to set a new host name?
switch#config t
switch(config)#hostname alphaSwitch
alphaSwitch(config)#
Name the different types of banner you can create for the command line?
switch(config)#banner exec # message #
- Displayed at start of EXEC process
switch(config)#banner motd # message #
- Displayed whenever a connection is made to the device (telnet, aux, console)
switch(config)#banner login # message #
- Displayed after MOTD banner and before the user login prompts
switch(config)#banner prompt-timeout # message #
- Displayed when logging authentication times out
switch(config)#banner slip-ppp # message #
- Unsure when this is displayed
How do you set a user password on the command line?
switch(config)#enable password password
switch(config)#enable secret password
Enable secret is encrypted and overrides password if both are set
How do you set a console password on the command line?
switch(config)#line console 0
switch(config-line)#password password
switch(config-line)#login
Virtual terminal connections i.e. Telnet, SSH are similar except you enter the
switch(config)#line vty 0 15
configuration prompt
How do you change the console timeout?
switch(config-line)#exec-timeout *min sec
Default value is 10 minutes.
exec-timeout 0 0 means never time out