You are on page 1of 7

CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai

Student ID: 20ce120

Practical-4
AIM: Understand and identify Layer-2 functionality.
---------------------------------------------------------------------------------------------------------------------------
Tools required:
1. Desktop Computer
2. Cisco Packet Tracer
Simulate different scenarios given below in Cisco packet tracker and fill up table.

Note: While applying IP address, student need to allocate IP address as per his/her student
ID. For Example, if student ID is 20ce005 then IP address allocation for first network should
start with 5.0.0.0. For subsequent network, it should start with ID+1 i.e. 6.0.0.0, 7.0.0.0. and
so on.
Submission: After writing answer into this word document, Student need to change name to his ID
followed by practical number. Ex 20ce005_Pr1.docx. Upload on assignment segment.
Rubrics: Nicely drafted document with clarity in answers leads to full marks. Otherwise, submission
carries proportional mark.
Recommended to type, avoid copy-past to increase your typing skill.

Exercise-1

Redraw above diagram which includes IP address and MAC address. Take IP
address and MAC address as per your knowledge.

Write down ARP table of PC0 and PC1.

Fill ARP table entry of PC0


IP address MAC Address
120.0.0.2 0060.47a6.1d92
Fill ARP table entry of PC1
Page 1 of 7
CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai
Student ID: 20ce120

IP address MAC Address


120.0.0.1 00e0.a333.0506

Questions:
1. What does ARP table contain?
Answer:
An ARP table contains the Internet address, mac/physical address and type of network
commutation of another device connected to same link.
2. Why there is need of ARP table?
Answer:
ARP is necessary because the underlying ethernet hardware communication using ethernet
address, not IP address.
3. What is topology name of exercise-1?
Answer:
In this exercise-1 mesh topology is used.
4. What is relation of IP address with MAC address?
Answer:
There is no relation. The main difference between MAC and IP address is that,  MAC Address
is used to ensure the physical address of computer. It uniquely identifies the devices on a
network. While IP address are used to uniquely identifies the connection of network with that
device take part in a network.

5. Can we change MAC Address of machine?


Answer:
The MAC address that is hard-coded on a network interface controller (NIC) cannot be
changed. However, many drivers allow the MAC address to be changed. ... The process of
masking a MAC address is known as MAC spoofing.

6. Can we change IP address of machine?


Answer:
Yes, we can change the IP address of machine by switch the network to a different network.

Exercise-2:

Redraw above diagram which includes IP address and MAC address. Take IP
address and MAC address as per your knowledge.

Write down ARP table of PC0 and PC1. Write down switch table of Hub0.

Page 2 of 7
CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai
Student ID: 20ce120

Fill ARP table entry of PC0

IP address MAC Address


120.0.0.2 0001.96ec.5342
Fill ARP table entry of PC1
IP address MAC Address
120.0.0.1 000c.854d.2be6
Fill Switch table entry of Hub0
MAC Address Ethernet port no
000c.854d.2be6 FastEthernet1
0001.96ec.5342 FastEthernet0

Questions:
1. What is functionality of Hub?
Answer:
A hub is a physical layer networking device which is used to connect multiple devices in a
network. They are generally used to connect computers in a LAN.A hub has many ports in it.
A computer which intends to be connected to the network is plugged in to one of these ports.
When a data frame arrives at a port, it is broadcast to every other port, without considering
whether it is destined for a particular destination or not.

2. Does hub have IP address?


Answer:
No. A hub does not need an IP address.

3. Does hub have switch (ARP) table?


Answer: NO, an ethernet HUB does not care about MAC addresses. This is in contrast to an
ethernet SWITCH
4. What is topology of exercise-2?
Answer:
In these excersie-2-star topology is used.

Exercise-3

Page 3 of 7
CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai
Student ID: 20ce120

Redraw above diagram which includes IP address and MAC address. Take IP
address and MAC address as per your knowledge.

Write down ARP table of PC0 and PC1. Write down switch table of Hub0.
Fill ARP table entry of PC0
IP address MAC Address
120.0.0.2 0090.2b1b.d980
120.0.0.3 0010.11cc.9b1a
120.0.0.4 0000.0c85.7410
Fill ARP table entry of PC1
IP address MAC Address
120.0.0.1 00d0.ba89.5deb
120.0.0.3 0010.11cc.9b1a
120.0.0.4 0000.0c85.7410
Fill ARP table entry of PC2
IP address MAC Address
120.0.0.1 00d0.ba89.5deb
120.0.0.2 0090.2b1b.d980
120.0.0.4 0000.0c85.7410
Fill ARP table entry of PC3
Page 4 of 7
CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai
Student ID: 20ce120

