Exp2 CLI
Exp2 CLI
EXPERIMENT NO. 02
We are different modules and panels available in the packet tracer. Some important modules,
which are important to understand for the working in Packet Tracer, are mentioned in the
following diagram.
SHRI VAISHNAV VIDYAPEETH VISHWAVIDYALAYA INDORE
Department of Computer Science, SVIIT
Course Name: Computer Network Course Code: BTIT301N
Now, in order to create a topology, we will have to select some of the devices and put them in
our main window i.e. the white portion of packet tracer. and here how it looks after we add the
devices.
Now, we will have to connect these devices and for that we use cables.
SHRI VAISHNAV VIDYAPEETH VISHWAVIDYALAYA INDORE
Department of Computer Science, SVIIT
Course Name: Computer Network Course Code: BTIT301N
And after you successfully create the topology, you can check either the traffic is flowing or
not by selecting the packet from right panel and putting it on both PCs as follows.
SHRI VAISHNAV VIDYAPEETH VISHWAVIDYALAYA INDORE
Department of Computer Science, SVIIT
Course Name: Computer Network Course Code: BTIT301N
There are different modes. All modes have their own distinct commands.
When you are entering a command, you can use the tab key to complete the command. Enter
the first few characters of a command and press the tab key. If the characters are unique to the
command, the rest of the command is entered in for you. This is helpful if you are unsure about
the spelling of a command. For example, if we write in enable mode, “sh” and press tab button,
“show” command will be written on the CLI mode.
Router Modes
SHRI VAISHNAV VIDYAPEETH VISHWAVIDYALAYA INDORE
Department of Computer Science, SVIIT
Course Name: Computer Network Course Code: BTIT301N
TIP: There are other modes than these. Not all commands work in all modes. Be careful. If
you type in a command that you know is correct—show running-config, for example—and
you get an error, make sure that you are in the correct mode.
Configuring Passwords
Here it is important to know that the enable secret password is encrypted by default. The enable
password is not. For this reason, recommended practice is that you never use the enable
password command. Use only the enable secret password command in a router or switch
configuration. You cannot set both enable secret password and enable password to the same
password. By doing so, it defeats the use of encryption.
Show Commands:
There are various show commands. in order to get familiar with these commands just write
“show ?” in the enable mode.
Similarly, there are various commands that shows us the configurations that we have done on
our router or any other device depending on the device we are working on. We will talk about
later on.
Similarly, there are various commands in the configuration mode which we attain by entering
the following command
Ok, so now lot of things are happening here. Red markers explain them, also we are setting the
hostname of the router and we have successfully applied the password by the following
command.