0% found this document useful (0 votes)
22 views7 pages

Lab 3 - 21521717

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 7

LAB 3

COURSE: COMPUTER NETWORK

IPV4 ADDRESS AND NETWORK DEVICE

Name: PHẠM TRỌNG KHANH ID: 21521717

Objective
Part 1: Convert IPv4 Addresses from Dotted Decimal to Binary
Part 2: Use Bitwise ANDing Operation to Determine Network Addresses
Part 3: Identify IPv4 Addresses and Apply Network Address Calculations
Part 4: Classify IPv4 Addresses
Part 5: Connect the network devices
Part 6: Wireless configuration.

Submitted requirement
- Files to be submitted: Lab31_ID.pka, Lab32_ID.pka and Lab3_ID.pdf
- Name on the User profile must be changed to your ID

Part 1: Convert IPv4 Addresses from Dotted Decimal to Binary

Step 1: Convert decimal numbers to their binary equivalent.


Fill in the following table by converting the decimal number to an 8-bit binary
number. The first number has been completed for your reference. Recall that the

1
eight binary bit values in an octet are based on the powers of 2, and from left to
right are 128, 64, 32, 16, 8, 4, 2, and 1.

Decimal Binary

192 11000000
168 10101000
10 1010
255 11111111
2 0010

Step 2: Convert the IPv4 addresses to their binary equivalent.


An IPv4 address can be converted using the same technique you used above. Fill
in the table below with the binary equivalent of the addresses provided. To make
your answers easier to read, separate the binary octets with a period.

Decimal Binary

192.168.10.10 11000000.10101000.00001010.00001010

172.16.18.183 10101100.00010000.00010010.10110111

10.86.252.17 00001010.01010110.11111100.00010001

255.255.255.128 11111111.11111111.11111111.10000000

255.255.192.0 11111111.11111111.11000000.00000000

Part 2: Use Bitwise ANDing Operation to Determine Network Addresses


In Part 2, you will use the bitwise ANDing operation to calculate the network
address for the provided host addresses. You will first need to convert an IPv4
decimal address and subnet mask to their binary equivalent. Once you have the
binary form of the network address, convert it to its decimal form.
Note: The ANDing process compares the binary value in each bit position of the
32-bit host IP with the corresponding position in the 32-bit subnet mask. If there
two 0s or a 0 and a 1, the ANDing result is 0. If there are two 1s, the result is a 1,
as shown in the example here.

2
Step 1: Determine the number of bits to use to calculate the network address.

Description Decimal Binary

IP Address 192.168.10.131 11000000.10101000.00001010.10000011


Subnet Mask 255.255.255.192 11111111.11111111.11111111.11000000
Network Address 192.168.10.128 11000000.10101000.00001010.10000000
In the example above, how many bits are used to calculate the network address?
26
______________

Step 2: Use the ANDing operation to determine the network address.


a. Enter the missing information into the table below:

Description Decimal Binary

IP Address 172.16.145.29 10101100.00010000.10010001.00011101


Subnet Mask 255.255.0.0 11111111.11111111.00000000.00000000
Network Address 172.16.0.0 10101100.00010000.00000000.00000000
b. Enter the missing information into the table below:

Description Decimal Binary

IP Address 192.168.10.10 11000000.10101000.00001010.00001010


Subnet Mask 255.255.255.0 11111111.11111111.11111111.00000000
Network
Address 192.168.10.0 11000000.10101000.00001010.00000000

Part 3: Apply Network Address Calculations


Using command ipconfig to show the IP address of your computer and identify the IP
address of your phone.

What is IP address for your PC? 192.168.1.2


___________
What is the network address for your PC? 192.168.1.0

What is IP address for your friend’s PC/your phone? 192.168.1.94 ____________

3
What is the network address for your friend’s PC/your phone? 192.168.1.0 ______

Will your PCs and your phone be able to communicate directly with each other?
Yes

What is the default gateway address for your PC?192.168.1.1 ________________

Part 4: Classify IPv4 Addresses


Step 1: Analyze the table shown below and identify the type of address
(network, host, multicast, or broadcast address).
The first row shows an example of how the table should be completed.

IP Address Subnet Mask Address Type

10.1.1.1 255.255.255.252 host


192.168.33.00111111
192.168.33.63 255.255.255.192 =) Broadcast
239.192.1.100 255.252.0.0 Multicast
255.255.255.0
11111111.11111111. 172.25.12.00110100
172.25.12.52 11111111.00000000 =) Host
255.0.0.0 10.11111111.0000000
11111111.00000000. 0.00000000
10.255.0.0 00000000.00000000 =) Host
255.255.255.240
11111111.11111111. 172.16.128.00110000
172.16.128.48 11111111.11110000 =) Network
255.255.255.224
11111111.11111111. 209.165.202.10011111
209.165.202.159 11111111.11100000 =) Broadcast
255.255.0.0 172.16.00000000.1111
11111111.11111111. 1111
172.16.0.255 00000000.00000000 =) Host

Step 2: Analyze the table shown below and identify whether the address/prefix
pair is a valid host address.

4
IP Address/Prefix Valid Host Address? Reason

172.16.255.0/16 Valid Host

192.31.7.255/24 Invalid Broadcast

64.102.255.255/14 Valid Host

224.0.0.5/16 Invalid Multicast

5
Note: Before doing Part 5 and part 6, the students need to download and install Cisco
Packet Tracer.
Students enroll the course “Packet Tracer” at and download Cisco packet tracer
https://www.netacad.com/courses/packet-tracer

Part 5: Connecting network devices


Open file: Lab3.1 - Connect a Wired and Wireless LAN.pka and work with the
instruction inside the simulation file.

Connecting devices: The instruction gives the table of connection type as table below;
students need to choose the right cable type to connect the interfaces.

Connected
Device Interface Cable type Connects To
device

Eth6 Copper Straight-Through Router 0 Fa0/0


Cloud
Coax7 Coaxial Cable Modem Port0

Port0 Coaxial Cloud Coax7


Cable Modem
Port1 Copper Straight-Through WirelessRouter Internet

Configuration
Console Console RS232
Terminal

Fa0/0 Copper Straight-Through Cloud Eth6


Router0

Fa0/1 Copper Cross-Over netacad.pka Fa0

Ser0/0/0 Serial Router1 Ser0/0

Router1 Ser0/0 Serial Router0 Ser0/0/0

6
Fa1/0 Fiber Switch Fa0/1

Internet Copper Straight-Through Cable Modem Port 1


WirelessRouter
Eth1 Copper Straight-Through Family PC Fa0

After finishing the lab, students save the file with filename: Lab3.1_ID.pka

Part 6: Wireless configuration


Open file: Lab3.2 - Configure a Wireless Network.pka and work with the instruction
inside the simulation file.

After finishing the lab, students save the file with filename: Lab3.2_ID.pka

You might also like