Lab 4 by Arslan Nadeem
Lab 4 by Arslan Nadeem
In the given picture, we arrange the networking in such a way that it becomes a
network that consist of two LANs. On top we have router which connects LAN 1
to LAN 2(I used different color boxes so that I can easily distinguish between
LANs). LAN 1 contains a switch and two pcs. LAN 2 also contain two pcs
connected to a switch.
We assign each computer an ip address one by one so that every computer has its
own unique ip address
Click on PC, then go to the Desktop button in toolbar. Write IP address of that
device for example I assigned PC1 (192.168.1.10). Once you write the Ip address,
the subnet mask will be automatically generated. In default gateway, we write the
exiting Ip address like if someone write (192.168.1.1), that message will
automatically sended to router.
For PC3 and PC4, the default gateway will be (192.168.2.1) as they both are in
different network. The ip address of PC3 is (192.168.2.10) and PC4 is
(192.168.2.11).
First we change the hostname of router to R1, then we will write the ip address of
the 1st LAN which is 192.168.1.1 also write the subnet mask of the ip address.
No Shut command will open the ports of the interface connected to LAN 1.
Same thing we will do to LAN 2 and that’s it. We’ve configured a small network
with the help of two LANs. Now let’s see if this really work.
PC1 wants to send a message to router. First it will send it to switch, the switch
will check the ip address. As there is no Ip address, the default gateway is set on
the message. Switch will send this message to router as this message is out of this
network. If router receive message successfully then there is no issue in network.
The router received message successfully, which means that there is no issue in
network.