search
HomeCommon ProblemThe composition of an IP address

The composition of an IP address

Jun 05, 2019 pm 01:53 PM
IP address

P address refers to the Internet Protocol Address (English: Internet Protocol Address, also translated as Internet Protocol Address), which is the abbreviation of IP Address. The IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the differences in physical addresses.

The composition of an IP address

The IP address adopts a hierarchical structure; it is composed of two parts: the network number (net ID) and the host number (host ID).

According to different value ranges, IP addresses can be divided into five categories; the first 5 digits in the IP address are used to identify the category of the IP address:

● Class A address The first digit is 0;

● The first two digits of Class B address are 10;

● The first three digits of Class C address are 110;

● Class D address The first four digits of the address are 1110; the first five digits of the Class E address are 11110.

The composition of an IP addressIn fact, most of the network bits and host bits are distinguished by the subnet mask. The subnet mask corresponds to the IP address one-to-one. The subnet mask of 1 is the network bit. Bit, 0 is the host bit.

For example: 192.168.1.2 mask 255.255.255.0. The network bit is 192.168.1 and the host bit is 2

For example: For example, 172.16.2.160/255.255.255.0: The [network number] of this IP address

is 172.16.2.0 and the host number is 0.0 .0.160

Subnet division

For example: 172.16.2.160/255.255.255.192 (IP address/mask)

1010 1100 0001 0000 0000 0010 1010 0000 (Binary)

1111 1111 1111 1111 1111 1111 1100 0000 (Subnet mask)

Description:

Only the one who knows Only by using the net mask and IP can you know the specific network segment and host number;

The same subnet mask may not necessarily be the same network segment IP. IPs in the same network segment must have the same subnet mask.

The above is the detailed content of The composition of an IP address. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Atom editor mac version download

Atom editor mac version download

The most popular open source editor