Lab#5

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

Computer COM.

Network Laboratory

EXPERIMENT: Building a LAN Network using a Router


EXPERIMENT#: 5
SEMESTER: 7th
PROGRAM: BE ELCTRICAL ENGINEERING
______________________________________
COURSE TRACHER: ENGR. NOMAN MUSLIM
(noman.ee@suit.edu.pk)
ACCESS AT: portal.suit.edu.pk
Electrical Engineering Department, SUIT Peshawar.
LAB 5
Building a LAN Network using a Router
Objective
 How connect and configure two networks in LAN
 How to configure interfaces for a Router
Steps:
1. We opened the Cisco Packet Tracer Software, and in the window dragged Three laptops
(Laptop0, Laptop1 and Laptop2) at the left side and three laptops (Laptop3, Laptop4
and Laptop5) at the right side.
2. Next we assigned one switch (Switch0) to the left side and assigned another
switch (Switch1) to the right side.
3. Then after that we connected the left side of laptops to the switch0 and right side of
the laptops to the switch1.
4. After connecting them we got two networks say network A to the left side and network B
to the right side.
5. Before we moved on we assigned IPs to our devices.
6. We assigned different class IPs to these networks. For network A we assigned Class C
IP while to network B we assigned Class A IP.

7. The devices of the network A were assigned the IP Addresses from the Class C having
subnet mask (255.255.255.0).The Gateway to this network was assigned as
192.168.1.100 which will be later on be using while we connect the router.
a. Laptop0 was assigned IP Address:192.168.1.1 and Gateway:192.168.1.100
b. Laptop1 was assigned IP Address:192.168.1.2 and Gateway:192.168.1.100
c. Similarly, Laptop2 was assigned IP Address:192.168.1.3
and Gateway:192.168.1.100
8. The devices to the network B were assigned the IP Addresses from Class A having
subnet mask(255.0.0.0).The Gateway to this network was assigned as 12.0.0.100
a. Laptop 3 was assigned IP Address:12.0.0.1 and Gateway:12.0.0.100
b. Laptop 4 was assigned IP Address:12.0.0.2 and Gateway:12.0.0.100
c. Similarly, Laptop 5 was assigned IP Address:12.0.0.3 and Gateway:12.0.0.100
9. The whole network will look like the following:

10. Then we placed a router from the console below in the router category, and
dragged Router 1941 router to the middle of the networks.
11. We connected the two networks to the router i.e. from Switch0 and Switch1.

12. For configuration we first entered to each interface of both networks, then got them
ON, then Assigned IP’s to each and then got exit.

13. The steps taken to configure the router for these networks involved the followings:
Prepared by: Engr. Noman Muslim
Electrical Engineering Department Computer Networks 18
Sarhad University of Science and IT Peshawar
a. Double click on Router
b. Go to CLI
c. Type ‘No’ to continue with configuration dialogue.
d. Type ‘enable’ to go to Privilege mode
e. Type ‘Configure Terminal’ to go to Configuration mode in which we
will configure the router.
f. It’s time to set an interface, first look at the left side network interface which is
Gig0/0. So, type ‘interface Gigabitethernet 0/0’ and hit enter
g. Type ‘no shutdown’
h. Give Gateway Address of network A along with subnet mask by writing ‘IP
address 192.168.1.100 255.255.255.0’ and hit enter.
i. Now then write ‘exit’ and press enter.
j. Now similarly for another network, first know its interface which is Gig0/1 and
then write ‘Interface Gigabitethernet 0/1’, then write ‘no shutdown’.
k. Then assign Gateway Address of network B along with its subnet mask as
well. So, write ‘IP address 12.0.0.100 255.0.0.0’ and then write ‘exit’ and hit
enter.

Prepared by: Engr. Noman Muslim


Electrical Engineering Department Computer Networks 19
Sarhad University of Science and IT Peshawar
14. For checking the network we noticed that all the green symbols to every device
were there which showed us that the connection were totally successful.
15. For simulation, we run the PDU test, by dragging a data packet from any laptop say
Laptop4 to the Laptop 2.
16. We saw that the packet started from Laptop 4 via hub then via router and sent to
Laptop2 successfully.
17. This clearly showed us that the connection of the network is all OK.

Prepared by: Engr. Noman Muslim


Electrical Engineering Department Computer Networks 20
Sarhad University of Science and IT Peshawar
18. Click on anyPC of network B Then Click on Command Prompt
19. Now Ping any PC of Network A ( i.e. ping 192.168.1.2)

Prepared by: Engr. Noman Muslim


Electrical Engineering Department Computer Networks 21
Sarhad University of Science and IT Peshawar

You might also like