A simple calculation method for subnetting of IP
1. Calculation method of IP subnetting
Number of subnets: n to the power of 2 represents the number of bits borrowed from the host bit
Number of subnet IP: n to the power of 2-2 N represents the number of bits to the host
Network address of each subnet: 256 minus subnet mask
Broadcast address of each subnet: the network bit remains the same, and the host bit is all 1
Inverse mask: 255.255.255.255 minus the subnet mask, the value obtained is the inverse mask.
2. the conversion table of the number of subnets and subnet masks of the three types of networks.