Ip address Division

Source: Internet
Author: User

Ip address Division

For 32-bit IPV4 addresses, there are 5 IP address types

The first byte of A type IP address is the network address, and the last three byte is the host address, and the highest bit starts with 0.

00000001 00000000 00000000 00000001 to 01111110 11111111 11111111 11111110

That is, A Class a ip address ranges from 1.0.0.1 to 126.255.254. A Class a ip Address has A total of 126 networks, and each network has A total of 224-2 = 1677214 hosts. The host address 0 indicates the sub-network, host address 1 indicates the broadcast address.

127 The network is the local address, that is, neither A network nor B network.

The first two bytes of the B-type IP address are the network address, the last two bytes are the host address, and the first byte starts with 10.

10000000 00000000 00000000 00000001 to 10111111 11111111 11111111 11111110

The range of Class B IP addresses is from 128.0.0.1 to 191.20.255.254. The number of networks is 64*256 = 16384, and the number of hosts is 216-2 = 65534.

The first three bytes of a Class c ip address are the network address, and the last byte is the host address. The first byte starts with 110.

11000000 00000000 00000000 00000001 to 11011111 11111111 11111111 11111110

The range of class c ip addresses is from 192.0.0.01 to 223.20.255.254. Class c ip addresses are 256*256*32 = 2097152, and the number of hosts is 28-1 = 254.

Class d ip addresses are used for multicast (sending packets to multiple addresses). Class d ip addresses do not divide host numbers and network numbers. Class d ip addresses start with 1110.

11100000 00000000 00000000 00000001 to 11101111 11111111 11111111 11111110

The range of class d ip addresses is from 224.0.0.1 to 239.255.255.254.

Class e ip is reserved for experiment and development. It must start with 1111.

11110000 00000000 00000000 00000001 to 11111111 11111111 11111111 11111110

The range of Class e ip addresses is from 240.0.0.1 to 255.255.255.254.

There is A private address in Class A, Class B, and class C respectively.

Class A private address range: 10.0.0.1 to 10.20.255.254

Class B private address range: 172.16.0.1 to 172.31.255.254

Class C private address range: 192.168.0.1 to 192.168.255.255

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.