DCCN - Lab 1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

IQRA UNIVERSITY GULSHAN CAMPUS

Department of Computer Science

DATA COMMUNICATION AND COMPUTER NETWORKS

LAB EXPERIMENT # 1

Basic Switch Configuration

Switch name : IU
First Computer : PC0, 192.168.1.1
Second Computer : PC1, 192.168.1.2
Line Console pwd : cisco
Enable Secret pwd : cisco123

OBJECTIVE:-
 Configure a switch with name
 Configure passwords to ensure that access to the CLI is secured.
- Configure Console password.
- Privilege mode password.
- User Authentication.
- Telnet Password.
- Verify Passwords, Authentication and User status.
 Configure Banner on switch.
 Connect PC0 and PC1 to the switch as shown in the diagram.
 Assign Static IP address to both PC’s.
 Verify the connectivity by sending PING message from PC0 to PC1.
 Save the active configuration.

PROCEDURE AND OBSERVATION:

Switch>enable
Switch# configure terminal

How to Set Hostname


Switch(config)# hostname CISCO

Configure Console Password


CISCO(config)# line console 0
CISCO(config-line)# password cisco
CISCO(config-line)# login
How to Set Privilege level password
!!! Clear Text Password not encrypted (less priority)
CISCO(config)# enable password sherry

!!! Encrypted password (more Priority)


CISCO(config)# enable secret cisco123

Verify the Password


CISCO(config)# exit
CISCO# exit

CISCO con0 is now available

Press RETURN to get started.

User Access Verification


!!! TYPE HERE LINE CONSOLE Password
Password:

CISCO>enable
!!! TYPE HERE Privilege Level Password
Password:

How to Set User Authentication in Switch


CISCO# conf t
CISCO(config)# line console 0
CISCO(config-line)# login local
CISCO(config-line)# exit
CISCO(config)#username sherry password 123

Verify the Authentication


CISCO(config)# exit
CISCO# exit
User Access Verification

Username: sherry
Password:
CISCO> enable
Password:

Verify the User Status


!!!The * Shows user is active and Connected to Console Port
CISCO# sh users
Line User Host(s) Idle Location
* 0 con 0 sherry idle 00:00:00

How to Set Telnet password


CISCO(config)# line vty 0 15
CISCO(config-line)# password cisco
CISCO(config-line)# login
CISCO(config-line)# exit
!!! Encrypted Telnet password
CISCO(config)# service password-encryption

How to Set Banner

CISCO(config)# banner motd # 10 YEARS OF CTTC #

Verify the Banner


CISCO(config)# exit
CISCO# exit

10 YEARS OF CTTC
User Access Verification

Username: sherry
Password:
CISCO>enable
Password:
CISCO#

Save the configuration


IU# copy running-config startup-config
Destination filename [startup-config]?[Enter]
Building configuration...

[OK]
IU#

Configuration upload is successfully completed.

Examine the startup configuration file


a. To see the configuration that is stored in NVRAM, type show startup-config from the
privileged EXEC (enable mode).

IU# show startup-config

Exit the switch


Leave the switch welcome screen by typing exit as follows:

IU# exit

Assign IP addresses to both Computers

a. Click on PC0, Go to Config and assign IP address 192.168.1.1 to Fast Ethernet


Click on PC1, Go to Config and assign IP address 192.168.1.2 to Fast Ethernet

b. Open Command Prompt on PC0


Ping PC1 by using the command below

PC>Ping 192.168.1.2
*************************************
Only Authorized Users are allowed
*************************************

You might also like