Loading... !!! <p>一个B类ip<br />ip:10.254.68.136<br />掩码:255.255.224.0</p> <p></p> <table border="1"> <tbody> <tr> <th><span style="color: green;">网络位</span></th> <th><span style="color: red;">主机位</span></th> </tr> </tbody> </table> <p> <br />掩码二进制:</p> <table border="1"> <tbody> <tr> <th><span style="color: green;">1111 1111</span></th> <th><span style="color: green;">1111 1111</span></th> <th><span style="color: green;">111</span><span style="color: red;">0 0000</span></th> <th><span style="color: red;">0000 0000</span></th> </tr> </tbody> </table> <p>掩码中0为主机位,1为网络位</p> <p> <br />ip二进制:</p> <table border="1"> <tbody> <tr> <th><span style="color: green;">0000 1010</span></th> <th><span style="color: green;">1111 1110</span></th> <th><span style="color: green;">010</span><span style="color: red;">0 0100</span></th> <th><span style="color: red;">1000 1000</span></th> </tr> </tbody> </table> <p> <br />网段网络位不动,主机位从0到1,所以该网段起始ip为:</p> <table border="1"> <tbody> <tr> <th>10</th> <th>254</th> <th>64</th> <th>0</th> </tr> <tr> <th><span style="color: green;">0000 1010</span></th> <th><span style="color: green;">1111 1110</span></th> <th><span style="color: green;">010</span><span style="color: red;">0 0000</span></th> <th><span style="color: red;">0000 0000</span></th> </tr> </tbody> </table> <p>最终ip为:</p> <table border="1"> <tbody> <tr> <th>10</th> <th>254</th> <th>95</th> <th>255</th> </tr> <tr> <th><span style="color: green;">0000 1010</span></th> <th><span style="color: green;">1111 1110</span></th> <th><span style="color: green;">010</span><span style="color: red;">1 1111</span></th> <th><span style="color: red;">1111 1111</span></th> </tr> </tbody> </table> !!! Last modification:October 24, 2019 © Allow specification reprint Support Appreciate the author AliPayWeChat Like 0 如果觉得我的文章对你有用,请随意赞赏