已知某个ip地址为168.195.0.0 若要将其划分15个子网如何计算子网掩码?并 如欲将B类IP地址168.195.0.0,划分成96个子网,...
\u5df2\u77e5\u67d0\u4e2aip\u5730\u5740\u4e3a168.195.0.0 \u82e5\u8981\u5c06\u5176\u5212\u520627\u4e2a\u5b50\u7f51\uff0c\u5219\u5982\u4f55\u5212\u5206\u80fd\u6ee1\u8db3\u8981\u6c42\uff0c\u5b50\u7f51\u63a9\u7801\u662f\u591a\u5c11\uff1f\u5b9e\u9645\u9700\u898127\u4e2a\uff0c\u90a3\u4e482\u7684N\u6b21\u65b9\u5c31\u662f\u572816\u4e2a\u548c32\u4e2a\uff0c\u800c\u4f60\u9700\u898127\u4e2a\uff0c\u6240\u4ee5\u662f2\u7684\u56db\u6b21\u65b9\uff0c\u6240\u4ee5\u9700\u8981\u5212\u520632\u4e2a\uff0c\u5177\u4f53\u4e3a
B\u7c7b\u5730\u5740\u63a9\u7801\u4f4d\u4e3a16
\u5b50\u7f51\u4e2a\u6570\u4e3a 2\u7684m\u6b21\u65b9\u5927\u4e8e\u7b49\u4e8e96 \u5f97\u5230m=7 m\u4e3a\u5411\u4e3b\u673a\u4f4d\u6570\u501f\u51e0\u4f4d
\u5f97\u5230\u5212\u5206\u7684\u5b50\u7f51\u4f4d\u7684\u7f51\u7edc\u4f4d\u4e3a16+7=23
\u5b50\u7f51\u7684\u8f6c\u6362\u6210\u4e8c\u8fdb\u5236 10101000\u300111000011\u30010000000/0\u300100000000 \u524d23\u4f4d\u4e3a\u7f51\u8def\u4f4d\u540e9\u4f4d\u4e3a\u4e3b\u673a\u4f4d\uff0c\u524d16\u4f4d\u4e0d\u53d8\uff0c17\u523024\u4f4d\u6392\u5217\u7ec4\u5408\u5982\u4e0b
0000000 168.195.0.0/23
0000001 168.195.2.0/23
0000010 168.195.4.0 /23
0000011 168.195.6.0 /23
................................................
每个子网可用主机2^11-2主机块大小=256-248=8.248.0.0是B类地址.195;162^5=32》27所以子网掩码32位中前16+5=21位全一.255,即255.0(PSip地址为168,默认子网掩码/
解决方案2:
168.195.0.0为B类地址,2^5=32》27所以子网掩码为16+5=21(32位中前21位全一),即255.255.248.0
解决方案3:
等分子网只能等分成2的幂个子网,比如2个,4个,8个,16个,32个,64个,128个等等,不是随便想扯个数字就说分的,子网划分有他的规则和规律
168.195.0.0/20
168.195.16.0/20
168.195.32.0/20
168.195.48.0/20
168.195.64.0/20
绛旓細IP鍦板潃姹狅細168.19.169.0/22 鍙敤ip鍦板潃娈碉細168.19.168.1---168.19.171.254 4涓儴闂 姣忎釜閮ㄩ棬鍒嗗埆62涓猧p ip娈 168.19.168.1-62 瀛愮綉鎺╃爜 255.255.255.192 骞挎挱 168.19.168.63 ip娈 168.19.168.65-126 瀛愮綉鎺╃爜 255.255.255.192 骞挎挱 168.19.168.127 ip娈 168.19.168.129-1...
绛旓細192.168.19.15 192.168.19.0-192.168.19.15 鍙敤涓绘満鏁板噺鍘0璺15锛屾墍浠鏄14涓