Lab 4
Lab 4
Teacher Signature:
1
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
LAB EXPERIMENT # 4
OBJECTIVE:
2
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
THEORY:
The IOS software provides access to several different command modes. For security
purposes, the IOS software provides two levels of access to commands.
The Unprivileged user mode is called user EXEC and the privileged mode is called
privileged EXEC mode and requires a password. The commands available in user EXEC
mode are a subset of the commands available in privilege EXEC mode.
3
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
Switch>enable
Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#exit
Switch#
Switch#disable
Switch>
Switch(config)#exit
Switch#exit
4
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
You can name your Switch using the hostname IOS command. You name all your
routes using meaningful names to ease identification and management of each
Switch. This is needed, when you are working on large networks.
You can configure authentication passwords for your Switch using IOS
commands. You can configure several passwords for different types of access.
Console password is used for console access through the console port or through a
console Terminal Server. The line console 0 command selects the console line.
Cisco devices have only one console line: console 0
Switch(config)#line console 0
Switch(config-line)#password bukc
Switch(config-line)#login
If the login command is not entered than the password will not be applied.
From now on, anytime you connect to the console line you will prompt to
provide a password. To disable the authentication prompt, issue line console 0
again and enter the no login command.
Switch(config-line)#CTRL^Z
Switch#exit
Displaying all users
5
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
Encrypting passwords
You can optionally configure a banner for your Switch using banner IOS
command. The purpose of a banner is to display a brief message about the
Switch when you log in.
Example
OR
6
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
To verify the set time, run show clock command on the privileged mode.
Lab Assignments:
Task#1
When you are logged into a switch, which prompt indicates that you are
in privileged mode?
Task#2
Create two users Admin_'yourfirstname' and Admin_'yourlastname' grant all privileges to
them then login by using Admin_'yourfirstname' then remove (Admin_'yourlastname').
Clearly show command for every step.
Task#3
Show the encrypted console password, Privilege mode passwords and all user’s passwords.
Task#4
Set the clock to your date of birth, and show the show clock results
TIME BOXING:
Teacher Signature:
7
Software Engineering Department
Bahria University (Karachi Campus)
Lab Manual: Computer Communication & Networking
8
Software Engineering Department
Bahria University (Karachi Campus)