0% found this document useful (0 votes)
67 views

CCN Lab 7

This document provides instructions for a lab on router configuration using the command line interface. It discusses the different modes of a Cisco router, including user EXEC mode, privileged EXEC mode, global configuration mode, and interface configuration mode. It also explains how to set passwords to control access to privileged modes using commands like enable password and enable secret. The objectives are to learn about router configuration modes, commands, and setting passwords from the CLI.

Uploaded by

sameen khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
67 views

CCN Lab 7

This document provides instructions for a lab on router configuration using the command line interface. It discusses the different modes of a Cisco router, including user EXEC mode, privileged EXEC mode, global configuration mode, and interface configuration mode. It also explains how to set passwords to control access to privileged modes using commands like enable password and enable secret. The objectives are to learn about router configuration modes, commands, and setting passwords from the CLI.

Uploaded by

sameen khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Riphah International University, Islamabad

Faculty of Computing
Riphah International University, Islamabad
Faculty of Computing (WISH)
Fall-2021
Computer Communications and Network Lab
LAB – 7

Course Computer Communication and Network Lab


Course Ms. Sabahat Ajaz
Instructor
Credit Hour 1
Lab No. 7 Router Configuration using CLI

Lab
Objective
To make students learn about router configuration and its modes from command
line. They learn about commands and password setting.
Tools PC/Laptop, Lab Manual, Notebook

Background:

Cisco router and cisco Router have different modes for different operations depending upon the privileges of the
users. Cisco router basically have three modes namely cisco exe mode, cisco enable mode (cisco privileged
mode) and global configuration mode. Each mode offers different cisco commands for router configuration.

1-
Riphah International University, Islamabad
Faculty of Computing

User EXEC Mode

After you access the device, you are automatically in user EXEC command mode. The EXEC commands
available at the user level are a subset of those available at the privileged level. In general, use the user EXEC
commands to temporarily change terminal settings, perform basic tests, and list system information. The
supported commands can vary depending on the version of software in use.
To display a comprehensive list of commands, enter a question mark (?) at the prompt.

Privileged EXEC Mode

Because many of the privileged commands configure operating parameters, privileged access should be
password-protected to prevent unauthorized use.
The privileged command set includes those commands contained in user EXEC mode, as well as
the configure privileged EXEC command through which you access the remaining command

2-
Riphah International University, Islamabad
Faculty of Computing
modes. If your system administrator has set a password, you are prompted to enter it before being granted
access to privileged EXEC mode.
The password does not appear on the screen and is case sensitive.
The privileged EXEC mode prompt is the device name followed by the pound sign (#).

The supported commands can vary depending on the version of software in use.
To display a comprehensive list of commands, enter a question mark (?) at the prompt.

To return to user EXEC mode, enter the disable privileged EXEC command.

Global Configuration Mode

Global configuration commands apply to features that affect the device as a whole. Use the configure privileged
EXEC command to enter global configuration mode.
The default is to enter commands from the management console.
When you enter the configure command, a message prompts you for the source of the configuration commands:
Router# configure Configuring from terminal, memory, or network [terminal]?

You can specify either the terminal or NVRAM as the source of configuration commands. This example shows
you how to access global configuration mode:

The supported commands can vary depending on the version of software in use. To display a comprehensive list
of commands,
Enter a question mark (?) at the prompt.

To exit global configuration command mode and to return to privileged EXEC mode, enter the end or exit
command, or press Ctrl-Z.

Interface Configuration Mode

Interface configuration commands modify the operation of the interface. Interface configuration commands always
follow a global configuration command, which defines the interface type.

3-
Riphah International University, Islamabad
Faculty of Computing
Use the interface interface-id command to access interface configuration mode. The new prompt means interface
configuration mode.

The supported commands can vary depending on the version of software in use.
To display a comprehensive list of commands, enter a question mark (?) at the prompt.

To exit interface configuration mode and to return to global configuration mode, Enter the exit command.
To exit interface configuration mode and to return to privileged EXEC mode, Enter the end command, or press
Ctrl-Z.

Enable Password

To set a local password to control access to various privilege levels, use the

Command in global configuration mode. To remove the password requirement, use the no form of this command.

Syntax Description

4-
Riphah International University, Islamabad
Faculty of Computing

Configuring console password of a CISCO routers:

1. Enter global configuration mode of the CISCO router.


2. Put the command line console 0 to the router.
3. Provide the password by using password command. For example, if you want to put password "cisco" then the
command will be password cisco.
4. At last, put the command login.

Commands for configuring console password

5-
Riphah International University, Islamabad
Faculty of Computing
Why enable password is required?

Enable password is required to restrict the access of privileged EXEC mode.

Configuring enable password of a CISCO router:

From the global configuration mode, use the command enable password to restrict access to privileged EXEC
mode. However, this password is visible in the routers configuration file. To encrypt the password, enable secret
command is required. By using enable secret command the password is encrypted and can't be readable to a
human.

Perform password encryption:

6-
Riphah International University, Islamabad
Faculty of Computing
Download Cisco Packet Tracer software

https://www.netacad.com/courses/packet-tracer

7-

You might also like