CCNA Exercise Lab 4

Write out the command or commands for the following questions.

1. What command is used to set a serial interface to provide clocking to another router at 64k?

Ans - #conf t
#interface fastethernet0/0
#clock rate 64000

2. If you were to telnet into a router and you get the response “connec- tion refused, password not set,” what would you do to stop receiving this message and not be prompted for a password?

Ans – this error comes because a password Is not set to the remote router you are accessing.
#conf t
#line vty 0 4
#password abcd

3. If you type show inter et 0 and notice the port is administratively down, what would you do?

Ans - #conf t
#interface fastethernet0/1
#no shutdown

4. If you wanted to delete the configuration stored in NVRAM, what would you type?

Ans - #write erase
#reload

5. If you wanted to set a user-mode password for the console port, what would you type?

Ans - #conf t
#line console 0
#login
#password abcd

6. If you wanted to set the enable secret password to cisco, what would you type?

Ans - #conf t
#enable secret abcd

7. If you wanted to see if a serial interface needed to provide clocking, what command would you use?

Ans - #show running config

8. What command would you use to see the terminal history size?

Ans - #terminal history size

9. What old Cisco command will change a configuration stored on a TFTP host?

Ans - #copy running-config tftp

10. How would you set the name of a router to Chicago?

Ans – First enter in config mode. Type the setup command.

#conf t
#setup

Press yes to go into setup utility. Here it will ask you to enter a host-name for the router.

Hands-on Labs

In this section you will perform commands on a Cisco router that will help you understand what you learned in this chapter. You’ll need at least one Cisco router—two would be better, three would be outstanding. The labs in this chapter include the following:

{`
  Lab 4.1: Logging into a Router
  #enable
  Lab 4.2: Using the Help and Editing Features Lab 4.3: Saving a Router Configuration
  #show running-config
  #copy startup-config running-config
  `}
CCNA Exercise Lab 4 Image 1

{`
  Lab 4.4: Setting Your Passwords
  You can set 5 type of password on a router – 
  1. console password- 
  #conf t
  #line console 0
  #login
  #password abcd
  `}
CCNA Exercise Lab 4 Image 2

{`
  2. AUX password – 
  #conf t
  #line aux 0
  #login
  #password abcd
  `}
CCNA Exercise Lab 4 Image 3

{`
  3. VTY(telnet) password
  #conf t
  #line vty 0 4
  #login
  #password abcd
  `}
CCNA Exercise Lab 4 Image 4

{`
  4. Enable password
  #conf t
  #enable password abcd
  `}
CCNA Exercise Lab 4 Image 5

{`
  5. Enable secret
  #conf t
  #enable secret abcd
  `}
CCNA Exercise Lab 4 Image 6

Lab 4.5: Setting the Hostname, Descriptions, IP Address, and Clock Rate

CCNA Exercise Lab 4 Image 7

Lab 4.1: Logging into a Router

  1. Press Return to connect to your router. This will put you into user mode.
  2. At the Router> prompt, type a question mark (?).
  3. Notice the –more– at the bottom of the screen.
  4. Press the Enter key to view the commands line by
  5. Press the spacebar to view the commands a full screen at a
  6. You can type q at any time to
  7. Type enable or en and press Enter. This will put you into privileged where you can change and view the router
  8. At the Router# prompt, type a question mark (?). Notice how many options are available to you in privileged
  9. Type q to
  10. Type config and press
  11. Press Enter to configure your router using your
  12. At the Router(config)# prompt, type a question mark (?), then q to quit, or hit the spacebar to view the
  13. Type interface e0 or int e0, and press This will allow you to con- figure interface Ethernet 0.
  14. At the Router(config-if)# prompt, type a question mark (?).
  15. Type int s0 or interface s0 (same as the interface serial 0 com- mand) and press Enter. This will allow you to configure interface serial Notice that you can go from interface to interface easily.
  16. Type encapsulation?.
  17. Type exit. Notice how this brings you back one
  18. Press the Control key and the letter Z at the same Notice how this brings you out of configuration mode and places you back into privileged mode.
  19. Type disable. This will put you into user
  20. Type exit, which will log you out of the

