基礎網路-ipv4地址

ipv4地址

00000000   1 
00000010   2
00000100   4
00001000 8
00010000 16
00100000 32
01000000  64
10000000    128

A:01
B:10
C:110 

公式:
網絡網段數量=2^可變網絡id位數
一個網絡的主機數量=2^主機id位數-2

A類地址:
基礎網路-ipv4地址

B類地址:
基礎網路-ipv4地址

C類地址:
基礎網路-ipv4地址

基礎網路-ipv4地址

ipv4 公網地址:

基礎網路-ipv4地址

ipv4私網地址
基礎網路-ipv4地址

基礎網路-ipv4地址

子網掩碼:
基礎網路-ipv4地址

```          
172.20.0.123 網絡id 位數是22位,netmast ?

255.255.252.0 172.20.0.123/22


在線子網掩碼計算器:
https://www.sojson.com/convert/subnetmask.html

200.222.123.23/26
netmask? 255.255.255.192
主機數? 2^6-2=62

2^(32-網絡id位數) -2 =2
主機id位數=2

公式: 
網絡id位數=ip與子網掩碼netmask  
#1
192.168.1.100
255.255.255.0
網絡id==網段:192.168.1.0
#2
A 172.20.222.123/20 網絡id:172.20.208.0
B 172.20.230.100/20 網絡id:172.20.224.0







172.20. 1101 1110.
255.255.1111 0000.0

172.20. 1110 0110.0
255.255.1111

#3
A192.168.1.100/16
B192.168.2.100/24

A ->B
1) 192.168.0.0
2) 192.168.2.100 與16 =192.168.0
3) 同一網段


b->a
1)192.168.2.0
2)192.168.1.100 與24=192.168.1.0
3)不同網段


192.168.199.111/21
網絡id 192.168.192.0
netmask 255.255.248.0
主機數 2^11-2
min ip,max ip 192.168.1100 0 000.0,192.168.1100 0 111.1



192.168. 1100 0111
255.255. 1111 1000

192.168.1100 0 000.0 >> 192.168.192.1/21
192.168.1100 0 111.1 >> 192.168.199.254 /21

222.111.188.123 netmask:255.255.255.192
網絡id 222.111.188.64
cidr 222.111.188.123/26
主機數:2^6-2=62
min ip,max ip 222.111.188.65/26 222.111.188.126/26



222.111.188. 0111 1011
255.255.255. 1100 0000

222.111.188.01 00 0000 >>222.111.188.01 00 0001
222.111.188.01 11 1111  >> 222.111.188.01 11 1110

10.0.0.0/8
劃分2個小網絡:
10.0 000 0000.0.0 .>> 10.0.0.0/9
min:10.0.0.1/9
max:10.0 111 1111 .255.254 >> 10.127.255.254 10.127.255.255



10.1 000 0000.0.0 >> 10.127.0.0/9
min: 10.128.0.1 10.128.0.0
max: 10.255.255.254

劃分四個網絡:
2^2=4

10.00 10.0.0.0/10
10.01 10.64.0.0/10
10.10 10.128.0.0/10
10.11 10.192.0.0/10


     
劃分子網:
![](https://s4.51cto.com/images/blog/202101/31/c60cc493e5a4ee25a106ab2a0825c15f.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)

10.0.0.0/8 劃分32個子網
新的子網netmask  10.248.0.0
min: netid ,max :netid 10.0.0.0/13 10.248.0.0/13
主機數:
max netid ip:min ip ,max ip



10.0000 0 000.0.0
網絡id :10.0.0.0/13
10.1111 1 000.0.0 >> 10.248.0.0/13

ip:
10.0000 0 000.0.0 >> 10.0.0.1 /13

10.248.0.1/13
10.1111 1 000.0.0 >> 10. 1111 1 111 .255.255.254/13

河南省:
10.248.0.0/13 ,劃分17個
10.11111 000 .00 00 0000.0 
1.新的子網netmask  >> 255.255.192.0
2.新的子網:min netid,max netid  : 

3.新的子網存放最多的主機數
 主機位數:2^14

10.11111 000 .00 .0/18  > 10.248.0.0/18

10.11111 100  00.0    >        10.252.0.0/18
10.11111 111.  11        >         10.255.192.0/18 

10.11111 100  00.0    >        10.252.0.0/18​  

10.11111 100 0.1 > 10.252.0.1/18 

10.11111 100 00 11 1111.254    255.254  >10.252.63.254/18

基礎網路-ipv4地址

基礎網路-ipv4地址

基礎網路-ipv4地址

基礎網路-ipv4地址

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章