You are on page 1of 4

Marwadi University

Faculty of Engineering and Technology


Department of Information and Communication Technology
Subject: Computer Aim: Perform basic CLI commands to configure switch and router.
Networks (01CT0503)
Experiment No: 02 Date:07-08-2023 Enrolment No: 92100133062

Aim: Perform basic CLI commands to configure switch and router.


 First shown in image, we have connected routers with switch at for providing internet
connection and one pc ins connected with switch for internet usage at port fast-ethernet.

 Below shown screen is terminal of CLI (Command Line Interface) where we can configure and
operate different devices using different commands.
 First “Router>” shows that we are currently in user mode where we do not have such
privileges to change any configurations any device connected with router.
 So for configuration purpose first we uses command “enable”, by which we can transfer from
user mode to privilege mode. Here in privilege mode, we some privileges by which we can
show current running configurations and many more things.
 For configuring router, we should transfer to configuration mode where we can shift through
“config t” command.
 The “enable secret” command is used to set password for other user to prevent changes
without permission and for security reasons.
 When we set password by “enable secret” command, after exiting to user mode when we try
to enter in privilege mode we want to enter password to enter otherwise we cannot enter in
privilege mode.
 For exiting from configuration mode to privilege mode, we uses “exit” command and for
privilege to user mode same command is used.
Marwadi University
Faculty of Engineering and Technology
Department of Information and Communication Technology
Subject: Computer Aim: Perform basic CLI commands to configure switch and router.
Networks (01CT0503)
Experiment No: 02 Date:07-08-2023 Enrolment No: 92100133062
Marwadi University
Faculty of Engineering and Technology
Department of Information and Communication Technology
Subject: Computer Aim: Perform basic CLI commands to configure switch and router.
Networks (01CT0503)
Experiment No: 02 Date:07-08-2023 Enrolment No: 92100133062

 In below shown code, “line vty” command is used to set password to set any device virtually
and which can operate it from any place. For this we first limits number of devices for remote
access and then we set one password for security of information
 Last we used “login” command, which is used to stop the user from start writing command
until he/she enters correct password.
 The “line console” command is used to set password at the starting of the cli screen. When you
enter in screen, you must enter password to enter in user mode.

 See in below image, when we try to entre in user mode is shows “Enter Password” for user
authentication.
 There is also good feature in this tool that if we enter password, it does not shows password
on screen.
 When you enter password enter and press enter, if password is correct then you enters in user
mode otherwise it will not allow you to enter in user mode.
Marwadi University
Faculty of Engineering and Technology
Department of Information and Communication Technology
Subject: Computer Aim: Perform basic CLI commands to configure switch and router.
Networks (01CT0503)
Experiment No: 02 Date:07-08-2023 Enrolment No: 92100133062

 There are many more commands for other tasks like

 The “show running-config” command shows all current running tasks( or commands ).
 The “ping” command sends 32 bit packet to destination address which we provide and it
checks whether the system is connected with destination device or not.

Conclusion:

From this assignment or practical task, I got to know many new things related to command line
interface (cli) and how they used based on wired or wireless connection.
I also learned what is the use of IP address and why it is used like when we connect any device with
switch or router, we need to set that port for communication which requires IP address of that device and
for requesting purpose for data transmission IP address is very important.
I have learned the physical overview of different devices and how they get connected with other
devices and when to use which type wire in communication.

You might also like