0% found this document useful (0 votes)
56 views

Computer Network - Priya (Lab Notebook)

Uploaded by

arcaneteen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Computer Network - Priya (Lab Notebook)

Uploaded by

arcaneteen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Page |1

MAULANA ABUL KALAM AZAD UNIVERSITY OF


TECHNOLOGY

COMPUTER NETWORK’S LAB


NOTEBOOK

NAME: PRIYA BARDHAN


DEPARTMENT: MCA SEM:1st
ROLL NO.:10071023019
REGISTRATION NO.:231000510713
PAPER NAME: COMPUTER NETWORK
PAPER CODE: MCAC192
Page |2

Sl No. Experiments Page No.

1. Create a LAN using 3 devices with a Switch. 3-4

2. Create a LAN using 10 devices with a Switch and use optimal ip 5-7
addressing.

3. Connect Two different LAN networks with Static Routing. 8-11

4. Create VLAN inside a Network. 12-16

Date: Signature by Teacher’s:


Page |3

EXPERIMENT-1
Creating a LAN using 3 devices with a Switch

OBJECTIVE:
• Connect 3 End devices with Switch.
• Ping all the devices in the same LAN network.

PREPARATION:
In this activity, we will configure a LAN with 3 end devices
connected to a switch using Cisco packet Tracer. Connect the
end devices with the switch using copper straight-through
cable and set IP for each workstation.
We will verify the connection by pinging the devices in the
same network.
Page |4

STEP-1: TAKE 3 END DEVICES AND A SWITCH


Here We will select 3 end devices and a Switch for making a
LAN.

STEP-2: CONNECT THEM WITH COPPER STRAIGHT-THROUGH WIRE.


As PC and Switch are different devices, copper-straight
through cable is used for connecting them.

STEP-3: SET IP FOR EACH END DEVICES


According to the given Network address set IP and subnet
mask for each of the end devices.

STEP-4: USING PING COMMAND IN COMMAND PROMPT


After the connection is established, we can click on any
device -> Desktop and then using run ,can ping all the devices
in the same LAN.
Page |5

EXPERIMENT-2
Creating a LAN using 10 devices with a Switch and using an
optimal IP addressing.

OBJECTIVE:
• Connect 10 End devices with Switch.
• Use Optimal IP addressing.
• Find Subnet Mask, Network Address and Broadcast
Address.
• Ping all the devices in the same LAN network.

PREPARATION:
In this activity, we will configure a LAN with 10 end
devices connected to a switch using Cisco packet Tracer.
Connect the end devices with the switch using copper
Page |6

straight-through cable and before setting the IP ,We have to


optimize IP addresses so that there will be least wastage of
address.
We will verify the connection by pinging the devices in the
same network.

STEP-1: TAKE 10 END DEVICES AND A SWITCH


Here We will select 10 end devices and a Switch for making a
LAN.

STEP-2: CONNECT THEM WITH COPPER STRAIGHT -THROUGH WIRE.


As PC and Switch are different devices, copper-straight
through cable is used for connecting them.

STEP-3: OPTIMIZE IP ADDRESSES


We are connecting 10 Pcs so the least amount of IP that we
can get is 24 =16, where 2 of them is reserved for Network
Address and Broadcast Address. So, we can connect 14 hosts
in this network.

STEP-4: SET IP FOR EACH END DEVICES


According to the given Network address set IP and subnet
mask for each of the end devices.
In this case subnet mask will be 255.255.255.240
Page |7

If any random IP address belonging to the network is:


192.168.1.2
Then the Network Address:192.168.1.0/28 (Replaces all
Host bit to 0)
And,
Broadcast Address:192.168.1.15/28 (Replaces all Host bit to
1)

STEP-5: USING PING COMMAND IN COMMAND PROMPT


After the connection is established, we can click on any
device -> Desktop and then using run , can ping all the
devices in the same LAN.
Page |8

EXPERIMENT-3
Connect Two different LAN networks with Static Routing.

OBJECTIVE:
• Connect Two different LAN with the help of static
routing.
• Sending packets from one network to another.
PREPARATION:
In this activity, we will configure 2 LAN with 3 end devices
in each of the network connected by the switches and they
are connected to routers. Here we have taken 2 Routers as
for a router one IP address is used in the private LAN and
another for public IP. Here we have connected all the devices
with automatically choose connection type cable.
We will verify the connection by pinging the devices or
sending msg.
Page |9

