Computer Tech Tutor

  • Best Books to Help You Pass the Comptia A+ 220-1001 and 220-1002 Exams
  • Best CompTIA A+ Online Video Courses
  • Comptia A Plus 220-1001 Study Guide and Exam Preparation
  • Comptia A Plus 220-1002 Study Guide
  • Comptia A+ (Plus) Acronyms
  • CompTIA A+ 220-1001 & 220-1002 Overview
  • CompTIA A+ Money Saving Tips
  • How to Study
  • Privacy Policy
  • Welcome
✕

2.6 Subnet Mask

2. Networking (220-1001), Comptia A+ (Plus), Comptia A+ (Plus) 220-1001

This entry is part 100 of 230 in the series Comptia A+ (Plus) 220-1001 Series

The subnet mask identifies your network ID. If you want to know what subnet a host is on, you’d refer to the subnet mask.

The subnet mask masks (or blocks) the network portion of an IP address. In binary, a 1 in the subnet mask identifies the network ID, while a 0 identifies the host ID.

A typical subnet mask is 255.255.255.0. In binary this is 11111111.11111111.11111111.00000000. Any part that is 255 (equivalent to 11111111 in binary) is the network ID. Any part that is a 0 is the host ID.

Example – IP: 192.168.4.33 with subnet mask: 255.255.255.0 means network ID: 192.168.4 & host ID: 33

Every computer on a single LAN has the same network ID but has a unique host ID

Subnet mask is used by the local device to determine what subnet it’s on. It’s usually something you configure on the local workstation rather than being a value that’s transmitted across the network.

CIDR

CIDR stands for Classless Inter-Domain Routing. There are default subnet masks of 255.0.0.0, 255.255.0.0, 255.255.255.0. In binary these default subnet masks have 1’s filling up an entire octet. However, CIDR allows a network administrator to have more flexible allocation of IP addresses. The 1’s in a subnet mask do not need to fill an entire octet. For example, you have a subnet mask of 11111111.11111111.11110000.00000000. This would be a subnet mask of 255.255.240.0. There is also CIDR notation which counts the number of 1’s. So in CIDR notation, the subnet mask would be represented as “\20” because there are 20 1’s in the binary subnet mask. This leaves 12 digits for the host ID so 212 – 2 = 4094 unique addresses.

IPv6 Subnet Mask:

The last 64 bits of an IPv6 IP address are generated randomly or using the MAC, leaving a maximum of 64 bits for the network ID, so no subnet is ever longer than /64

Majority of IPv6 subnets are between /48 and /64

Author:

Previous Article

2.6 IPv4 vs. IPv6

Next Article

2.6 Gateway

Latest Posts

Storage Area Network (SAN)

APM and ACPI

Acceptable Use Policy

Recent Posts

  • Storage Area Network (SAN)
  • APM and ACPI
  • Acceptable Use Policy
  • SRAM
  • Electromagnetic Pulse (EMP)

Archives

  • August 2019
  • May 2019
  • April 2019
  • July 2002
  • June 2002
  • May 2002
  • April 2002
  • March 2002
  • February 2002
  • January 2002
  • December 2001
  • November 2001
  • October 2001
  • September 2001
  • August 2001
  • July 2001
  • June 2001
  • May 2001
  • April 2001
  • March 2001
  • February 2001
  • January 2001
  • December 2000
  • November 2000
  • October 2000
  • September 2000
  • August 2000
  • July 2000
  • June 2000
  • May 2000
  • April 2000
  • March 2000
  • February 2000
  • January 2000

Categories

  • 1. Mobile Devices (220-1001)
  • 1. Operating Systems (220-1002)
  • 2. Networking (220-1001)
  • 2. Security (220-1002)
  • 3. Hardware (220-1001)
  • 3. Software Troubleshooting (220-1002)
  • 4. Virtualization and Cloud Computing (220-1001)
  • 5. Hardware and Network Troubleshooting (220-1001)
  • Comptia A+ (Plus)
  • Comptia A+ (Plus) 220-1001
  • Comptia A+ (Plus) 220-1002
  • Uncategorized
Arba WordPress Theme by XstreamThemes.