You are on page 1of 19

TRIBHUVAN UNIVERSITY

INSTITUTE OF ENGINEERING
PULCHOWK CAMPUS

A
LAB REPORT
ON

BASIC CONFIGURATION OF ROUTER

SUBMITTED BY:
PRANAV POUDEL (074BCT026)

SUBMITTED TO:
DEPARTMENT OF ELECTRONICS AND COMPUTER
ENGINEERING

DATE: June 20 2021


Objectives
● To be familiar with Network Simulation Tool: Packet Tracer
● To be familiar with the router, and its different components
● To be familiar with commands for the basic configuration of a router

Requirements
● Network simulation tool: Packet Tracer

Exercise

1.What is a router? Explain its role in computer networks.


The router is a physical or virtual internetworking device that is designed to receive, analyze,
and forward data packets between computer networks. It is a network layer device that
connects different networks.
The main role of the router is to direct the packet to the next network on its journey using the
information in its routing table or routing policy ie. it performs the traffic directing functions on the
Internet. It forwards data by using a unified addressing system. Hence, it can send information
anywhere in the world as long as that location has an IP address.

2. List out the basic configuration commands of the router (that you have used in
this lab) with their syntax and functions.

1. enable
This command logs into enable mode, which is also known as user exec mode or
privileged mode.
2. configure terminal
This command logs into global configuration mode.
3. interface [interfacename number]/[?]
This command logs into interface configuration mode for the specified interface or list out
all the available interface. E.g. for GigabitEthernet 0/0, we write :
interface gigabitEthernet 0/0
For listing out interfaces, we write
interface ?
4. hostname [name]
This command set hostname to the given name of the current Cisco network device.
5. ip address [ip-address mask]
This command assigns IP address and mask
6. shutdown
no shutdown
These commands are used in interface configuration mode. shutdown shuts down the
interface, while no shutdown brings up the interface
7. show running-config
It is an enable mode command that shows the currently running configuration.
8. description [name-string]
It is a config interface command to describe or name an interface
9. ping {hostname | system-address} [source source-address]
It is used in enable mode to diagnose basic network connectivity
10. enable password [pass-value]
It is a configuration mode command that defines the password required when using the
enable command
11. enable secret [pass-value]
It is a configuration mode command that sets Cisco device password that is required for
any user to enter enable mode

3. Note down the observation of each step with necessary commands specified in
the activity C mentioned above and comment on it

1.Perform the basic configuration of the computers and router with the following IP
addresses

Comments
Switch2 was connected to the gigabit ethernet 0/0 port whereas switch3 was connected to
gigabit ethernet 0/1 with IP address assigned to these interfaces of routers as 200.10.8.1 and
200.10.9.1 respectively with subnet 255.255.255.0. enable, configure, interface and ip
address commands were used to configure these interfaces. All these devices were connected
through a straight-through cable.
2. Change the hostname of the router as your “First Name”

Comments
enable was used for getting into Privileged EXEC mode where configure was used to getting
into global configuration mode and hostname command was used to change the hostname to
my First Name i.e. Pranav. After changing the hostname, the prompt of consol changed from
Router to Pranav as shown in the figure above.
3. Use ping command to test the connectivity from PC0 to PC1, both IP addresses of
Router, PC2 and PC3. Observe the result and note it down.

Fig: ping command from PC0 to PC1 and gigabit Ethernet 0/0 interface of the router
Fig: ping command from PC0 to gigabit Ethernet 0/1 interface of the router, PC2 and PC3
respectively
4.Use ping command to test the connectivity from PC3 to PC0, PC1, both IP addresses of
Router and PC2. Observe the result and note it down.

Fig: ping command from PC3 to PC0, PC1 and GigabitEthernet 0/0 interface of the router,
respectively.
Fig: ping command from PC3 to GigabitEthernet 0/1 interface of the router and PC2
respectively.
Comments
In both activities 3 and 4, we first went to the command prompt of respective End Devices (PC0,
PC3) and use ping command to test connectivity between devices across the networks i.e
PC0, PC1, PC2, PC3 and router. Two common situations were observed in both activities.
1. It was observed that connectivity between end devices that are on the same side of
router interfaces as well as interfaces that are connected to was verified using ping. I.e.
PC0 with PC1 and GigabitEthernet 0/0 and PC3 with PC2 and GigabitEthernet 0/1.
2. Connectivity between devices that are connected to different router interfaces as well as
different router interfaces was not verified i.e. PC0 with PC3, PC2, GigabitEthernet0/1
and PC3 with PC0, PC1, GigabitEthernet0/0.
The reason behind these two differences observation was not assigning the default gateways to
these end devices. Due to Subnet, they know whether these devices are connected to their own
network or not but not having a default gateway they don’t know where to deliver it even if they
are connected to the same router.

5. Use ping command to test the connectivity from Router to PC0, PC1, PC2 and PC3.
Observe the result and note it down.

Fig: using ping command in router to test connectivity between different devices and router.
Comments
Here, we can see that all the connectivity between router and devices (PC0, PC1, PC2 and
PC3) was verified but the success rate was 80% in all these devices.

6. Set the default gateway of PC0 and PC1 as 200.10.8.1. Similarly set the default gateway
of PC2 and PC3 as 200.10.9.1.

Fig: Assigning Default Gateway of PC0 to 200.10.8.1


Fig: Assigning Default Gateway of PC1 to 200.10.8.1
Fig: Assigning Default Gateway of PC2 to 200.10.9.1
Fig: Assigning Default Gateway of PC3 to 200.10.9.1

Comments
Gateway was assigned to respective end devices through clicking these devices where a
window opened up as shown in figures above.
7. Repeat steps 3, 4 & 5 and note down the result.

Fig: ping command from PC0 to PC1 and both interface of the router respectively.
Fig: ping command from PC0 to PC2 and PC3 respectively.
Fig: ping command from PC3 to PC0 and PC1 respectively.
Fig: ping command from PC3 to both interfaces of the router and PC2 respectively.
Fig: using ping command in the router to test connectivity between different devices and router.

Comments
Slightly different observations were observed than the previous one. By introducing the default
gateway, connectivity between all the end devices were verified unlike the previous one and
when using a ping command from router to end devices, the success rate was 100%.
Conclusion
Hence, we became familiar with the basic configuration of the router. We discuss the router, its
components and interface. We use a cross-platform visual simulation tool called Packet Tracer
developed by Cisco System to perform our lab activities. A network was designed and a router
in that network was configured in Packet Tracer and various basic configurations were observed
and insights were given to these observations. Finally, the importance of gateway for
connectivity between different networks using router was realized and configured accordingly to
get the desired results.

You might also like