IP address MAC Address


120.0.0.1 00d0.ba89.5deb
120.0.0.2 0090.2b1b.d980
120.0.0.3 0010.11cc.9b1a
Fill Switch table entry of Switch0
MAC Address Ethernet port no
0000.0c85.7410 FastEthernet0/4
0010.11cc.9b1a FastEthernet0/3
0090.2b1b.d980 FastEthernet0/2
00d0.ba89.5deb FastEthernet0/1
Questions:
1. What is functionality of switch?
Answer:
In a network, a switch is a hardware device that filters and forwards network packets from
one networking device (switch, router, computer, server, etc.) to another. It is widely used in
local area networks (LANs) to send each incoming message frame by looking at the physical
device address, known as the Media Access Control address (MAC address).
2. Does switch have IP address?
Answer:
layer 2 network switches do not have IP address

3. Does switch have switch (ARP) table?


Answer:
Yes, the switch maintains an ARP table which is made of mapped IP addresses and MAC
addresses. When a packet needs to be routed to a certain device, the switch looks up the IP
address of the device in its ARP table to obtain the MAC address of the destination device.

4. What is topology name of exercise-3?


Answer:
In these excersie-2-star topology is used.

Exercise-4

Page 5 of 7
CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai
Student ID: 20ce120

Redraw above diagram which includes IP address and MAC address. Take IP
address and MAC address as per your knowledge.

Write down ARP table of PC0 and PC1. Write down switch table of Hub0.
ARP table entry of PC0
IP address MAC Address
120.0.0.2 0030.a375.109d
120.0.0.3 0004.9a11.3309
120.0.0.4 0001.9672.dbe3
120.0.0.5 00e0.b085.bd30
120.0.0.6 0001.646c.28c5
ARP table entry of PC1
IP address MAC Address
120.0.0.1 0090.2173.6858
120.0.0.3 0004.9a11.3309
120.0.0.4 0001.9672.dbe3
120.0.0.5 00e0.b085.bd30
120.0.0.6 0001.646c.28c5
ARP table entry of PC2
IP address MAC Address
120.0.0.1 0090.2173.6858
120.0.0.2 0030.a375.109d
120.0.0.4 0001.9672.dbe3
120.0.0.5 00e0.b085.bd30
120.0.0.6 0001.646c.28c5
ARP table entry of PC3
IP address MAC Address
120.0.0.1 0090.2173.6858
120.0.0.2 0030.a375.109d
120.0.0.3 0004.9a11.3309
120.0.0.5 00e0.b085.bd30
120.0.0.6 0001.646c.28c5

Page 6 of 7
CE257 DATA COMMUNICATION & NETWORKING Name: Achyut Krishna Sai
Student ID: 20ce120

ARP table entry of PC4


IP address MAC Address
120.0.0.1 0090.2173.6858
120.0.0.2 0030.a375.109d
120.0.0.3 0004.9a11.3309
120.0.0.4 0001.9672.dbe3
120.0.0.6 0001.646c.28c5
ARP table entry of PC5
IP address MAC Address
120.0.0.1 0090.2173.6858
120.0.0.2 0030.a375.109d
120.0.0.3 0004.9a11.3309
120.0.0.4 0001.9672.dbe3
120.0.0.5 00e0.b085.bd30
Switch table entry of Switch0
MAC Address Ethernet port no
0001.646c.28c5 FastEthernet0/5
0001.9672.dbe3 FastEthernet0/4
0004.9a11.3309 FastEthernet0/3
0030.a375.109d FastEthernet0/2
0090.2173.6858 FastEthernet0/1
00e0.8f83.8403 FastEthernet0/5
00e0.b085.bd30 FastEthernet0/5
Switch table entry of Switch1
MAC Address Ethernet port no
0001.646c.28c5 FastEthernet0/1
0001.9673.5d05 FastEthernet0/3
0090.2173.6858 FastEthernet0/3
00e0.b085.bd30 FastEthernet0/2

Questions
1. Does both the switch will have identical switching table?
Answer: NO
2. In Exercise-4, why does PC0 contain IP MAC address of PC4?
Answer:
In this exercise first IP MAC address of PC4 contain by switch 1 and then via cross over cable
IP MAC address of PC4 contain by switch 2 and this address is referred by PC0
3. What is topology name of exercise-4?
Answer: hybrid

Page 7 of 7

You might also like