某主机的IP地址为130.252.20.168,子网掩码为255.255.255.0,求此主机的网络号、子网号和主机数 某主机的IP地址为140.252.20.68,子网掩码为25...
\u67d0\u4e3b\u673a\u7684IP\u5730\u5740\u4e3a140.252.20.70\uff0c\u5b50\u7f51\u63a9\u7801\u4e3a255.255.255.224\uff0c\u6c42\u6b64\u4e3b\u673a\u7684\u7f51\u7edc\u53f7\uff0c\u5b50\u7f51\u6570\u548c\u4e3b\u673a\u6570\u6b64\u4e3b\u673a\u7684\u7f51\u7edc\u53f7\u4e3a\uff1a140.252.20.64\u3002\u5b50\u7f51\u7684\u6570\u76ee\u4e3a\uff1a2048\uff0c\u4e3b\u673a\u7684\u6570\u76ee\u4e3a\uff1a30\u53f0\u3002
\u8ba1\u7b97\u8fc7\u7a0b\uff1a
\u56e0\u4e3aIP\u5730\u5740\u4e3a140.252.20.70\uff0c\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u4e3a10001100.11111100.00010100.01000110\uff0c\u5c06\u5b50\u7f51\u63a9\u7801\u8f6c\u4e3a\u4e8c\u8fdb\u5236\u4e3a11111111.11111111.11111111.11100000\u3002
\u4e24\u8005\u8fdb\u884c\u76f8\u4e0e\u64cd\u4f5c\u7684\u51fa10001100.11111100.00010100.01000000\u3002\u5f97\u51fa\u7f51\u7edc\u53f7\u4e3a140.252.20.64\u3002
\u56e0\u4e3aIP\u5730\u5740\u4e3a140.252.20.70\uff0cB\u7c7bIP\u5730\u5740\u7684\u8303\u56f4\u4e3a128.0.0.0\u5230191.255.255.255\uff0c\u6240\u4ee5\u5f97\u51fa\u6b64\u4e3b\u673a\u7684\u7f51\u7edc\u5730\u5740\u4e3aB\u7c7bIP\u5730\u5740\u3002B\u7c7b\u5730\u5740\u7684\u5b50\u7f51\u63a9\u7801\u9ed8\u8ba4\u4e3a255.255.0.0\u3002
\u73b0\u5728\u5b50\u7f51\u63a9\u7801\u4e3a255.255.255.224\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u5b50\u7f51\u5212\u5206\u3002\u62ff\u51fa\u4e8612\u4f4d\u505a\u5b50\u7f51\u5212\u5206\u6240\u4ee5\u5f97\u51fa\u5b50\u7f51\u6570\u4e3a2048\u3002
\u4e3b\u673a\u6570\u4e3a2^5-2=30\uff0c\u6240\u4ee5\u4e3b\u673a\u6570\u4e3a30\u3002
\u6269\u5c55\u8d44\u6599\uff1a
IP\u5730\u5740\u662f\u4ee5\u7f51\u7edc\u53f7\u548c\u4e3b\u673a\u53f7\u6765\u8868\u793a\u7f51\u7edc\u4e0a\u7684\u4e3b\u673a\u7684\uff0c\u53ea\u6709\u5728\u4e00\u4e2a\u7f51\u7edc\u53f7\u4e0b\u7684\u8ba1\u7b97\u673a\u4e4b\u95f4\u624d\u80fd\u201c\u76f4\u63a5\u201d\u4e92\u901a\uff0c\u4e0d\u540c\u7f51\u7edc\u53f7\u7684\u8ba1\u7b97\u673a\u8981\u901a\u8fc7\u7f51\u5173\uff08Gateway\uff09\u624d\u80fd\u4e92\u901a\u3002
\u8fd9\u6837\u7684\u5212\u5206\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u663e\u5f97\u5e76\u4e0d\u5341\u5206\u7075\u6d3b\u3002\u4e3a\u6b64IP\u7f51\u7edc\u8fd8\u5141\u8bb8\u5212\u5206\u6210\u66f4\u5c0f\u7684\u7f51\u7edc\uff0c\u79f0\u4e3a\u5b50\u7f51\uff08Subnet\uff09\uff0c\u8fd9\u6837\u5c31\u4ea7\u751f\u4e86\u5b50\u7f51\u63a9\u7801\u3002
\u5b50\u7f51\u63a9\u7801\u7684\u4f5c\u7528\u5c31\u662f\u7528\u6765\u5224\u65ad\u4efb\u610f\u4e24\u4e2aIP\u5730\u5740\u662f\u5426\u5c5e\u4e8e\u540c\u4e00\u5b50\u7f51\u7edc\uff0c\u8fd9\u65f6\u53ea\u6709\u5728\u540c\u4e00\u5b50\u7f51\u7684\u8ba1\u7b97\u673a\u624d\u80fd\u201c\u76f4\u63a5\u201d\u4e92\u901a\u3002
\u5b50\u7f51\u4f4d\u6570 \u3000\u5b50\u7f51\u63a9\u7801 \u3000\u4e3b\u673a\u6570 \u53ef\u7528\u4e3b\u673a\u6570
1\u3001 \u3000255.255.255.128 \u3000128 \u3000 126
2 \u3001\u3000255.255.255.192\u3000 64 \u3000 62
3 \u3001\u3000255.255.255.224 \u300032 \u3000 30
4 \u3001\u3000255.255.255.240 \u300016 \u300014
5\u3001\u3000 255.255.255.248 \u30008 \u3000 6
6 \u3001\u3000255.255.255.252 \u30004\u3000 \u3000 2
\u53c2\u8003\u8d44\u6599\u6765\u6e90\uff1a\u767e\u5ea6\u767e\u79d1-\u5b50\u7f51
140.252.20.68 \u4e00\u770b\u5c31\u662fB\u7c7b\u5730\u5740
\u56e0\u6b64\u4e3b\u673a\u4f4d\u662f20.68
\u7f51\u7edc\u53f7140.25.20.64
\u5b50\u7f51\u6570\uff1a2048
\u4e3b\u673a\uff1a30
10000010.11111100.00010100.10101000 130.252.20.168
+
11111111.11111111.11111111.00000000 255.255.255.0
=
10000010.11111100.00010100.00000000 130.252.20.0 (网络号)
130.252.20.168 是B类IP 默认掩码是255.255.0.0 ,转换2进制,对比变化在第3段。
11111111.11111111.11111111.00000000 255.255.255.0
11111111.11111111.00000000.00000000 255.255.0.0
11111111 转换2进制 得到255 子网号是255.
由掩码255.255.255.0 对比默认255.255.0.0 可知 新掩码网络位向主机位借位8位(转换换2进制观察),主机位还余8位(8个0) ,则每个子网可容纳2的8次方个IP地址256个,排除网络地址和广播地址,可分配主机地址为2的8次方-2=254个
你问对人了,我就是计算机专业的
绛旓細鎶婂瓙缃戞帺鐮佲1鈥濈殑鍦板潃鍐欎笅锛屽墿涓嬬殑鎹㈡垚鈥0鈥10000010.00011001.00000011.10000000 = 130.25.3.128 璇涓绘満鎵鍦ㄧ殑瀛愮綉鐨勭綉缁鍦板潃涓 130.25.3.128
绛旓細涓绘満鍦板潃杞崲鎴愪簩杩涘埗涓10000010.00011001.00000011.10000111瀛愮綉鎺╃爜杞崲鎴愪簩杩涘埗涓11111111.11111111.11111111.11000000涓や釜鍦板潃鍚戝搴旂殑鍦板潃浣嶄笌杩愮畻锛堝叏1涓1锛屽叾瀹冧负0锛夊緱10000010.00011001.00000011.100000000杞崲鎴愬崄杩涘埗鍚庝负130.25.3.128鎵浠ヨ涓绘満鎵鍦ㄧ殑瀛愮綉缃戠粶鍦板潃涓120.25.3.128/26 ...
绛旓細閭d箞璇涓绘満鎵鍦ㄧ殑瀛愮綉鐨勭綉缁鍦板潃涓130.25.3.128.璁$畻鐨勬柟娉曟槸灏IP鍦板潃鍜屽瓙缃戞帺鐮侀兘杞寲涓32浣嶇殑浜岃繘鍒舵暟锛屼笂涓嬭繘琛屼笌杩愮畻銆備笌杩愮畻鐨勭壒鐐规槸锛氭湁0灏变负0锛屽叏1鎵嶄负1.鎵浠ュ墠闈㈢殑涓夋涓嶄細鍙橈紝鏈鍚庣殑涓娈靛涓嬫墍绀:10000111 ---135鐨勪簩杩涘埗琛ㄧず 11000000 ---192鐨勪簩杩涘埗琛ㄧず 10000000 ---128锛岃绠楃殑...
绛旓細涓绘満鍦板潃涓锛130.25.48.1/21-130.25.55.254/21 骞挎挱鍦板潃涓猴細130.25.55.255/21 绗竷涓瓙缃戝彿鐮佹槸锛130.25.56.0/21 涓绘満鍦板潃涓猴細130.25.56.1/21-130.25.63.254/21 骞挎挱鍦板潃涓猴細130.25.63.255/21 绗叓涓瓙缃戝彿鐮佹槸锛130.25.64.0/21 涓绘満鍦板潃涓猴細130.25.64.1/21-130.25.71.2...
绛旓細16涓瓙缃戝崰5涓涓绘満浣嶏紝鍓╀笅鐨勫氨鏄11涓富鏈轰綅锛屽彲浠ュ绾2鐨11娆℃柟鍑2銆傚瓙缃戞帺鐮佸氨鏄2杩涘埗鐨勫墠21浣嶅叏閮ㄤ负1锛屽崄杩涘埗灏辨槸255.255.248.0銆
绛旓細鎶10000鍙拌绠楁満鍒掑垎涓16缁勶紝涓缁625鍙帮紝ip鍦板潃鍒掑垎锛氬瓙缃戞帺鐮22浣嶏紝姣忎釜缃戞鐨涓绘満鏁1022锛堝幓鎺夆濅富鏈虹爜鈥滃叏0鍜屽叏1鐨勶級锛岃繖鏍锋瘡涓粍杩樺彲浠ユ湁鎵╁厖 绗1涓瓙缃戯細130.25.0.1---130.25.3.254 绗2涓瓙缃戯細130.25.4.1--130.25.7.254 绗3涓瓙缃戯細130.25.8.1--130.25.11.254 绗4涓瓙缃...
绛旓細鎮ㄨ鍒掑垎鐨処P鍦板潃鏄锛130.025.000.000 鏄 B 绫籌P鍦板潃 鎮ㄨ鍒掑垎鐨勫瓙缃戞暟閲忔槸 12 涓紝瀛愮綉鎺╃爜鏄細255.255.240.000 姣忔瀛愮綉鐨勭綉缁滃彿鏄疶O鍓岻P鐨勬渶鍚庝竴浣嶅噺1 姣忔瀛愮綉鐨勫箍鎾湴鍧鏄疶O鍚嶪P鏈鍚庝竴浣嶅姞1 1>130.025.0.1TO130.025.15.254 2>130.025.16.1TO130.025.31.254 3>130.025....
绛旓細鍒嗛厤鐨処P涓130.25.0.0/16锛屽叡5000澶氬彴鏈哄櫒锛屽垎甯12涓偣锛屾瘡涓偣澶ф417锛屾墍浠ユ瘡涓瓙缃戝垎閰512涓湴鍧灏辫浜嗭紝姣忎釜瀛愮綉鐨勬帺鐮侀兘涓255.255.254.0銆傜1涓瓙缃戜负130.25.0.0/23锛屽彲鐢ㄦ渶灏鍦板潃130.25.0.1锛屽彲鐢ㄦ渶澶у湴鍧130.25.1.254 绗2涓瓙缃戜负130.25.2.0/23 绗3涓瓙缃戜负130.25.4.0/23...
绛旓細3.浠130.25.0.0/20 涓轰緥 鍙敤ip鏈澶у间负2鐨12娆℃柟=4096涓渶灏忓硷細2鐨12娆℃柟-2=4094 4.浠130.25.176.0/20 涓轰緥 骞挎挱鍦板潃涓255.255.190.255 璇村疄璇濇垜涔熷缃戠粶鐨勶紝涓嶈繃杩欑煡璇嗕笉鐢ㄤ簡濂戒箙锛屾湁浜涚敓鐤忎簡锛岀涓変釜闂鏈澶ф渶灏忓间笉鐭ラ亾杩欎箞鍥炵瓟瀵逛笉瀵癸紝甯屾湜浣犲彲浠ユ妸姝g‘鐨勭瓟妗堝憡璇夋垜銆備竴璧...
绛旓細澶ф涓涓瓙缃1000-512涓満鍣紝鏈16涓瓙缃 鎵浠ユ瘡涓瓙缃戝唴閮ㄨ嚦灏戦渶瑕10浣ip鏉ュ尯鍒 鑰16涓瓙缃戦渶瑕4浣 鍗曚綅鍒嗗埌鐨勫墠16浣嶄簩杩涘埗涓130.25 鍚16浣嶄簩杩涘埗0000 0000.00000000 鍙互鐢ㄥ墠鍥涗綅鏍囧織瀛愮綉锛屽悗闈12浣嶆潵琛ㄧず瀛愮綉鍐呯殑鏈哄櫒 褰撶劧涔熷彲浠ユ槸5浣嶅拰11浣嶇殑缁勫悎绛夌瓑 绗竴涓瓙缃130.25.0.0-130.25.15....