知道IP、子网掩码如何计算可用IP范围? 已知IP地址和子网掩码计算IP地址范围
\u6211\u77e5\u9053\u5b50\u7f51\u63a9\u7801\uff0c\u5206\u914dip\uff0c\u4e3b\u673aip\uff0c\u5982\u4f55\u8ba1\u7b97\u51fa\u6709\u6548ip\u8303\u56f410.255.240.1\u7684IP\u57fa\u7840\u7f51\u7edc\u4f4d\u4e3a8\u4f4d\uff0c\u73b0\u5b50\u7f51\u63a9\u7801\u4e3a255.255.240.0 \uff0c\u5373\u7f51\u7edc\u4f4d\u4e3a22\u4f4d\uff0c\u5269\u4f59\u4e3b\u673a\u4f4d10\u4f4d\uff0c\u7f51\u7edc\u4f4d\u5411\u4e3b\u673a\u4f4d\u501f14\u4f4d\uff0c\u5212\u52062^14\u5b50\u7f51\uff0c\u6bcf\u4e2a\u5b50\u7f51\u5bb9\u7eb3\u7684\u4e3b\u673a\u6570\u4e3a2^10-2
\u6839\u636e\u8ba1\u7b97\u53ef\u77e5\u6bcf4\u4e2a\u7f51\u6bb5\u7ec4\u6210\u4e00\u4e2a\u5b50\u7f51\u537310.0.0.0--10.0.3.255\u662f\u7b2c\u4e00\u4e2a\u5b50\u7f51\u4ee5\u6b64\u7c7b\u63a8\u3002\u3002\u3002
\u5206\u914d\u768410.20.165.6\u5e94\u8be5\u662f\u7b2c21*64=1344\u4e2a\u5b50\u7f51\u5730\u5740
\u6b64\u5b50\u7f51\u7684\u5730\u5740\u8303\u56f4\u572810.20.164.0--10.20.167.255\uff0c\u53bb\u638910.20.164.0\u8fd9\u4e2a\u7f51\u7edc\u5730\u5740\u548c10.20.167.255\u8fd9\u4e2a\u5e7f\u64ad\u5730\u5740\uff0c\u6709\u6548\u7684IP\u5730\u5740\u8303\u56f4\u662f10.20.164.1--10.20.167.254
\u8bf4\u7684\u901a\u4fd7\u4e00\u70b9:IP\u5730\u5740\u4e3a210.114.105.164,\u5b50\u7f51\u63a9\u7801255.255.255.224,\u4e5f\u5c31\u662f\u5728\u8fd9\u6bb5\u5730\u5740\u4e2d\u670932\u4e2a\u5730\u5740,\u5176\u4e2d30\u4e2a\u53ef\u7528,\u53bb\u6389\u7f51\u5173,\u8fd8\u670929\u4e2a\u53ef\u5206\u914d.\u5730\u5740\u662f\u4ece210.114.105.134-165,\u7b2c\u4e00\u4e2a\u53ef\u7528\u7684IP\u662f135,\u6700\u540e\u4e00\u4e2a\u662f1164,\u8fd9\u4e2a\u4f8b\u5b50\u91cc,\u4f60\u62ff164\u505a\u7f51\u5173\u4e86,\u6240\u4ee5\u4ece134\u81f3163\u8fd929\u4e2a\u5730\u5740\u662f\u53ef\u88ab\u4f60\u5206\u914d\u7684. \u540c\u7406.116.24.143.126,\u63a9\u7801255.255.255.0,\u90a3\u4f60\u5c31\u6709253\u4e2a\u5730\u5740\u53ef\u88ab\u4f60\u5206\u914d\u4f7f\u7528.\u4e5f\u5c31\u662f1-125,127-254. 116.24.143.166,\u63a9\u7801\u662f255.255.255.128,\u5c31\u662f\u6709125\u4e2a\u5730\u5740\u53ef\u88ab\u4f60\u5206\u914d\u4f7f\u7528.\u5373129-165,167-254. \u6bcf\u6bb5\u5730\u5740\u6709\u591a\u5c11\u53ef\u7528,\u4e0d\u662f\u770bIP\u7684\u6700\u540e\u4e00\u4f4d\u6570,\u800c\u662f\u770b\u5b50\u7f51\u63a9\u7801,\u8fd9\u4e48\u8bf4\u660e\u767d\u4e86\u5417?
(1):202.119.110.192 255.255.255.192(2):202.119.110.1 255.255.255.128
(3):255.255.255.128
(4):202.119.110.112 255.255.255.240
(5):202.119.110.193 255.255.255.240
(6):202.119.110.255 255.255.255.240
IP地址与子网掩码划分知识干货
绛旓細鍗佽繘鍒192鎹㈡垚浜岃繘鍒舵槸1100 0000銆傛妸IP鍜瀛愮綉鎺╃爜鍏ㄦ崲鎴愪簩杩涘埗锛屽姣斾竴涓嬶紝IP锛1100 0000 1010 1000 0000 0001 0000 0001锛屽瓙缃锛1111 1111 1111 1111 1111 1111 0000 0000銆傚悗闈㈡湁鍏綅閬囧埌0鐨勶紝灏辨槸鍙2鐨勫叓娆℃柟涓湴鍧锛屽嵆256涓湴鍧锛岄櫎鍘讳竴涓綉缁滃湴鍧锛屼竴涓粍鎾湴鍧锛屽氨鍓254涓鍙敤鍦板潃銆傜綉缁滃彲...
绛旓細涔熷氨鏄鏋滄槸C绫诲湴鍧骞朵笖瀛愮綉鎺╃爜鏄255.255.255.0鐨勬椂鍊欙紝0鍜255灏卞垎鍒槸缃戞鍦板潃鍜屽箍鎾湴鍧浜嗐備絾鏄笉鑳戒互鍋忔鍏紝浠ョ偣姒傞潰锛岃繕瀛樺湪涓嬪垪鍙兘锛欳绫IP鍦板潃锛IP鍦板潃192.168.0.0褰撳瓙缃戞帺鐮佹槸255.255.0.0鏃讹紝鍙娇鐢ㄧ殑IP鍦板潃鏄192.168.0.1~192.168.255.254锛192.168.0.0鏄綉娈靛湴鍧锛192.16...
绛旓細128锛172锛191锛172.16.1.12鏄疊绫诲湴鍧锛岄粯璁ゅ瓙缃戞帺鐮佷负/16 (鍗255.255.0.0)銆 灏嗗師鏉ョ殑B绫荤綉缁滃彿杩涜瀛愮綉鍒掑垎鍚锛屽瓙缃戞帺鐮鍙樹负/20锛屽嵆缃戠粶浣(16浣)鍚戜富鏈轰綅(16浣)鍊4浣嶅緱鍒版柊鐨勭綉缁滀綅(16+4=20浣)锛屽墿浣欎富鏈轰綅=16-4=12浣嶃傚彲浠璁$畻鍑哄瓙缃戞暟=2鐨4娆℃柟=16涓紝姣忎釜瀛愮綉鍦板潃鏁=2鐨...
绛旓細璁$畻濡備笅锛IP 192.168.1.1锛屽瓙缃 255.255.255.0銆傚崄杩涘埗255鎹㈠仛浜岃繘鍒跺氨鏄1111 1111鍏釜1锛屽崄杩涘埗192鎹㈡垚浜岃繘鍒舵槸1100 0000銆傛妸IP鍜屽瓙缃戞帺鐮佸叏鎹㈡垚浜岃繘鍒讹紝瀵规瘮濡備笅锛欼P锛1100 0000 1010 1000 0000 0001 0000 0001锛屽瓙缃戯細1111 1111 1111 1111 1111 1111 0000 0000銆傚悗闈㈡湁鍏綅閬囧埌0鐨勶紝灏...
绛旓細甯歌鍔炴硶鏄妸杩欎釜涓绘満鍦板潃鍜屽瓙缃戞帺鐮侀兘鎹㈢畻鎴愪簩浜岃繘鍒舵暟锛屼袱鑰呰繘琛岄昏緫涓庤繍绠楀悗鍗冲彲寰楀埌缃戠粶鍦板潃銆傚叾瀹炲ぇ瀹跺彧瑕佷粩缁嗘兂鎯筹紝鍙互寰楀埌鍙︿竴涓柟娉: 255.255.255.224 鐨勬帺鐮佹墍瀹圭撼鐨処P鍦板潃鏈256- 224=32涓(鍖呮嫭缃戠粶鍦板潃鍜屽箍鎾湴鍧)銆傞偅涔堝叿鏈夎繖绉嶆帺鐮佺殑缃戠粶鍦板潃涓-瀹氭槸32鐨勫嶆暟銆傝岀綉缁滃湴鍧鏄瓙缃慖P鍦板潃鐨...
绛旓細涓鑸潵璇达紝姝ゆ椂璁$畻璇IP鍦板潃鐨瀛愮綉鎺╃爜闈炲父鍦扮畝鍗曪紝鍙寜鐓у叾瀹氫箟灏卞彲鍐欏嚭銆備緥濡傦細鏌愪釜IP鍦板潃涓12.26.43.0锛屾棤椤诲啀鍒嗗壊瀛愮綉锛屾寜鐓у畾涔夋垜浠彲浠鐭ラ亾瀹冩槸涓涓狝绫诲湴鍧锛屽叾瀛愮綉鎺╃爜搴旇鏄255.0.0.0;鑻ユIP鍦板潃鏄竴涓狟绫诲湴鍧锛屽垯鍏跺瓙缃戞帺鐮佸簲璇ヤ负255.255.0.0;濡傛灉瀹冩槸C绫诲湴鍧锛屽垯鍏跺瓙缃戞帺鐮佷负255...
绛旓細姝ラ濡備笅锛氭湁IP鍦板潃192.168.0.1锛屽搴旂殑瀛愮綉鎺╃爜涓255.255.255.0锛涘皢IP鍦板潃鍜屽瓙缃戞帺鐮佸叏閮ㄨ浆鎹㈡垚浜岃繘鍒剁殑褰㈠紡锛屽嵆IP鍦板潃鏄細11000000.10101000.00000000.00000001 锛屽瓙缃戞帺鐮鏄細11111111.11111111.11111111.00000000锛涘皢浜岃繘鍒跺舰寮忕殑IP鍦板潃鍜屽瓙缃戞帺鐮佽繘琛屼笌杩愮畻锛涜繍绠楃粨鏋滀负11000000.10101000.00000000....
绛旓細宸茬煡IP鍦板潃鍜瀛愮綉鎺╃爜锛鐢↖P鐨勪簩杩涘埗涓庡瓙缃戞帺鐮佺殑浜岃繘鍒舵暟鎹綔'涓'杩愮畻锛屽氨鍙互寰楀埌缃戞鍦板潃銆傚師棰璁$畻鐨勭綉娈靛湴鍧绛旀鏄纭殑銆傚叿浣撴楠ゅ涓嬶細1銆佹妸IP鍦板潃杞崲鎴愪簩杩涘埗鏁帮細199.32.59.64=11000111.100000.111011.1000000锛2銆佹妸瀛愮綉鎺╃爜杞崲鎴愪簩杩涘埗鏁帮細255.255.255.224=11111111.11111111.11111111...
绛旓細瀛愮綉鎺╃爜255.255.255.0杞崲涓轰簩杩涘埗鏄細澶嶅埗浠g爜 11111111.11111111.11111111.00000000 姝ラ 2: 璁$畻瀛愮綉鍦板潃 瀛愮綉鍦板潃鏄綉缁滈儴鍒嗙殑IP鍦板潃銆備负浜嗗緱鍒板瓙缃戝湴鍧锛屾垜浠皢IP鍦板潃鍜屽瓙缃戞帺鐮佽繘琛岄昏緫AND鎿嶄綔銆傚皢IP鍦板潃鍜屽瓙缃戞帺鐮佸搴斾綅杩涜AND鎿嶄綔锛氬鍒朵唬鐮 11000000.10101000.00000001.01100100 (IP鍦板潃)AND 11111...
绛旓細姝g‘鐨勭瓟妗堝簲璇ユ槸192.168.100.96-192.168.100.111 鍏朵腑192.168.100.96涓虹綉缁滃湴鍧,111涓哄箍鎾湴鍧.鏈夋晥鐨IP鍦板潃鑼冨洿鏄192.168.100.97-192.168.100.110