CCN Lab 7
CCN Lab 7
Faculty of Computing
Riphah International University, Islamabad
Faculty of Computing (WISH)
Fall-2021
Computer Communications and Network Lab
LAB – 7
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
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.
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 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 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
5-
Riphah International University, Islamabad
Faculty of Computing
Why enable password is required?
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.
6-
Riphah International University, Islamabad
Faculty of Computing
Download Cisco Packet Tracer software
https://www.netacad.com/courses/packet-tracer
7-