Lab 4.2: Using the Help and Editing Features

  1. Log in to the router and go to privileged mode by typing en or enable.
  2. Type a question mark (?).
  3. Type cl? and then press Notice that you can see all the com- mands that start with “cl”.
  4. Type clock ? and press

    Notice the difference between numbers 3 and 4. Number 3 has you type let- ters with no space and a question mark, which will give you all the commands that start with “cl”. Number 4 has you type a command, space, and question mark. By doing this, you will see the next available commands.

  5. Set the router’s clock by typing clock ? and following the help screens; set the router’s time and
  6. Type clock ?.
  7. Type clock set ?.
  8. Type clock set 10:30:30 ?.
  9. Type clock set 10:30:30 14 March ?.
  10. Type clock set 10:30:30 14 March 2001.
  11. Press Enter.
  12. Type show clock to see the time and
  13. From privileged mode, type show access-list 10. Don't press
  14. Press Ctrl+A. This takes you to the beginning of the
  15. Press Ctrl+E. This should take you back to the end of the
  16. Press Ctrl+A, then Ctrl+F. This should move you forward one character.
  17. Press Ctrl+B, which will move you back one
  18. Press Return, then press Ctrl+P. This will repeat the last
  19. Press the up arrow on your keyboard. This will also repeat the last command.
  20. Type sh history. This shows you the last 10 commands
  21. Type terminal history size ?. This changes the history entry
  22. Type show terminal to gather terminal statistics and history
  23. Type terminal no editing. This turns off advanced editing. Repeat steps 14–18 to see that the shortcut editing keys have no effect until you type terminal editing.
  24. Type terminal editing and press Enter to re-enable advanced
  25. Type sh run, then press your Tab key. This will finish typing the com- mand for
  26. Type sh star, then press your Tab key. This will finish typing the com- mand for

Lab 4.3: Saving a Router Configuration

  1. Log into the router and go into privileged mode by typing en or enable, then press
  2. To see the configuration stored in NVRAM, type sh start and press Tab and Enter, or type show startup-config and press However, if no configuration has been saved, you will get an error message.
  3. To save a configuration to NVRAM, which is known as startup-config, you can do one of the following:
    • Type copy run start and press
    • Type copy running, press Tab, type start, press Tab, and press Enter.
    • Type copy running-config startup-config and press
  4. Type sh start, press tab, then press
  5. Type sh run, press tab, then press
  6. Type erase start, press Tab, then press
  7. Type sh start, press Tab, then press Enter. You should get an error message.
  8. Type reload, then press Enter. Acknowledge the reload by pressing Enter. Wait for the router to
  9. Say no to entering setup mode, or just press Ctrl+C.

