Appendix C
Subnetting Class A

Class A subnetting is not performed any differently than subnetting with Classes B and C, but there are 24 bits to play with instead of the 16 in a Class B address and the 8 in a Class C address.

Let's start by listing all the Class A masks:

255.0.0.0    (/8)           255.255.240.0  (/20)
255.128.0.0  (/9)           255.255.248.0  (/21)
255.192.0.0  (/10)          255.255.252.0  (/22)
255.224.0.0  (/11)          255.255.254.0  (/23)
255.240.0.0  (/12)          255.255.255.0  (/24)
255.248.0.0  (/13)          255.255.255.128  (/25)
255.252.0.0  (/14)          255.255.255.192  (/26)
255.254.0.0  (/15)          255.255.255.224  (/27)
255.255.0.0  (/16)          255.255.255.240  (/28)
255.255.128.0  (/17)        255.255.255.248  (/29)
255.255.192.0  (/18)        255.255.255.252  (/30)
255.255.224.0  (/19)

That's it. You must leave at least 2 bits for defining hosts. And I hope you can see the pattern by now. Remember, we're going to do this the same way as a Class B or C subnet. It's just that, again, we simply have more host bits, and we use the same subnet numbers we used with Class B and Class C, but we start using these numbers in the second octet.

Subnetting Practice Examples: Class A Addresses

When you look at an IP address and a subnet mask, you must be able to distinguish the bits used for subnets from the bits used for determining hosts. This is imperative. If you're still struggling with this concept, please reread Chapter 6, “Introduction to the Internet Protocol.” It shows you how to determine the difference between the subnet and host bits and should help clear things up.

Practice Example #1A: 255.255.0.0 (/16)

Class A addresses use a default mask of 255.0.0.0, which leaves 22 bits for subnetting since you must leave 2 bits for host addressing. The 255.255.0.0 mask with a Class A address is using 8 subnet bits.

  • Subnets? 28 = 256.
  • Hosts? 216 – 2 = 65,534.
  • Valid subnets? What is the interesting octet? 256 – 255 = 1. 0, 1, 2, 3, etc. (all in the second octet). The subnets would be 10.0.0.0, 10.1.0.0, 10.2.0.0, 10.3.0.0, etc., up to 10.255.0.0.
  • Broadcast address for each subnet?
  • Valid hosts?

The following table shows the first two and last two subnets, valid host range, and broadcast addresses for the private Class A 10.0.0.0 network:

Subnet10.0.0.010.1.0.010.254.0.010.255.0.0
First host10.0.0.110.1.0.110.254.0.110.255.0.1
Last host10.0.255.25410.1.255.25410.254.255.25410.255.255.254
Broadcast10.0.255.25510.1.255.25510.254.255.25510.255.255.255

Practice Example #2A: 255.255.240.0 (/20)

255.255.240.0 gives us 12 bits of subnetting and leaves us 12 bits for host addressing.

  • Subnets? 212 = 4096.
  • Hosts? 212 – 2 = 4094.
  • Valid subnets? What is your interesting octet? 256 – 240 = 16. The subnets in the second octet are a block size of 1 and the subnets in the third octet are 0, 16, 32, etc.
  • Broadcast address for each subnet?
  • Valid hosts?

The following table shows some examples of the host ranges—the first three and the last subnets:

Subnet10.0.0.010.0.16.010.0.32.010.255.240.0
First host10.0.0.110.0.16.110.0.32.110.255.240.1
Last host10.0.15.25410.0.31.25410.0.47.25410.255.255.254
Broadcast10.0.15.25510.0.31.25510.0.47.25510.255.255.255

Practice Example #3A: 255.255.255.192 (/26)

Let's do one more example using the second, third, and fourth octets for subnetting.

  • Subnets? 218 = 262,144.
  • Hosts? 26 – 2 = 62.
  • Valid subnets? In the second and third octet, the block size is 1, and in the fourth octet, the block size is 64.
  • Broadcast address for each subnet?
  • Valid hosts?

