Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Network basic IP subnetting

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

For example, class C address:

192.168.0.0 Class C network segment

255.255.255.0 Class C default mask

11111111 11111111 11111111 00000000 Class C Mask binary representation

According to the binary system, the network bit is 24 1s, and the next 8 zeros are host bits. By default, there is only one network segment, that is,

192.168.0. The 192.168.0.255 subnet mask is the default 24-bit 255.255.255.0.

Subnetting method: the default subnet mask is 24-bit network bits and 8-bit host bits; it is necessary to lengthen the subnet mask, increase the number of network bits and reduce the number of host bits, which is realized by borrowing bits from the host.

If you borrow 1 bit from the host, the mask becomes 25 bits, the number of host bits is 7 bits, and the decimal mask is 255.255.255.128, which can be divided into 2 network segments.

Subnets: 0127,128,255,except for one network address and one broadcast address, there are 126 available IP to the 7th power of 2, and there are 252 available IP addresses in the two network segments.

If you borrow 2 bits from the host, the mask becomes 26 bits, the host bits are 6 bits, and the decimal mask is 255.255.255.192, which can be divided into 2 power = 4 network segments.

Subnet: 0-63, 64-127128-191192-255. except for one network address and one broadcast address, 62 available IP are available to the 6th power of IP number 2, and there are a total of 248usable IP addresses in the four network segments.

If you borrow 3 bits from the host, the mask becomes 27 bits, the host bits are 5 bits, and the decimal mask is 255.255.255.224, which can be divided into 3 to the second power = 8 network segments.

Subnet: 0-31 IP 32-63 min 64-95 Magi 96-127128-159160-191192-223224-255. except for one network address and one broadcast address, 30 available IP are available to the 5th power of 2, and a total of 240 available IP addresses are available in eight network segments.

If you borrow 4 bits from the host, the mask becomes 28 bits, the host bits are 4 bits, and the decimal mask is 255.255.255.240, which can be divided into 4 power = 16 network segments.

Subnet: 0-15 IP 16-31Gravity 32-47Power48-63Magi 64-79Power80-95Magi 96-111112-128129-143144-159160-175176-191192-207208-223224-239240-255. except for one network address and one broadcast address, there are 14 available IP to the power of 2 and a total of 224 available IP addresses in 16 network segments.

If you borrow 5 bits from the host, the mask becomes 29 bits, the host bits are 3 bits, and the decimal mask is 255.255.255.128, which can be divided into 5 to the second power = 32 network segments.

Subnet: 0-7 recollection 8-15 recollection 16-23 verdict 24-31Gravity 32-39magistrate 40-47pint 48-55Power56-63With 64-71pint 72-79CA 88-87pr 96-103104-111112-119120-127128-135136-143144151152-167168175176-183194-191192-199200-207208-223224-223224-231232-239240-247248-255 Excluding one network address and one broadcast address, the number of available IP to the third power of 2 is-2 to 6 available IP, and 32 network segments have a total of 192 available IP addresses.

If you borrow 6 bits from the host, the mask becomes 30 bits, the host bits are 2 bits, and the decimal mask is 255.255.255.248, which can be divided into 6 to the second power = 64 network segments.

Subnet: 0-3Perry 4-7Power8-11Power12-15Met 16-19WE 20-23pr 24-31WH 28-31WH 32 36-39MY40-43LY 44-51WH 52-5MH 56-59MH 60-63MIT 68-71MIT 72-75pc76-79MIT 80-83MIT 84-87MIT 88-91MIT 92-95Y96-99100-103104-107108-111112-119120-12312797 12858-131132-135, And so on, excluding one network address and one broadcast address, the number of available IP to the power of 2 is-2 to the number of available IP, and 64 network segments have a total of 128 available IP addresses.

If you borrow 7 bits from the host, the mask becomes 31 bits, the host bit is 1 bit, and the decimal mask is 255.255.255.254, which can be divided into 7 to the second power = 128 network segments.

Subnet: 0-1, 2-3, 3-4, 4-5. And so on, there are only two IP per segment, minus the network and broadcast addresses, and there is no IP available.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report