Low-voltage path · Division 11: Networks for low-voltage technicians · Lesson 205

Apply a subnet mask to a device group

Free for apprenticesRead it or play it. No card, no account, nothing to cancel.
Apply a subnet mask to a device group

What you should be able to do

Apply a supplied IPv4 mask to a group of fictional low-voltage devices, calculate network membership and explain the intended local or routed path. No actual device settings are changed.

The Supplied Exercise

Camera: 192.168.50.70/26. Recorder: 192.168.50.110/26. Controller: 192.168.50.140/26. The approved mask for all three is 255.255.255.192. Camera and recorder are intended to share Group A's LAN/VLAN. The controller belongs to Group B's separate network. Routing between groups is subject to the approved network design and access policy.

The first three dotted numbers happen to match, but the mask extends beyond those 24 bits. Do not assume a /24 because an address starts with 192.168 or because that mask was used on the previous lesson.

Where beginners go wrong

Mistake: Treating .70 and .140 as local because their first three octets match. Correction: Apply the supplied /26 to both addresses; their networks are .64/26 and .128/26.

Mistake: Assigning .127 to another Group A device because it is below .128. Correction: Check the complete block boundaries: .127 is this /26 subnet's broadcast, not a host allocation.

Mistake: Widening the camera to /24 to avoid a failed routed connection. Correction: Compare saved masks with the approved /26 plan and refer routing or policy failures to the owner instead of redesigning the subnet.

Primary-Source Basis

Microsoft explains that a mask separates network and host portions and helps determine whether a destination is local or remote. Its examples show that changing a mask changes network membership. This lesson uses explicit prefixes and original arithmetic rather than inferring historical address classes. Source: https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/tcpip-addressing-and-subnetting

RFC1878 is an informational IPv4 subnet table. It lists /26 as 255.255.255.192 with 64 addresses per block. It is used here for that correspondence, not as a universal host-count rule for every prefix or a current deployment specification. Source: https://www.rfc-editor.org/rfc/rfc1878.html Sources accessed 2026-09-30.

Build The Mask

An IPv4 address has 32 bits. A /26 mask has 26 leading ones and 6 trailing zeros: 11111111.11111111.11111111.11000000 Each all-one octet equals 255. In the final octet,128+64=192. Thus the decimal mask is 255.255.255.192.

The six host bits give 2^6=64 address values per block. For the ordinary /26 subnets in this exercise, the first is the network identifier and the last is the subnet broadcast, leaving 62 host values. That does not mean 62 addresses are available to assign: gateways, existing devices and allocations consume host values.

Calculate With Bitwise And

AND produces 1 only where both corresponding input bits are 1. A mask 1 retains the corresponding address bit; a mask 0 makes the result bit 0. The first three address octets are unchanged here because their mask octets are 255.

Camera's final octet: 70 = 01000110 192 =11000000 AND =01000000 =64 Camera network: 192.168.50.64/26.

Recorder's final octet: 110 =01101110 192 =11000000 AND =01000000 =64 Recorder network: 192.168.50.64/26.

Controller's final octet: 140 =10001100 192 =11000000 AND =10000000 =128 Controller network: 192.168.50.128/26.

The poster's "70 AND 192" is a bitwise calculation, not ordinary addition or multiplication. Write the binary rows if the decimal expression is unfamiliar.

Check The Block Boundaries

Inside 192.168.50.0/24, four /26 blocks begin at final-octet values 0, 64,128 and 192. Their full ranges are 0–63, 64–127,128–191 and 192–255.

Group A network: 192.168.50.64. Group A host range: 192.168.50.65–192.168.50.126. Group A broadcast: 192.168.50.127.

Group B network: 192.168.50.128. Group B host range: 192.168.50.129–192.168.50.190. Group B broadcast: 192.168.50.191.

The camera and recorder fall within Group A's host range; the controller falls within Group B's. The final octets .64 and .128 are network identifiers in this plan, even though those numbers could serve other roles under a different prefix. Interpret the full address together with its mask.

Apply The Result To The Path

With their supplied masks and common LAN/VLAN, camera and recorder regard each other as local. Their local path still depends on correct switching and permitted traffic. Matching subnet results do not create a physical path, authenticate a device or guarantee that a service is running.

The camera regards 192.168.50.140 as remote under the supplied /26. In a simple host configuration with no more-specific route, it uses the approved default gateway to reach Group B. The router needs the correct routes and the destination needs a return path. Gateway addresses are not invented here; obtain them from the owner-provided design.

A default gateway used by an ordinary directly connected host must be reachable through its local network arrangement. Do not copy a gateway from another group merely because both addresses start with 192.168.50.

Original Troubleshooting Case

Suppose the camera is mistakenly set to /24 while the recorder and controller retain /26. The camera now calculates a broader local network and may attempt local address resolution for destinations that the approved design expects it to reach through a router. Other hosts may make different path decisions.

The corrective action is to compare each saved setting with the supplied plan and have the authorized person restore the approved value. Widening everyone to /24 just to make one test work would change the design and could defeat intended network separation. A mask is also not a substitute for firewall policy; the network owner must implement the required access controls.

Group Verification Worksheet