STEP-1: TAKE 6 END DEVICES 2 SWITCHES AND 2 ROUTERS


We will create 3 networks with the devices.

STEP-2: CONNECT THEM WITH AUTOMATICALLY CHOOSE CONNECTION


TYPE CABLE

As the problem doesn’t state use of any specific cable we


will use automatically choose one.

STEP-3: SET IP AND DEFAULT GATEWAY FOR END DEVICES


For LAN-1: Network Address:192.168.1.0
Default Gateway:192.168.1.1
For LAN-2: Network Address:192.168.2.0
Default Gateway:192.168.1.1
In both the cases subnet mask will be 255.255.255.0

STEP-4: SET ROUTER’S FAST ETHERNET ADDRESS


For Router0: Set Fa 0/0 as the default gateway address of
LAN-1.
And Fa 0/1 will be the public ip. Which is 192.168.3.2 in this
case.
P a g e | 10

For Router1: Set Fa 0/0 as the default gateway address of


LAN-2
And Fa 0/1 will be the public ip. Which is 192.168.3.3 in this
case.

STEP-5: SET STATIC ROUTING FOR EACH ROUTER.

For Router0

Here we’ve given the LAN-2 network address in the network


field, subnet mask of the network and for Next Hop field the
public IP of Router-1 is given.
P a g e | 11

For Router1

Here we’ve given the LAN-1 network address in the network


field, subnet mask of the network and for Next Hop field the
public IP of Router-0 is given.

STEP-6: SENDING MSG TO OTHER NETWORK IN CISCO PACKET TRACER


After the connection is established, we can send packets
to other network’s device.
Some of the successful packet transfer.
P a g e | 12

EXPERIMENT-4
Create VLAN inside a Network.

OBJECTIVE:
• Create a LAN and virtualize it.
• Try to Ping all the devices before and after virtualization.

PREPARATION:
In this activity, we will first create a LAN with 4 PCs and 1
switch and then virtualizing 2 PCs so that they’ll not be
accessible within the same network then Connecting the end
devices with the switch using copper straight-through cable
and setting the IP.
We will verify the connection by pinging the devices in the
network after and before VLAN configuration.

STEP-1: TAKE 4 END DEVICES AND A SWITCH


P a g e | 13

Here We will select 4 end devices and a Switch for making a


LAN.

STEP-2: CONNECT THEM WITH COPPER STRAIGHT -THROUGH WIRE.


As PC and Switch are different devices, copper-straight
through cable is used for connecting them.

STEP-3: SET IP FOR EACH END DEVICES


According to the given Network address set IP and subnet
mask for each of the end devices.
Let’s take the IP address ranging from 10.10.0.1/8-
10.10.0.4/8

STEP-4: USING PING COMMAND IN COMMAND PROMPT


After the connection is established, we can click on any
device -> Desktop and then using run , can ping all the
devices in the same LAN.
P a g e | 14

We can ping pc3 from pc0.

STEP-5: OPEN CLI AND CONFIGURE VLAN


Click on Switch and then CLI and write the below
commands one by one.

Switch>enable
Switch#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
Switch(config)#vlan 2
Switch(config-vlan)#name office
Switch(config-vlan)#exit
Switch(config)#vlan 3
Switch(config-vlan)#name home
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport access vlan 2
Switch(config-if)#exit
P a g e | 15

Switch(config)#interface fastEthernet 0/3


Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/4
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Switch(config)#

STEP-6: CHECK THE VLAN CONFIGURATION WITH PING COMMAND.


We cannot access Pc3 and Pc4 from pc1 or 2.
As, now the pc3 and 4 are located in a different VLAN.
P a g e | 16

In the above image we can see that we are not getting any
reply from pc3 when pinged by pc0,
While pc1 can be pinged from pc0 as they are in the same
LAN.

REFLECTION:
Why VLAN 1 is not used?
Cause VLAN 1 is default VLAN in switch, By pointing the
cursor on switch you can see, in the port column the last row
is VLAN1.

You might also like