Part 1: Convert IPv4 Addresses from Dotted Decimal to Binary
Part 2: Use Bitwise ANDing Operation to Determine Network Addresses
Part 3: Apply Network Address Calculations
Background / Scenario
Every IPv4 address is comprised of two parts: a network portion and a host portion. The network portion of an address is the same for all devices that reside in the same network. The host portion identifies a specific host within a given network. The subnet mask is used to determine the network portion of an IP address. Devices on the same network can communicate directly; devices on different networks require an intermediary Layer 3 device, such as a router, to communicate.
To understand …show more content…
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.
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 |
How do you