Lab 4.4: Setting Your Passwords

  1. Log into the router and go into privileged mode by typing en or enable.
  2. Type config t and press
  3. Type enable ?.
  4. Set your enable secret password by typing enable secret password (the word password should be your own personalized password) and pressing Enter. Do not add the command password after the com- mand secret (this would make your password the word password). An example would be enable secret
  5. Now let's see what happens when you log all the way out of the router and then log in. Log out by pressing Ctrl+Z, and then type exit and press Enter. Go to privileged mode. Before you are allowed to enter privileged mode, you will be asked for a password. If you successfully enter the secret password, you can
  6. Remove the secret Go to privileged mode, type config t, and press Enter. Type no enable secret and press Enter. Log out and then in again, and now you should not be asked for a password.
  7. One more password used to enter privileged mode is called enable password. It is an older, less secure password and is not used if an enable secret password is set. Here is an example of how to set it:

    config t
    enable password todd1

  8. Notice that the enable secret and enable passwords are They cannot be the same.
  9. Type config t to be at the right level to set your console and auxiliary passwords, then type line?
  10. Notice the output for the line commands is auxiliary, vty, and You will set all three.
  11. To set the Telnet or vty password, type line vty 0 4 and then press Enter. The 0 4 is the five available virtual lines used to connect with Telnet. If you have an enterprise IOS, the number of lines may vary. Use the question mark to determine the last line number available on your
  12. The next command is used to set the authentication on or off. Type login and press Enter to prompt for a user-mode password when tel- netting into the router. You will not be able to telnet into a router if the password is not
    You can use the no login command to disable the user-mode password prompt when using Telnet.
  13. One more command you need to set for your vty password is password. Type password password to set the password. (Password is your )
  14. 14. Here is an example of how to set the VTY passwords:
    {`
      Config t 
      Line vty 0 4
      Login
      Password todd
      `}
  15. Set your auxiliary password by first typing line auxiliary 0 or line aux 0.
  16. Type Login.
  17. Type password password.
  18. Set your console password by first typing line console 0 or line con 0.
  19. Type login.
  20. Type password password. Here is an example of the last two commands:
    {`
      Config t 
      Line con 0
      Login
      Password todd1
      Line aux 0
      Login
      Password todd
      `}
  21. You can add the command Exec-timeout 0 0 to the console 0 line. This will stop the console from timing out and logging you out. The command will now look like this:
    {`
      config t 
      line con 0 
      login
      password todd2 
      exec-timeout 0 0
      `}
  22. Set the console prompt to not overwrite the command you’re typing with console messages by using the command logging synchronous.
    {`
      config t
      line con 0
      logging synchronous
      `}

Lab 4.5: Setting the Hostname, Descriptions, IP Address, and Clock Rate

  1. Log into the router and go into privileged mode by typing en or enable.
  2. Set your hostname on your router by using the hostname Notice that it is one word. Here is an example of setting your hostname:
    {`
      Router#config t 
      Router(config)#hostname RouterA 
      RouterA(config)#
      `}
    Notice that the hostname of the router changed as soon as you pressed Enter.
  3. Set a banner that the network administrators will see by using the banner command.
  4. Type config t, banner ?.
  5. Notice that you can set four different banners. In this Assignment we are only interested in the login and Message of the Day (MOTD)
  6. Set your MOTD banner, which will be displayed when a console, aux- iliary, or Telnet connection is made to the router by typing
    {`
      config t 
      banner motd #
      This is an motd banner
      #
      `}
  7. The preceding example used a # sign as a delimiting character. This tells the router when the message is done. You cannot use the delimiting character in the message.
  8. You can remove the MOTD banner by typing
    {`
      config t
      no banner motd
      `}
  9. Set the login banner by typing
    {`
      config t 
      banner login #
      This is a login banner
      #
      `}
  10. The login banner will display immediately after the MOTD but before the user-mode password prompt. Remember that you set your user-mode passwords by setting the console, auxiliary, and vty line passwords.
  11. You can remove the login banner by typing
    {`
      config t
      no banner login
      `}
  12. You can add an IP address to an interface with the IP address command. You need to get into interface configuration first; here is an example of how you do that:
    {`
      config t
      int e0 (you can use int Ethernet 0 too)
      ip address 1.1.1.1 255.255.0.0
      no shutdown
      `}
    Notice the IP address (1.1.1.1) and subnet mask (255.255.0.0) are configured on one line. The no shutdown (or no shut for short) command is used to enable the interface. All interfaces are shut down by default.
  13. You can add identification to an interface by using the description command. This is useful for adding information about the connection. Administrators only see this, not users. Here is an example:
    {`
      config t 
      int s0
      ip address 1.1.1.2 255.255.0.0
      no shut
      description Wan link to Miami
      `}
  14. You can add the bandwidth of a serial link as well as the clock rate when simulating a DCE WAN link. Here is an example:
    {`
      config t
      int s0
      bandwidth 64
      clock rate 64000
      `}

Review Questions

1. When a router is first booted, where is the IOS loaded by default?

  1. Boot ROM
  2. NVRAM
  3. Flash
  4. ROM
  5. Ans - C

