1
Typically a classful ip address will be split into a network id and a host id, like in the following example:
$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 1 0 0 eth0
The subnet mask is 255.255.255.0 and the network id section is the 3 most significant bytes and the host id section is the least significant byte. That means using this subnet mask, we can have 16581375 networks and 255 host computers in each of those networks.
Now we can convert that classful subnet to a classless subnet:
http://s11.postimg.org/6vaa5q9df/classless_subnet.png
We just partitioned the class C subnet to 255.255.255.224, where the least significant byte now is binary 11100000. Well I just created a subnet id, with 8 new networks independent of each other. Ok, but isn't this accomplishing the same thing as the network id? I do not see any difference between network id and subnet id.
Based on: > the 3 most significant bytes and the host id section is the least
Those numbers are not right. – DaveM – 2014-04-14T05:20:31.837