The following table shows the first four subnets and their valid hosts and broadcast addresses in the Class A 255.255.255.192 mask:

Subnet10.0.0.010.0.0.6410.0.0.12810.0.0.192
First host10.0.0.110.0.0.6510.0.0.12910.0.0.193
Last host10.0.0.6210.0.0.12610.0.0.19010.0.0.254
Broadcast10.0.0.6310.0.0.12710.0.0.19110.0.0.255

The following table shows the last four subnets and their valid hosts and broadcast addresses:

Subnet10.255.255.010.255.255.6410.255.255.12810.255.255.192
First host10.255.255.110.255.255.6510.255.255.12910.255.255.193
Last host10.255.255.6210.255.255.12610.255.255.19010.255.255.254
Broadcast10.255.255.6310.255.255.12710.255.255.19110.255.255.255

Subnetting in Your Head: Class A Addresses

This sounds hard, but as with Class C and Class B, the numbers are the same; we just start in the second octet. What makes this easy? You only need to worry about the octet that has the largest block size (typically called the interesting octet; one that is something other than 0 or 255)—for example, 255.255.240.0 (/20) with a Class A network. The second octet has a block size of 1, so any number listed in that octet is a subnet. The third octet is a 240 mask, which means we have a block size of 16 in the third octet. If your host ID is 10.20.80.30, what is your subnet, broadcast address, and valid host range?

The subnet in the second octet is 20 with a block size of 1, but the third octet is in block sizes of 16, so we'll just count them out: 0, 16, 32, 48, 64, 80, 96 … voilà! (By the way, you can count by 16s by now, right?) This makes our subnet 10.20.80.0, with a broadcast of 10.20.95.255 because the next subnet is 10.20.96.0. The valid host range is 10.20.80.1 through 10.20.95.254. And yes, no lie! You really can do this in your head if you just get your block sizes nailed!

Okay, let's practice on one more, just for fun!

Host IP: 10.1.3.65/23

First, you can't answer this question if you don't know what a /23 is. It's 255.255.254.0. The interesting octet here is the third one: 256 – 254 = 2. Our subnets in the third octet are 0, 2, 4, 6, etc. The host in this question is in subnet 2.0, and the next subnet is 4.0, so that makes the broadcast address 3.255. And any address between 10.1.2.1 and 10.1.3.254 is considered a valid host.

Written Lab 1

Given a Class A network and the net bits identified (CIDR), complete the following table to identify the subnet mask and the number of host addresses possible for each mask.

Classful AddressSubnet MaskNumber of Hosts per Subnet (2x – 2)
/16
/17
/18
/19
/20
/21
/22
/23
/24
/25
/26
/27
/28
/29
/30

Written Lab 2

Given the decimal IP address, write in the address class, number of subnet and host bits, number of subnets, and number of hosts for each IP address.

Decimal IP AddressAddress ClassNumber of Subnet and Host BitsNumber of Subnets (2x)Number of Hosts (2x – 2)
10.25.66.154/23
172.31.254.12/24
192.168.20.123/28
63.24.89.21/18
128.1.1.254/20
208.100.54.209/30

Answers to Written Lab 1

Classful AddressSubnet MaskNumber of Hosts per Subnet (2x – 2)
/16255.255.0.065,534
/17255.255.128.032,766
/18255.255.192.016,382
/19255.255.224.08,190
/20255.255.240.04,094
/21255.255.248.02,046
/22255.255.252.01,022
/23255.255.254.0510
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522

Answers to Written Lab 2

Decimal IP AddressAddress ClassNumber of Subnet and Host BitsNumber of Subnets (2x)Number of Hosts (2x – 2)
10.25.66.154/23A15/932768510
172.31.254.12/24B8/8256254
192.168.20.123/28C4/41614
63.24.89.21/18A10/141,02416,382
128.1.1.254/20B4/12164094
208.100.54.209/30C6/2642
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.143.65