DatakomLabs LP3VT25 Prep3
DatakomLabs LP3VT25 Prep3
Romaric Duvignau
February 3, 2025
Contents
1 Introduction 2
3 Practice IP addressing 7
1
1 Introduction
Purpose
Lab3 and lab4 aim to understand how to address computers in a network, by building and
configuring a local network with a number of PCs (in a simulation tool ).
In the labs, you will be introduced to a basic configuration of an IP router that works with
dynamic routing. You will also use the command programs ping and tracert as tools in the
troubleshooting of TCP/IP-based networks.
In addition, you will create a network with a 24-bit prefix and an 8-bit host part that is with
addresses of the form aaa.bbb.ccc.ddd/24. You will then configure two PCs to be connected to
the other workplaces’ PCs. You will proceed and divide the large network into several subnets.
Overview
The assignment should be performed according to the procedures outlined below with the use
of the equipments provided in the virtual environment. The following tasks will be performed:
• Configuration of Windows PCs with connection to a peer-to-peer LAN.
• Building a larger network with several switches, and then applying IP subnetting.
• Running a number of commands to verify and diagnose the network.
• Use of Packet Simulation and Inspection to analyze and monitor local traffic.
At the end of the lab, you should be accustomed enough with network address configuration
to set-up small to medium sizes Local Area Networks (LAN).
Preparatory Task 1. Try the following commands on your own systema which can be
used for diagnosing a network: ping, ipconfig, tracert and route.
What do they do? Try to explain their functionality in words such that another
student who has never seen the commands can understand what they do and why/when
he/she would use it.
a
For more details and macOS/Linux syntax, refer to the preparation instructions of Lab1.
Hint
These commands can be run on a Windows system (on Unix/Linux systems, ip or ifconfig and
traceroute are used instead of ipconfig and tracert). More information about the commands
can be obtained on Windows by hitting “F1” (help) on the desktop or by typing: for example,
“ping /?” in a terminal window. On Unix-based systems, more information can be obtained from
the on-line manuals: “man ping”.
Tips
Don’t be disappointed if the routing table of your host system at home is pretty simple, after all
there is likely almost only one destination for all outgoing traffic!
2
Figure 1: (a) “Physical” representation of each workspace: 2 computers connected to a switch,
itself connected to a router; (b) similar set-up within the Packet Tracer network simulator.
3
Edit toolbar
Actions toolbar
to Select devices
to Inspect devices
Network
Visualization
add elements
here (cable, de-
vices, etc)
Figure 2: Tiny network displayed in Packet Tracer, Cisco’s Network Simulator (v7.3.0).
4
the 10h online course “Getting Started with Cisco Packet Tracer ”2 . Since, we will use only basic
features of Packet Tracer, there is no need to follow the course, just register to it to get your free
NetAcad account and feel free to de-register and delete your account at the end of the course.
Hint
You can access IP configurations the same way you will do it on your computer: through command-
lines! Try with the freshly obtained IP address of PC0, by clicking on the device, then Desktop
tab then Command Prompta , then try the famous ipconfig. Note that Packet Tracer’s com-
mand prompt offers only a limited set of commands: you can obtain the list of all of them by
typing “?” as a command. As usual, use ↑ to recover the last command executed.
a
and not Terminal (the Linux name for the command-line interface program) that is something com-
pletely different!
Tips
Feel free to explore the interface a bit further before continuing (move the devices, etc).
Preparatory Task 3. Add a new PC to our home network and connect it to the home
router using an Ethernet cable (in a similar way as PC0). Test the connectivity by pinging
it from Laptop0.
Hint
You need to pick the right interface on each entity (FastEthernet for the new PC and GigabitEth-
ernet for the home router) and don’t forget that, similarly to PC0, your new PC also needs
an IP address on its own!
Tips
Important trick: to copy-paste IP addresses in packet tracer, click on the magnifying glass
(inspect button, cf. Figure 2), then “Port Status Summary Table” then you can select the IP
address and right-click “Copy”; then you can use right-click “Paste” in the command prompt.
2
https://www.netacad.com/courses/packet-tracer
5
Figure 3: Packet Tracer Simulation mode: inspection of an ICMP packet at Layer 3.
At last, to delete devices, use the Delete action next to Inspect in the action bar, or press
Del key. You will be able to delete devices and cables that way, to remove wireless links you
can turn off their interface (eg for the smartphone, Config → Interface → Port Status →
On/Off ).
• Open the Simulation Mode by clinking on Simulation in the bottom right of Packet
Tracer (see Figure 2). Go to Edit Filters and uncheck IPv6 → NDP and Misc →
STP & DTP to reduce the number of displayed packets.
• Ping the smartphone from PC1 (remember Command Prompt is in the Desktop tab,
the above trick to quickly copy-paste IP addresses and don’t forget that the smartphone
has a local IP address on the LAN and another IP for its 3G/4G interface).
• Use the button in the simulation panel to jump to next simulated packet. Generate
packets till PC1 receives a first answer. Note how ICMP messages were sent to everyone
before ARP’s tables were updated and how packets transmitted on wireless links are sent
to everyone (shared link).
• Use the sliding bar to change animation speed and Ù to have the simulation automatically
progressing to next packet, and observe now the ping command terminates (4 answers)
and packets being sent and received (you may need to go to window mode to be able to
have both packet tracer main window and the command prompt displayed at the same
time).
Tips
On a device, to Quit the current program in the Desktop tab, click on the cross at the right of
the program’s name (top bar).
To inspect particular packets in the simulation panel, click on the packet in the Event list
(you may click actually anywhere on the packet’s line). To obtain the information you want, you
6
may need to look at different layers so use the Next Layer button when inspecting a packet in
the simulation panel and
Preparatory Task 4. What is the reason Laptop0 dropped the ICMP ping packet
coming from PC1?
Hint
In the packet list, click on a ICMP packet (black packets in the list) where Laptop0 is in the
column “At device”, then click a few times on Next Layer and you’ll find the reason why the
packet was dropped.
To come back to the normal mode click on “Realtime” just next to the simulation button;
the simulation is then reset.
3 Practice IP addressing
Let us first make an example of network partitioning. Consider the following task.
Preparatory Task 5. Assume hypothetically that you are given an address subspace
denoted by 200.150.100.0/24, which will be used later on to configure the local network
in the lab.
(b) What would be the class for the network address 200.150.100.0/24 according to the
classful scheme?
Hint
IP addresses can be divided into 5 classes:
• Class A: Addresses starting by 0, subnets of 8 bits (16,777,216 host addresses).
• Class B: Addresses starting by 10, subnets of 16 bits (65,536 host addresses).
• Class C: Addresses starting by 110, subnets of 24 bits (256 host addresses).
• Class D: Addresses starting by 1110. Reserved for multicast groups.
• Class E: Addresses starting by 1111; Reserved for future use.
Refer to your course book pages 366-367 for more details.
Tips
The subnet mask is traditionally expressed in dot-decimal notation, for example the IP
prefix 198.77.48.0/23 has 23 bits allocated for the network prefix and 32-23 = 9 bits
allocated for the host part of the address, and in this case the subnet mask being
11111111.11111111.11111110.0000000 becomes in dot-decimal notation 255.255.254.0.
7
3. The subnet mask in dot-decimal notation is 255.255.255.0 as the first 24 bits should be
set to 1 and the last 8 bits are set to 0. The subnet mask allows to apply a quick bitwise
and “&” operator to the address to get the network part of the address.
In order to practice subnetting, perform the following tasks as a preparation before starting
the mandatory parts:
Preparatory Task 6. A network has been given the CIDR block 198.77.48.0/23, so
that IP addresses within the block should be be assigned to hosts/interfaces connected in
the network. Assume that the network is divided into four equal-size subnets.
(a) How many host addresses will be available for each subnet?
Tips
When we say “smaller IP” or “in order” for IP addresses, the leftmost number (first 0-255 number
in an IP address) is checked first (most important), then the second if they are equal, then third and
finally fourth. For example 1.2.3.4 < 2.255.255.255 < 3.0.255.0 < 3.1.0.3 < 3.2.0.2 . . .