Lab Worksheet 1
Basic Configuration and Set-up of Routers and Switches
I. Objectives
To be able to familiarize the students in the use of network simulators like Cisco Packet Tracer and
explore the significance of each CLI modes.
To be able to familiarize the students in basic configuration and set-up of routers and switches.
II. Discussion of the Theory
Figure 1: Sample view of Cisco Packet Tracer
Packet Tracer is a simulation tool designed by Cisco Systems. It allows users to create network
topologies to simulate the configuration of routers and switches using a command line interface. Throughout
the lab modules you will be configuring different commands that require changing from one mode to
another.
The basic CLI modes that we will be referring below are as following:
1. Cisco> User EXEC Mode
2. Cisco# Privileged EXEC mode
3. Cisco (config)# Global configuration Mode
4. Cisco (config-if)# Interface configuration Mode
5. Cisco (config-line)# Line configuration Mode
1
CONFIGURING YOUR ROUTER
Step 1: Getting Started
Access a router (2901 model) and place it to workspace. Double click the router and go to its
command line interface (CLI). Devices are in the bottom left corner of the workspace.
Step 2: Configure an administration password (enable secret password).
Enter into Global Configuration mode from the Privileged EXEC mode:
Router> enable <– User EXEC Mode
Router# configure terminal <– Privileged EXEC mode
Router(config)# <– Global Configuration Mode
In Global Configuration Mode you configure parameters that affect the whole router device. Here
we will configure the enable secret password that you will be using from now on to enter into
Privileged EXEC Mode from User EXEC Mode.
Router(config)# enable secret cisco123
From now on, when you log in from user EXEC mode you will be asked for a password.
Step 3: Configure a password for telnet access and console access.
It is suggested also to configure a password for the Telnet Lines (VTY lines) which will secure
your access when connecting via Telnet over the network. This goes with the console access as
well.
Router(config)# line vty 0 4
Router(config-line)# password cisco123
Router(config-line)# login
Router(config-line)# exit
Router(config)#
Router(config)# line console 0
Router(config-line)# password cisco123
Router(config-line)# login
Router(config-line)# exit
Router(config)#
2
Step 4: Set up a Hostname to distinguish the router in the network.
To differentiate your Router from other devices in the network, you should configure a hostname
to your router.
Router(config)# hostname My-Router
My-Router(config)#
Notice that your Router prompt changes to the new hostname that you have just set.
Step 5: Configure IP addresses for Router Interfaces
This is an essential step in order for your router to be able to forward packets in the network. The
most basic parameter for a Router Interface is the IP address. From Global Configuration Mode
you need to enter into Interface Configuration Mode:
My-Router(config)# interface gigabitethernet 0/0
My-Router(config-if)# ip address 100.100.100.1 255.255.255.252
My-Router(config-if)# no shutdown
My-Router(config-if)# exit
My-Router(config)#
My-Router(config)# interface gigabitethernet 0/1
My-Router(config-if)# ip address 192.168.10.1 255.255.255.0
My-Router(config-if)# no shutdown
My-Router(config-if)# exit
My-Router(config)#
Step 6: Save your configuration
Save your current running configuration into NVRAM. This will overwrite the startup configuration.
My-Router(config)# exit
My-Router# copy running-config startup-config
Step 7: Verifications
Use show commands to verify status, setting and configurations. Use the IOS help (?)
You can display your current configuration to verify your settings as following:
My-Router# show ?
My-Router# show running-config
My-Router# show ip interface brief
3
CONFIGURING YOUR SWITCH
Step 1: Getting Started
Access a switch (2960 model) and place it to workspace. Double click the switch and go to its
command line interface (CLI). Devices are in the bottom left corner of the workspace.
Step 2: Configure an administration password (enable secret password).
Switch> enable
Switch# configure terminal
Switch (config)# enable secret cisco123
Step 3: Configure a password for telnet access and console access.
Switch (config)# line vty 0 15
Switch (config-line)# password cisco123
Switch (config-line)# login
Switch (config-line)# exit
Switch (config)#
Switch (config)# line console 0
Switch (config-line)# password cisco123
Switch (config-line)# login
Switch (config-line)# exit
Switch (config)#
Step 4: Set up a Hostname to distinguish the switch in the network.
Switch(config)# hostname Access-Switch1
Access-Switch1(config)#
Step 5. Assign IP address to the Switch for Management
!Management IP is assigned to Vlan 1 by default
Access-Switch1 (config)# interface vlan 1
Access-Switch1 (config-if)# ip address 10.1.1.200 255.255.255.0
Access-Switch1 (config-if)# exit
Access-Switch1 (config)#
4
Step 6. Assign default gateway to the switch
Access-Switch1 (config)# ip default-gateway 10.1.1.254
Step 7. Disable unneeded ports on the switch
! This step is optional but enhances security
! For 2960 switch, it has 24 ports. Let’s try to disable the ports 13-24.
Access-Switch1 1(config)# interface range fa 0/13-24
Access-Switch1 (config-if-range)# shutdown
Access-Switch1 (config-if-range)# exit
Access-Switch1 (config)#
Step 8. Save the configuration
! A shortcut way of saving running configuration to start-up configuration.
Access-Switch1 (config)# wr
III. Lab Exercise
Router 1
Router 2
Serial 0: Serial 0
10.0.xx.1/24 10.0.xx.2/24
Fa 0/0 Fa 0/1
192.168.xx.1/24 192.168.yy.1/24
Switch 1
Switch 2
Host D
Host A 192.168.yy.6/24
192.168.xx.3/24 Host C
Host B 192.168.yy.4/24
192.168.xx.10/24
Task 1
Set-up the above network topology and save it as Lab1 Basic Configurations Pair xx Block y. (Example
Lab 1 Basic Configuration Pair 01 Block 1)
Be mindful of the cable being used to connect the devices.
Task 2.
Configure the routers and switches with details provided on the above topology.
Named the routers as:
Router 1 Router_1
Router 2 Router_2
5
Task 3.
Step 1: Perform basic connectivity test from hosts to the routers.
a. Is ping successful from
Host A to Host B? ______
Host A to Router 1? _____
Host A to Router 2’s serial 0? _____
Router 1 to Router 2?______
Host A to Host C? ______
Host C to Host D? ______
b. Perform a trace from Host A to Host D, what is your observation on the result? Use the tracert
command.
Step 2: Telnet either from Host A to Router 1 or Host C to Router 2. What is your observation on the
result? Use the telnet command.
Task 4.
Using show commands, verify the following;
1. show version
IOS version of Router 1: _________
IOS image of Router 1: __________
uptime of Switch 2 : ____________
RAM of Router 2: ______________
Configuration Register of Router 2: ____________
2. show interface Serial 0
Interface status in Router 1:__________________
Bandwidth: _________
Reliability :__________
MTU: ______________
Output drops: ________
Duplex:_____________
3. show ip interface brief
Describe the output of Router 2:
6
4. show cdp neighbor
Describe the output in Router 1
5. show run
Describe the output in Router 2
IV. Conclusion
*End of Lab Worksheet 1*
7