IPv4 Addresses and Subnet Masks
Class C-Size Network Address
For a network between 2 and 254 hosts, the fourth octet falls on a multiple of the number of host
addresses, starting with 0. For example, the 8-host subnets (/29) of 192.168.0.x are as follows:
Subnet with Mask /29 (255.255.255.248) Address Range
192.168.0.0
192.168.0.8
192.168.0.16
...
192.168.0.248
1. The first and last address of a subnet are reserved. In the first subnet example, you cannot use
Class B-Size Network Address
To determine the network address to use with the subnet mask for a network with between 254 and
65,534 hosts, you need to determine the value of the third octet for each possible extended network
prefix. For example, you might want to subnet an address like 10.1.x.0, where the first two octets are
fixed because they are used in the extended network prefix, and the fourth octet is 0 because all bits are
used for the host number.
To determine the value of the third octet, perform the following steps:
Calculate how many subnets you can make from the network by dividing 65,536 (the total number of
Step 1
addresses using the third and fourth octet) by the number of host addresses you want.
For example, 65,536 divided by 4096 hosts equals 16.
Therefore, there are 16 subnets of 4096 addresses each in a Class B-size network.
Determine the multiple of the third octet value by dividing 256 (the number of values for the third octet)
Step 2
by the number of subnets:
In this example, 256/16 = 16.
The third octet falls on a multiple of 16, starting with 0.
Therefore, the 16 subnets of the network 10.1 are as follows:
Subnet with Mask /20 (255.255.240.0)
10.1.0.0
10.1.16.0
10.1.32.0
...
10.1.240.0
1. The first and last address of a subnet are reserved. In the first subnet example, you cannot use
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide using ASDM
E-4
192.168.0.0 or 192.168.0.7.
10.1.0.0 or 10.1.15.255.
Appendix E
1
192.168.0.0 to 192.168.0.7
192.168.0.8 to 192.168.0.15
192.168.0.16 to 192.168.0.31
...
192.168.0.248 to 192.168.0.255
1
Address Range
10.1.0.0 to 10.1.15.255
10.1.16.0 to 10.1.31.255
10.1.32.0 to 10.1.47.255
...
10.1.240.0 to 10.1.255.255
Addresses, Protocols, and Ports
OL-20748-01