admin 发表于 2023-2-19 17:49:47

【干货分享】您知道IP地址是怎么算的么?


                                                                        <section style="background-color: rgb(255, 255, 255); box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin: 10px 0%;box-sizing: border-box; "><section class="" style="display: inline-block; width: 100%; vertical-align: top; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-right: 0%; margin-left: 0%; transform: translate3d(0px, 0px, 0px);box-sizing: border-box; "><section class="" style="display: inline-block; vertical-align: top; box-sizing: border-box;"><section class="" style="background-color: rgb(158, 192, 199); color: rgb(247, 247, 247); font-size: 18px; padding-left: 5px; padding-right: 5px; margin-bottom: 4px; box-sizing: border-box;"><p style="box-sizing: border-box;">IP地址和子码掩码的与运算<br style="box-sizing: border-box;"></p></section><section style="border-top: 2px dotted rgb(202, 198, 198); width: 100%; box-sizing: border-box;"></section></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-right: 0%; margin-left: 0%;box-sizing: border-box; "><section class="" style="text-align: justify; font-size: 14px; color: rgb(74, 96, 101); letter-spacing: 0px; line-height: 1.8; padding-top: 2px; padding-bottom: 2px; box-sizing: border-box;"><p style="white-space: normal; box-sizing: border-box;">关键字:网络地址、广播地址、地址范围、主机数</p></section></section></section></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em;box-sizing: border-box; "><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">康康</p></section></section><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(255, 228, 200); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;">萤小石,今天心情不错,来跟你分享个好东西吧</p></section></section></section></section></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em; text-align: right;box-sizing: border-box; "><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(188, 227, 249); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style=" text-align: left;box-sizing: border-box; "><section class="" style="text-align: right; box-sizing: border-box;"><p style="box-sizing: border-box;"><span style="font-size: 14px; box-sizing: border-box;">好啊好啊</span></p></section></section></section></section> </section><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">萤小石</p></section></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;"><span style="color: rgb(142, 201, 101); box-sizing: border-box;">【例子1<span style="letter-spacing: 0px; line-height: 1.6; box-sizing: border-box;">】</span></span></p><p style="box-sizing: border-box;">IP地址   192.168.100.5 </p><p style="box-sizing: border-box;">子网掩码 255.255.255.0</p></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><section style="box-sizing: border-box;">1</section></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">将IP地址和子网掩码换算为二进制,子网掩码连续全1的是网络地址,后面的是主机地址。虚线前为网络地址,虚线后为主机地址</p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" text-align: center; margin-top: 10px; margin-bottom: 10px;box-sizing: border-box; "></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">2</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">IP地址和子网掩码进行<span style="font-size: 16px; box-sizing: border-box;"><strong style="box-sizing: border-box;"><span style="color: rgb(249, 110, 87); box-sizing: border-box;">与运算</span></strong></span>,结果是网络地址</p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" text-align: center; margin-top: 10px; margin-bottom: 10px;box-sizing: border-box; "></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">3</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">将上面的网络地址中的网络地址部分不变,主机地址变为全1,结果就是广播地址<br style="box-sizing: border-box;"></p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" text-align: center; margin-top: 10px; margin-bottom: 10px;box-sizing: border-box; "></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">4</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">地址范围就是含在本网段内的所有主机</p><p style="clear: none; box-sizing: border-box;">网络地址+1即为第一个主机地址,广播地址-1即为最后一个主机地址,由此看出:</p><p style="clear: none; box-sizing: border-box;">地址范围:网络地址+1 至 广播地址-1</p><p style="clear: none; box-sizing: border-box;">即:192.168.100.1 至 192.168.100.254</p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">5</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">主机的数量=2^X(^就是乘方符号,X就是二进制的主机位数)-2。</p><p style="clear: none; box-sizing: border-box;">减2是因为主机不包括网络地址和广播地址,本例二进制的主机位数是8位。</p><p style="clear: none; box-sizing: border-box;">即:主机的数量=2^8-2=254 </p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em;box-sizing: border-box; "><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">康康</p></section></section><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(255, 228, 200); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;">萤小石,看明白了么?</p></section></section></section></section></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em; text-align: right;box-sizing: border-box; "><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(188, 227, 249); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style=" text-align: left;box-sizing: border-box; "><section class="" style="text-align: right; box-sizing: border-box;"><p style="box-sizing: border-box;">一脸懵逼.....</p></section></section></section></section> </section><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">萤小石</p></section></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em;box-sizing: border-box; "><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">康康</p></section></section><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(255, 228, 200); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;">没关系,为了更好理解,咱们看下面这个例子吧。</p></section></section></section></section></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;"><span style="color: rgb(142, 201, 101); box-sizing: border-box;">【例子2<span style="letter-spacing: 0px; line-height: 1.6; box-sizing: border-box;">】</span></span></p><p style="box-sizing: border-box;">IP地址   128.36.199.3 </p><p style="box-sizing: border-box;">子网掩码 255.255.240.0</p></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><section style="box-sizing: border-box;">1</section></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">将IP地址和子网掩码换算为二进制,子网掩码连续全1的是网络地址,后面的是主机地址。虚线前为网络地址,虚线后为主机地址</p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" text-align: center; margin-top: 10px; margin-bottom: 10px;box-sizing: border-box; "></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">2</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">IP地址和子网掩码进行<span style="font-size: 16px; color: rgb(249, 110, 87); box-sizing: border-box;"><strong style="box-sizing: border-box;">与运算</strong></span>,结果是网络地址</p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" text-align: center; margin-top: 10px; margin-bottom: 10px;box-sizing: border-box; "></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">3</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">将上面的网络地址中的网络地址部分不变,主机地址变为全1,结果就是广播地址<br style="box-sizing: border-box;"></p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" text-align: center; margin-top: 10px; margin-bottom: 10px;box-sizing: border-box; "></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">4</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;"><span style="letter-spacing: 0px; line-height: 1.6; box-sizing: border-box;">地址范围:网络地址+1 至 广播地址-1</span></p><p style="clear: none; box-sizing: border-box;">即:128.36.192.1 至 128.36.207.254</p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="box-sizing: border-box;"><p style="box-sizing: border-box;"><br style="box-sizing: border-box;"></p></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 10px; margin-bottom: 10px; text-align: center;box-sizing: border-box; "><section class="" style="width: 2em; text-align: left; float: left; margin: 2px; box-sizing: border-box;"><section style="width: 0px; display: inline-block; vertical-align: top; border-left: 1.2em solid rgb(123, 208, 149); border-top: 1.2em solid rgb(123, 208, 149); border-right: 1.2em solid transparent !important; border-bottom: 1.2em solid transparent !important; box-sizing: border-box;"></section><section class="" style="width: 1.6em; height: 2em; line-height: 1.9em; overflow: hidden; margin-top: -2.5em; text-align: center; color: white; box-sizing: border-box;"><p style="box-sizing: border-box;">5</p></section></section><section class="" style="border-color: rgb(255, 232, 59); width: 100%; border-width: 2px; border-style: solid; padding: 10px 25px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: left; font-size: 14px; box-sizing: border-box;"><p style="clear: none; box-sizing: border-box;">本例中二进制的主机位数是12<br style="box-sizing: border-box;"></p><p style="clear: none; box-sizing: border-box;"><span style="letter-spacing: 0px; line-height: 1.6; box-sizing: border-box;">所以:主机的数量=2^12-2=4094 </span></p></section></section></section></section><section class="" style="clear: both; box-sizing: border-box;"></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em;box-sizing: border-box; "><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">康康</p></section></section><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(255, 228, 200); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;">从上面两个例子可以看出不管子网掩码是标准的还是特殊的,计算网络地址、广播地址、主机数量时只要把地址换算成二进制,然后从<strong style="box-sizing: border-box;"><span style="color: rgb(249, 110, 87); box-sizing: border-box;">子网掩码处分清楚连续1以前的是网络地址,后是主机地址</span></strong>进行相应计算即可。</p></section></section></section></section></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-top: 0.5em; margin-bottom: 0.5em; text-align: right;box-sizing: border-box; "><section class="" style="display: inline-block; width: 75%; box-sizing: border-box;"><section class="" style="display: inline-block; width: 85%; margin-top: 11px; border-radius: 16px; background-color: rgb(188, 227, 249); padding: 16px; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="box-sizing: border-box;" powered-by="xiumi.us"><section class="" style=" text-align: left;box-sizing: border-box; "><section class="" style="text-align: right; font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;">哈哈I get it!</p></section></section></section></section> </section><section class="" style="display: inline-block; width: 60px; vertical-align: top; box-sizing: border-box;"> <section class="" style="font-size: 12.8px; color: rgb(62, 62, 62); text-align: center; box-sizing: border-box;"><p style="box-sizing: border-box;">萤小石</p><p style="box-sizing: border-box;"><br></p><p style="box-sizing: border-box;"><br></p></section></section></section></section></section><section style="background-color: rgb(255, 255, 255); box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" transform: translate3d(0px, 0px, 0px); -webkit-transform: translate3d(0px, 0px, 0px); -moz-transform: translate3d(0px, 0px, 0px); -o-transform: translate3d(0px, 0px, 0px); text-align: center; margin: 10px 0%;box-sizing: border-box; "><section class="" style="display: inline-block; vertical-align: middle; width: 8%; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-right: 0%; margin-left: 0%;box-sizing: border-box; "></section></section></section><section class="" style="display: inline-block; vertical-align: middle; width: 35%; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-right: 0%; margin-left: 0%;box-sizing: border-box; "></section></section></section><section class="" style="display: inline-block; vertical-align: middle; width: 8%; box-sizing: border-box;"><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style=" margin-right: 0%; margin-left: 0%;box-sizing: border-box; "></section></section></section></section></section><section class="Powered-by-XIUMI V5" style="   box-sizing: border-box; " powered-by="xiumi.us"><section class="" style="   box-sizing: border-box; "><section class="" style="text-align: center; font-size: 14px; box-sizing: border-box;"><p style="box-sizing: border-box;"><strong style="box-sizing: border-box;">扫一扫,识别二维码,快来下载</strong></p></section></section></section></section>
页: [1]
查看完整版本: 【干货分享】您知道IP地址是怎么算的么?