October 17, 2012

Packet Tracer CLI

There are various common commands that one needs to be familiar with. These commands will be used all the time.

There are different modes. All modes have their own distinct commands.

clip_image002

 

All the configuration commands will be written in configuration mode.

Using the tab Key to Complete 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.

clip_image002[6]

Router Modes

clip_image002[16]

clip_image004

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.

Entering Global Configuration Mode

clip_image006

Configuring a Router Name

This command works on both routers and switches.

clip_image002[18]

Configuring Passwords

These commands work on both routers and switches.

clip_image004[5]

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.

show

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

Router# configure terminal.

Look at the following diagram.

basic

 

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.

enable password cisco

Here, “cisco” is the password.

 

Similarly, the command

router#show ip interface brief

gives us the information about the interfaces of the router. Now, detail discussion on the interfaces will be done later.

10 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. There are more Cisco templates and examples to be used freely in creately diagram community

    ReplyDelete
  3. for a person lik me who only needs to recal my commands and procesess...d info has bin really useful....tnks xo much

    ReplyDelete
  4. This is to a great degree exquisitely created and your concentrations are especially imparted. Generous, completely never quit creating. All the best web journals that is extremely valuable for keeping me share the thoughts without bounds also this is truly what I was searching for, and I am exceptionally upbeat to come here.
    Ethernet Cables

    ReplyDelete
  5. Great post and great thoughts. Also you can use different types of online tools which will help you in drawing these templates easily. creately cisco network diagrams

    ReplyDelete

  6. It is very useful and knowledgeable. Therefore, I would like to thank you for the efforts you have made in writing this article.

    WS-C3650-24PS-E
    WS-C3650-24TD-L
    WS-C3650-24PD-S

    ReplyDelete

C program to Read From a File

#include <stdio.h> #include <stdlib.h> void main() {     FILE *fptr;     char filename[15];     char ch;   ...