For each device, record its ID, interface, address, supplied prefix, decimal mask, calculated network, host-range check, VLAN and approved gateway where needed. Identify required local and remote services. Record expected results before testing.

In a sanctioned lab, apply only the owner-approved settings through the model's supported process. Reconnect through the approved management path and verify saved values. Test the required local and routed functions separately. Keep mathematical checks separate from actual deployment evidence.

Knowledge Check

  1. What decimal mask matches /26? 255.255.255.192.
  2. How many host bits remain? 6.
  3. Are .70/26 and .110/26 in the same subnet here? Yes, 192.168.50.64/26.
  4. Is .140/26 in that subnet? No, it is in 192.168.50.128/26.
  5. Is .127 a host value in Group A? No, it is the broadcast.
  6. Does the mask guarantee traffic is permitted? No.
  7. Should a technician widen a mask to bypass a failed routed path? No; follow the approved plan and investigate.

What A /27 Would Have Done To The Same Three Addresses

Change only the prefix and watch the three supplied addresses regroup. A /27 has 27 leading mask bits and 5 host bits, so its final mask octet is 128 + 64 + 32 = 224 and the decimal mask is 255.255.255.224. Five host bits give 2^5 = 32 address values per block, which leaves 30 host values once the network identifier and the subnet broadcast are removed.

Inside 192.168.50.0/24 a /27 produces 8 blocks of 32, starting at final-octet values 0, 32, 64, 96, 128, 160, 192 and 224. The camera at .70 falls in 64 through 95, so its network would be 192.168.50.64/27 with a broadcast of .95. The recorder at .110 falls in 96 through 127, so its network would be 192.168.50.96/27. The controller at .140 falls in 128 through 159.

Under the /26 the exercise actually supplies, the camera and the recorder share one network. Under a /27 they would not, and the camera would hand recorder traffic to a router instead of delivering it on the local segment. Neither address changed. One mask bit moved, and two devices that were local became remote.

This is why a mask typed from memory is a design change rather than a typing error. 8 blocks of 32 and 4 blocks of 64 both account for the same 256 values, so the arithmetic looks tidy either way and gives no warning that the wrong one was entered.

The Block-Size Shortcut, And Where It Breaks Down

There is a faster route to the same answer than writing binary rows. Subtract the final mask octet from 256 to get the block size, so 256 - 192 = 64 for the supplied /26. Then divide the address's final octet by that block size, discard the remainder and multiply back. For the camera, 70 divided by 64 is 1 with a remainder of 6, and 1 x 64 = 64. For the recorder, 110 divided by 64 is also 1, with a remainder of 46, giving 64 again. For the controller, 140 divided by 64 is 2 with a remainder of 12, and 2 x 64 = 128.

The same method against the narrower mask gives 256 - 224 = 32 as the block size. 70 divided by 32 is 2, and 2 x 32 = 64. 110 divided by 32 is 3, and 3 x 32 = 96. 140 divided by 32 is 4, and 4 x 32 = 128. Those are the three networks worked out the long way in the preceding arithmetic, reached without writing a single bit.

The shortcut breaks down the moment the prefix boundary is not inside the fourth octet. For a prefix shorter than 24 the interesting arithmetic moves to the third octet, and dividing the fourth octet by anything tells you nothing at all. Decide which octet the prefix lands in first, apply the subtraction there, and leave the octets to its left unchanged.

Read The Mask Back Off The Device, Not Off The Worksheet

Take the three supplied devices and ask what each product will actually show. One camera displays a prefix length of 26 beside the address and never shows a dotted mask. A recorder displays 255.255.255.192 in a field labelled subnet and never shows a prefix length. A controller displays both, in two places, and a firmware upgrade moves one of them to another page. All three can be correct, and all three can be transcribed wrongly onto the same worksheet.

Write down what the screen said, in the form the screen said it, and put the converted form beside it rather than instead of it. A record reading 26, which is 255.255.255.192, survives a second reader. The dotted value on its own does not tell the next person whether anyone looked at the device or copied the plan.

Now consider a transposition. A technician reading the plan in a hurry enters 255.255.192.0 on the recorder. That is 18 mask bits rather than 26, and it makes the recorder treat everything from 192.168.0.0 through 192.168.63.255 as local, including the controller at 192.168.50.140. The recorder stops using a gateway for Group B traffic while the controller still uses its own, so one direction of the exchange fails and the other appears to work. Compare the saved mask against the approved value on every device in the group, not only on the one that is being complained about.

Also working toward the electrician journeyman licence? Take the free 15-question readiness check

Texas journeyman, 15 questions, scored by topic against the 70% mark. No card, and no account needed to start.

Free study material for low-voltage apprentices. This is a national foundation course: requirements differ by state and by local jurisdiction, and a practice that is common in one place is not a rule everywhere. Nothing here is a licence, a certification, or authority to work unsupervised, and completing it does not count as apprenticeship hours or continuing-education credit. Check the codes adopted where you are working, the licensing authority for that work, and your employer's safety programme. VoltMark is not affiliated with, endorsed by, or sponsored by NFPA, OSHA, NICET, BICSI, FOA, or any state or local licensing authority.

—
Help