① 缃戠粶鍓岖紑閮芥湁鍝浜涗綔鐢锛
缃戠粶鍓岖紑镄勯暱搴︼纴鍗冲湴鍧镄勭绣缁滈儴鍒嗗瑰簲镄処P鍦板潃閮ㄥ垎锛岀敤浜庡敮涓镙囱瘑杩炴帴鍒颁簰镵旂绣镄勭绣缁灭殑缃戠粶鍙凤纴绉颁负缃戠粶鍓岖紑銆
渚嬶细
ip鍦板潃 锛192.168.1.1
瀛愮绣鎺╃爜锛255.255.255.0
濡傛灉浣跨敤瀛愮绣鍓岖紑闀垮害鍙浠ュ啓鎴 192.168.1.1/24
涔熷彲浠ヨ存槸瀛愮绣鎺╃爜镓鍖呭惈镄 钬1钬
255.255.255.0 鍦ㄤ簩杩涗綅閲屾槸
11111111.11111111.11111111.00000000 = 涓鍏辨槸24涓钬1钬
瀛愮绣鎺╃爜
瀛愮绣鎺╃爜瀹幂殑涓昏佷綔鐢ㄦ湁涓や釜锛屼竴鏄鐢ㄤ簬灞忚斀IP鍦板潃镄勪竴閮ㄥ垎浠ュ尯鍒缃戠粶镙囱瘑鍜屼富链烘爣璇嗭纴骞惰存槑璇IP鍦板潃鏄鍦ㄥ眬锘熺绣涓婏纴杩樻槸鍦ㄨ繙绋嬬绣涓娿备簩鏄鐢ㄤ簬灏嗕竴涓澶х殑IP缃戠粶鍒掑垎涓鸿嫢骞插皬镄勫瓙缃戠粶銆
浣跨敤瀛愮绣鏄涓轰简鍑忓皯IP镄勬氮璐广傚洜涓洪殢镌浜掕仈缃戠殑鍙戝𪾢锛岃秺𨱒ヨ秺澶氱殑缃戠粶浜х敓锛屾湁镄勭绣缁滃氩垯鍑犵栌鍙帮纴链夌殑鍙链夊尯鍖哄嚑鍙帮纴杩欐牱灏辨氮璐逛简寰埚欼P鍦板潃锛屾墍浠ヨ佸垝鍒嗗瓙缃戙备娇鐢ㄥ瓙缃戝彲浠ユ彁楂樼绣缁滃簲鐢ㄧ殑鏁堢巼銆
② 浠涔堟槸缃戠粶镄勫墠缂锛
缃戠粶镄勫墠缂涓猴细11111111.11111111.1010銆
鐢遍樻剰鍙寰楋纴棰樼洰涓缁椤嚭镄勫舰寮忎负镞犲垎绫荤紪鍧镄勫湴鍧锛屾墍浠IP鍦板潃钖庨溃鏂沧潬涔嫔悗镄勬暟瀛椾唬琛ㄧ绣缁滃墠缂镄勪綅鏁帮纴镓浠ュ缑鍑哄瓙缃戞帺镰佷负255.255.240.0銆傛墍浠ヤ笌IP鍦板潃鐩镐笌寰楀嚭缃戠粶鍙227.82.160.0銆傛墍浠ヨ寸绣缁灭殑鍓岖紑涓11111111.11111111.1010銆
缃戠粶鍓岖紑鍙浠ョ敤𨱒ユ爣璇嗘湰缃戠粶锛屽悓镞跺彲浠ユ嫇灞曚富链哄彿锛屾潵杩涜屽瓙缃戠殑鍒掑垎銆傝繘钥屾彁楂业P鍦板潃镄勫埄鐢ㄦ晥鐜囥
镓╁𪾢璧勬枡锛
镞犲垎绫荤紪鍧镄勭壒镣癸细
1銆丆IDR娑堥櫎浜嗕紶缁熺殑A绫汇丅绫诲拰C绫诲湴鍧浠ュ强鍒掑垎瀛愮绣镄勬傚康锛屽洜钥屽彲浠ユ洿锷犳湁鏁埚湴鍒嗛厤IPv4镄勫湴鍧绌洪棿銆
2銆丆IDR浣跨敤钖勭嶉暱搴 "缃戠粶鍓岖紑" 𨱒ヤ唬镟垮垎绫诲湴鍧涓缃戠粶鍙峰拰瀛愮绣鍙枫
3銆佺绣缁滀腑镄処P鍦板潃鐢辩绣缁滃湴鍧鍜屼富链哄彿鏋勬垚锛屽洜姝や娇寰桰P鍦板潃浠庝笁绾х紪鍒跺张锲炲埌浜嗕袱绾х紪鍒躲
4銆丆IDR浣跨敤"鏂灭嚎璁板繂娉"锛屽张绉颁负"CIDR璁版硶"锛屽嵆鍦↖P鍦板潃钖庨溃锷犱笂涓涓鏂灭嚎 "/"锛岀劧钖庡啓涓婄绣缁滃墠缂镓鍗犵殑姣旂壒鏁般
5銆佸彲浠ヨ村垎绫荤紪鍧鏄镞犲垎绫荤紪鍧镄勭壒渚嬨傜绣缁滃墠缂鐩稿悓镄処P鍦板潃绌洪棿缁勬垚浜咰IDR鍦板潃鍧楋纴鍦板潃鍧楃殑澶у皬涓2^(32-N)锛圢涓虹绣缁滃墠缂浣嶆暟锛夛纴CIDR鍦板潃鍧楀氨鐢ㄨュ湴鍧鍧楃殑璧峰嫔湴鍧鍜屽湴鍧鍧楀ぇ灏忥纸鍦板潃鍧椾腑镄勫湴鍧鏁帮级琛ㄧず銆
6銆丆IDR鍙栨秷浜嗗瓙缃戞傚康锛屼笉杩涜屽瓙缃戝垝鍒嗭纴浣呜缮浣跨敤鎺╃爜銆傚逛竴涓链垲涓虹绣缁滃墠缂镄処P鍦板潃锛屽叾鎺╃爜灏辨槸楂树綅N涓杩炵画镄1锛屼綑涓嬬殑鏄32-N涓0銆
7銆丆IDR镄勭敤阃斾箣涓灏辨槸鏋勯犺秴缃戙备娇鐢–IDR鍦板潃鍧楀悗锛岀绣缁滆矾鐢卞櫒涓镄勮矾鐢辫〃椤瑰彲浠ヨ〃绀哄緢澶氢釜浼犵粺IP鍦板潃镄勮矾鐢变俊鎭锛岀浉褰扑簬鎶婅嫢骞蹭釜缃戠粶钖埚苟涓轰竴涓瓒呯绣𨱒ヨ繘琛岃矾鐢便傝繖绉嶅湴鍧镄勮仛钖堢О涓鸿矾鐢辫仛钖堬纴涔熺О涓烘瀯阃犺秴缃戙