2. What are the two ways that you can enter setup mode on a router?

  1. By typing the clear flash command
  2. By typing the erase start command and rebooting the router
  3. By typing the command setup
  4. By typing the command setup mode
  5. Ans- B,C

3. If you are in privileged mode and want to return to user mode, what command would you use?

  1. Exit
  2. Quit
  3. Disable
  4. Control+Z
  5. Ans- C

4. What editing command moves your cursor to the beginning of the line?

  1. Ctrl+E
  2. Ctrl+F
  3. Ctrl+B
  4. Ctrl+A
  5. Ans- A

5. Which editing command will move your cursor to the end of the line?

  1. Ctrl+E
  2. Ctrl+F
  3. Esc+B
  4. Ctrl+A
  5. Ans- A

6. Which editing command moves your cursor forward one character?

  1. Ctrl+E
  2. Ctrl+F
  3. Ctrl+B
  4. Ctrl+A
  5. Ans- B

7. Which editing command moves your cursor back one word?

  1. Ctrl+E
  2. Ctrl+F
  3. Esc+B
  4. Ctrl+A
  5. Ans- C

8. Which command will show you the IOS version currently running on your router?

  1. Show flash
  2. Show flash file
  3. Show ip flash
  4. Sh ver
  5. Ans- D

9. Which command will show you the contents of the EEPROM in your router?

  1. Show flash
  2. Show flash file
  3. Show ip flash
  4. Sh ver
  5. Ans- A

10. Which command will show you if a DTE or DCE cable is plugged into serial 0?

  1. Sh int s0
  2. Sh int serial 0
  3. Sho controllers s 0
  4. Sho controllers s0
  5. Ans- C

11. What command will stop console messages from writing over the command you are trying to type in?

  1. No logging
  2. Logging
  3. Logging asynchronous
  4. Logging synchronous
  5. Ans- D

12. What command will allow users to telnet into a router and not be prompted with a user-mode password?

  1. Login
  2. No login
  3. You can telnet by default, so no command is
  4. No password
  5. Ans- B

13. What command will set your console to time out after only one second?

  1. Timeout 1 0
  2. Timeout 0 1
  3. Exec-timeout 1 0
  4. Exec-timeout 0
  5. Ans- D

14. How do you only set your Telnet line 1 to a password of bob?

  1. line vty 0 1 Login Password bob
  2. line vty 0 4 Login Password bob
  3. line vty 1 Login Password bob
  4. line vty 1 Password bob Login
  5. Ans- B

15. How do you set the password for the auxiliary port?

  1. Line aux 1
  2. Line aux 0
  3. Line aux 04
  4. Line aux Port
  5. Ans- B

16. Which of the following commands will encrypt your Telnet password on a Cisco router?

  1. Line telnet 0, encryption on, password todd
  2. Line vty 0, password encryption, password todd
  3. Service password encryption, line vty 0 4, password todd
  4. Password encryption, line vty 0 4, password todd
  5. Ans- C

17. What command do you type to back up your currently running con- figuration and have it reload if the router is restarted?

  1. (Config)#copy current to starting
  2. Router#copy starting to running
  3. Router(config)#copy running-config star
  4. Router#copy run startup
  5. Ans- D

18. When using setup mode, what are the two different management setup configurations?

  1. Basic
  2. Advanced
  3. Extended
  4. Expanded
  5. Ans- A,C

19. Which command will delete the contents of NVRAM on a router?

  1. Delete NVRAM
  2. Delete Startup-config
  3. Erase NVRAM
  4. Erase start
  5. Ans- D

20. What is the problem with an interface if you type show interface serial 0 and receive the following message?

Serial0 is administratively down, line protocol is down

  1. The keepalives are different
  2. The administrator has the interface shut
  3. The administrator is pinging from the interface.
  4. No cable is
  5. Ans- B

CCNA Lab Exercises

citation generator
citaion generator
make money online