Thursday, October 9, 2008

IOS

1. Which command takes you from Privilege EXEC mode to User EXEC mode?

A. enable

B. disable

C. exit

D. logout

Answer: B

The disable command takes you from Privilege EXEC mode to User EXEC mode.

A does the reverse and therefore is incorrect, and C and D log you out of the router.

2. Which prompt indicates that you are at User EXEC mode?

A. >

B. #

C. %

D. @

Answer: A

The “>“ indicates User EXEC mode.

B is incorrect because it indicates Privilege EXEC mode. C and D are incorrect because these are invalid prompts.

3. The _________ command takes you from User EXEC mode to Privilege EXEC mode. IOS Basics

A. CLICK TO VIEW THE ANSWER

Answer: A

ENABLE

The enable command takes you from User EXEC mode to Privilege EXEC mode.

4. If you wanted a list of parameters for the show command, you would type ________.

A. CLICK TO VIEW THE ANSWER

Answer: A

SHOW ?

To view all of the parameters for the show command, enter show ?.

5. To recall a previous command, which of the following would you use?

A. CTRL-P

B. ctrl-n

C. ctrl-r

D. down arrow

Answer: A

CTRL-P recalls a previous command.

B and D recall the next command, and C redisplays the current line.

6. Which control sequence moves the cursor to the end of the line?

A. CTRL-A

B. ctrl-p

C. ctrl-e

D. ctrl-z

Answer: C

CTRL-E takes you to the end of the CLI.

A takes you to the beginning, B takes you to the previous line, and E logs you out.

7. What would you enter to see the last few commands you entered?

A. show version

B. show commands

C. show previous

D. show history

Answer: D

The show history command displays the last few commands that you entered.

A displays software and hardware information. B and D are nonexistent commands.

8. Which would you use to move your cursor back one word?

A. ESC-B

B. esc-p

C. ctrl-b

D. ctrl-p

Answer: A

The ESC-B control sequence takes you back one word on the CLI.

B is incorrect because it is an invalid control sequence. C is incorrect because it takes you back one character. D is also incorrect, because it takes you back one line.

9. If you enter a command in either User EXEC mode or Privilege EXEC mode that the IOS does not recognize, the switch or router

A. Logs you out

B. Tries to resolve the command to an IP address

C. Executes the closest command that it can find in its command set

D. Makes a “beep” sound

Answer: B

Whenever you enter an invalid command, the device attempts to first resolve the command to an IP address and telnet to this machine.

A is incorrect because this requires you to execute the logout command. C is incorrect because the IOS doesn’t know what command to execute. D is incorrect because sounds aren’t supported with the CLI.

10. You are at User EXEC mode and type the letter e. What message appears?

A. % Incomplete command.

B. % Ambiguous command:

C. % Unknown command or computer name

D. % Invalid input detected at ‘^’.

Answer: B

If you don’t type enough characters for a command or parameter, you’ll get an “ambiguous command” message.

A is incorrect because you didn’t type enough parameters for the command. C is incorrect because this message is shown when you enter an invalid command, and D is incorrect because you entered incorrect or invalid information for a valid command.

11. On the 1900 switch, how do you enter User EXEC mode?

A. It comes up by default.

B. Enter the letter U in the menu.

C. Enter the letter K in the menu.

D. Enter the letter C in the menu.

Answer: C

Enter K to access User EXEC mode on a 1900 switch.

A is true for the 2950 and the routers, not the 1900. B and D are incorrect because these are nonexistent options.

12. Enter the command to access Configuration mode: __________.

A. CLICK TO VIEW THE ANSWER

Answer: A

CONFIGURE TERMINAL

The configure terminal command takes you from Privilege EXEC mode to Configuration mode.

13. Enter the command to assign a name to a 1900 switch of switch1: ___________.

A. CLICK TO VIEW THE ANSWER

Answer: A

HOSTNAME SWITCH1

The hostname switch1 command changes the name of the 1900 switch to “switch1.”

14. What command assigns a User EXEC password to a 2950 switch?

A. password

B. login

C. enable password

D. enable password level

Answer: A

The Line Subconfiguration mode password command assigns a console or telnet User EXEC mode password.

B is incorrect because this specifies authentication with the password command. C is incorrect because this assigns a Privilege EXEC password. D is incorrect because this assigns passwords on a 1900 switch.

15. Which command assigns a default gateway to the 2950 switch?

A. (config)# default-gateway

B. (config-if)# default-gateway

C. (config-if)# ip default-gateway

D. (config)# ip default-gateway

Answer: D

The ip default-gateway Global Configuration mode command assigns a default gateway to either a 1900 or 2950 switch.

C is incorrect because it is in the wrong mode. B and D are incorrect because they are invalid commands.

16. The router automatically saves its configuration.

A. True

B. False

Answer: B

The router does not automatically save its configuration; you need to use the copy running-config startup-config to save it to NVRAM.

17. You examine your interfaces, and the Ethernet 0 interface status says: Ethernet 0 is up, line protocol is down. What does this indicate?

A. There is a physical layer problem.

B. There is a data link layer problem.

C. There is a network layer problem.

D. There is no problem.

Answer: B

The “line protocol is down” refers to the data link layer.

A is incorrect because the physical layer is “up.” C is incorrect because the status refers only to the physical and data link layers. Since there is a correct answer, D is incorrect.

18. You execute the line console 0 command from Configuration mode. What will the router’s prompt be?

A. Router(config)#

B. Router(config-line)#

C. Router(config-interface)#

D. Router#(config-if)

Answer: B

When you execute the line console 0 command, your prompt changes to “Router(config-line)#.”

A is incorrect because this is Global Configuration mode. D represents Interface Subconfiguration mode, and C is a nonexistent prompt.

19. You are in Interface Subconfiguration mode and want to completely return to Privilege EXEC mode. What would you enter? (Choose all correct answers.)

A. CTRL-Z

B. end

C. exit

D. logout

Answer: A

A and B. The CTRL-Z control sequence and the end command take you from any Configuration mode back to Privilege EXEC mode.

C only takes you back one level, while D is a User and Privilege EXEC mode command.

20. What router command saves the active configuration to NVRAM?

A. copy nvram startup-config

B. copy startup-config running-config

C. copy running-config nvram

D. copy running-config startup-config

Answer: D

Use the copy running-config startup-config to back up your configuration from RAM to NVRAM.

B is incorrect because this restores your configuration to RAM. A and C are incorrect because these commands use nonexistent parameters.

No comments: