当前位置:网站首页>IP addresses are classified into a, B, and C categories

IP addresses are classified into a, B, and C categories

2020-12-07 08:32:10 osc_ el4lxnyg

Address format
4.1 IP Address range
192.168.1.1 dotted decimal
0000 0000.0000 0000.0000 0000.0000 000
A Class address range :
0000 0000.0000 0000.0000 0000.0000 0000-------0.0.0.0
0111 1111.1111 1111.1111 1111.1111 1111-------127.255.255.255
10.0.0.0--10.255.255.255 A Class private
stay 0 To 127 Directly belong to A Class address range
The first one is in 0 To 127 Not before 10 Belong to A Class public address








B Class address range
1000 0000.0000 0000. 0000 0000.0000 0000-------128.0.0.0
1011 1111.1111 1111.1111 1111.1111 1111--------191.255.255.255
172.16.0.0---172.31.255.255 B Class private
stay 128 To 191 Between belong to B Class address range
The first one is in 128 belt 191 But it's not 172 It belongs to B Class public address




C Class address range
1100 0000. 0000 0000. 0000 0000.0000 0000------192.0.0.0
1101 1111.1111 1111.1111 1111.1111 1111--------223.255.255.255
192.168.0.0----192.168.255.255 C Class private
stay 19 To 223 It used to belong to C Class address range
The first one is in 192 To 223 Not before 192 It belongs to C Class public address




4.2 IP Address part
Computers access the Internet , First, you need to configure a IP Address ,IP Address by 32 Bit binary
IP There are five types of addresses :A、B、C、D、E, The first three categories are used most ,D and E Class reserved
IP The address has two parts :
 Network part
 The host part of the




A Class address : The first 1 The octets are the network part , The last three octets are the host part
B Class address : front 2 The octets are the network part , The last two octets are the host part
C Class address : front 3 The octets are the network part , The last octet is the host part
4.3 Segment operations
A There is one in the class IP The address can't be used 127.0.0.1 Used as a loopback address , For local test
Within the network scope of each category , All hosts are 0 Not available , Represents a network segment . Host bit binary is all 1 It can't be used , Represents a broadcast address .
The segment is made up of IP Address and subnet mask match to get
C Class address first three segment network bit , The last segment is the host location , If all hosts are 1, Represents a packet . for example : If IP The address is 192.168.1.255, So he's a radio bag , And then finally 255 It can't be on the computer .
The destination address in the packet is the broadcast address, which is the broadcast packet







IP Address decimal conversion binary
10 .0 .0 .0
0000 1010.0000 0000.0000 0000.0000 0000
Each category has a private segment
10.0.0.0——10.255.255.255 A class
172.16.0.0——172.31.255.255 B class
192.168.0.0——192.168.255.255 C class
Whether two IP Whether the address is on the same network segment , You need to use the subnet mask , Of each type IP The address has a default subnet mask
255.0.0.0 A class
255.255.0.0 B class
255.255.255.0 C class









192.168.1.1 255.255.255.0 :IP The address and subnet mask are combined to produce a segment , First convert decimal to binary , Doing and Computing

192.168.1.1
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1

255.255.255.0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0

IP Each phase of address and subnet mask is a network segment
11000000 10101000 00000001 00000000
192 168 1 0

192.168.1.10 255.255.255.0
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0

1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
192 168 1 0 Network segment

192.168.2.20 255.255.255.0
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
192 168 2 0 Network segment



10.1.1.1 255.0.0.0 10.1.1.1/8
10.1.1.1
10.100.20.2

0000 1010.0000 0001.0000 0001. 0000 0001
1111 1111. 0000 0000. 0000 0000. 0000 0000
0000 1010. 0000 0000. 0000 0000. 0000 0000 10.0.0.0

0000 1010.0000 0001.0000 0010.0000 0001
1111 1111. 0000 0000. 0000 0000. 0000 0000
0000 1010. 0000 0000. 0000 0000. 0000 0000 10.0.0.0
0 And any number is equal to 0
1 And any number is equal to any number itself



command
Ping: Test network connectivity
Ipconfig:/all View this machine IP Address and other relevant information

版权声明
本文为[osc_ el4lxnyg]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/202012070830062222.html