Effects of Subnetting a Class C Network

Subnet Mask CIDR Net Bits Host Bits # of Nets Hosts/Net Total Hosts /24 0 8 1 254 254 /25 1 7 0(2*) 126 0(254*) /26 2 6 2(4*) 62 124(248*) /27 3 5 6(8*) 30 180(240*) /28 4 4 14(16*) 14 196(224*) /29 5 3 30(32*) 6 180(192*) /30 6 2 62(64*) 2 124(128*) /31 7 1 126(128*) 0** 0(128**) /32 8 0 254(256*) 1*** 254(256*)

[*] According to classic IP routing rules you are not able to use the subnets with all zeros or ones in the network portion. However most modern machines have no trouble actually using the upper and lower subnets. Steven C. Jensen has a very good discussion of lower/upper subnet use , including notes on how to convince Cisco routers to do it. (I'm not sure this applies for /32 though....)

[**] Note that you should not use a host address with all zeros as that means this host in many IP implementations (and is considered the broadcast address in some antiquated systems [SunOS-2?]), and neither can you use a host address with all ones, as that's the broadcast address for the subnet. The host address of all zeros, in combination with the network address, are also used to specify the complete subnet address (RFC 1105).

This means that a 31-bit netmask is essentially useless since it leaves only two addresses per net: one for the network number, and the other for the broadcast address. In theory though you could specify a host address as the same as the network address if the IP implementation of the host(s) in question does not map an all-zeros host number to be equivalent to the localhost. I wouldn't advise this though unless you're really strapped for subnets. It's far safer and more general to use /30 nets instead.

[***] An all-one's netmask (i.e. all 32 bits) specifies a host address.


Valid subnets on a network (i.e. with a subnet mask of are:
Subnet 1:- with addresses ->
Subnet 2:- with addresses ->

You can also see the effect of subnetting your network.
Visit the Class B Subnetting summary table.

The Eye Is Watching This page has been accessed /cgi-bin/nph-count?width=5&link=/~woods/classc-noimg/&show=NO times since 22 Jan. 1997.

[[BACK]] What'sa matter? Doncha got a back button?

(How about going back here or here instead!)