CCNA Course in Urdu Lab 1 Part 2 Cisco Internetworking Operating System (IOS)

 

CCNA Course in Urdu Lab 1 Part 2 Cisco Internetworking Operating System (IOS)




 

LAB#01 Part 2

CISCO INTERNETWORKING OPERATING SYSTEM (IOS)

 

 

 

 

SETTING YOUR PASSWORDS:

 

Basically there are 5 or say 4 important passwords that are to be set on a Cisco Router:

1.     Console line password

2.     Auxiliary line password

3.     Telnet or line vty password

4.     enable password

5.     enable secret password (If you are using this password then no need to use enable password because enable secret password is much better than enable password due to encryption present in it. If a router has both enable and enable secret password then the later will be overwritten on the former one.)

It should be remembered that we can view the password after setting them by using the command show running-config, the interesting observation will be that the enable secret password will not be viewed by us as it will be in encrypted form.

 

For setting the passwords, you should be in   Global configuration mode:

 

Example of enable password

Router(config)# enable password hamdard

 

Example of enable secret password

Router(config)# enable secret hiit

 

Example of telnet lines password

Router(config)# line vty 0 ?               [? Is the last number of vty lines i.e. telnet lines]

Router(config-line)#password CN

Router(confiog-line)#login                [This login command will prompt the user to verify

 for authentication when telnetting into the router]

 

Example of console line password

Router(config)# line console 0

Router(config-line)#password cisco

Router(config-line)#login

 

 

Example of auxiliary line password

Router(config)# line aux 0

Router(config-line)#password ccnlab

Router(config-line)#login

 

 

Click Here To View Video Lecture in Urdu:

Lab 1 Video

SETTING THE HOSTNAMES, DESCRIPTIONS, IP ADDRESS & CLOCK RATE:

 

Example of setting hostname to a router:

Go to the Global Configuration mode and use the command hostname followed by the hostname:

 

Router#config t

Router(config)#hostname Hamdard

Hamdard(config)#

 

Example of setting banners on router:

Go to the global configuration mode and type the command banner ? you will notice that you can set 4 different types of banners. But here we are interested only in Login banner and Message of the day banner (MOTD).

 

  1. MOTD Banner:

Router#conf t

Router(config)# banner motd #

                                    This is an motd banner

                                      #

Router(config)#

 

Notice that # sign is the delimiting character. This tells the router when the message is done. You can’t use this delimiting character in the message itself.

 

Removing the motd banner:

You can remove the MOTD banner by typing:

Router#conf t

Router(config)#no banner motd

 

 

  1. LOGIN Banner:

Router#conf t

Router(config)# banner login #

                           This is a login banner

                            #

Router(config)#

 

The login banner is immediately displayed after the MOTD but before the user mode password propmy. Remember that you set your user mode passwords by setting the console, auxiliary and VTY line passwords.

           

Removing the login banner:

            You can remove the login banner by typing:

            Router#conf t

            Router(config)#no banner login

 

Click Here To View Video Lecture in Urdu:

Lab 1 Video

 

Example of setting ip address on any interface of router:

 

          Ethernet Interface:

            Router#conf t

            Router(config)#interface ethernet 0            (may be fastethernet or fa0, or you can use e0)

            Router(config-if)#ip address 192.168.10.2 255.255.255.0

            Router(config-if)#no shutdown

            You can add description to this interface by using the command description

 

            Router(config-if)#description INTERFACE CONNECTED TO HAMDARD SWITCH

 

            Serial Interface:

            Router#conf t

            Router(config)#interface serial 0       (may be serial 0/0 or s0/0 or s0/0/1 or s0/0/1:1)

            Router(config-if)#ip address 172.20.30.5 255.255.255.0

            Router(config-if)#no shutdown

Router(config-if)#description WAN LINK CONNECTED TO HAMDARD UNIVERSITY.

 

You can also set bandwidth and clock rate on the serial interface (clock rate is set for synchronization between two serial links, at DCE).

 

Router(config)#bandwidth 64

Router(config)#clock rate 64000

 

If you want to check whether your serial link is DCE or DTE then you have to use show controllers command with the serial interface number:

 

e.g. Router#show controllers serial 0/0

This will tell about the DCE and DTE information about that particular link.

 

            Adding multiple addresses on a single interface:

You can add multiple addresses on a single interface by using the keyword secondary after the ip address and subnet mask in the ip address command. We will learn more about it in our R&S Lab.

VERIFYING YOUR CONFIGURATIONS:

Following commands are very important when we are verifying our configurations:

 

  • show interface serial number
  • show interface ethernet number OR show interface fastethernet number           [number may be like 0 or 0/0 or 0/0/0 or 0/0/0:1]
  • For clearing the counters on the interface use the command: clear counters; on the privileged mode.
  • If you want to see layer 3 configurations then you have to use the command sh ip interface
  • If you want to have a quick summary of all interfaces connected to the router then use the command show ip interface brief
  • If you want to see the protocols running on the interfaces then use the command show protocols

 

 

 

Click Here To View Video Lecture in Urdu:

Lab 1 Video