ip鍦板潃鏄敮涓鐨
绔彛鍙蜂竴涓16浣嶇殑鏁存暟锛屾渶澶氫负65536
褰撲竴涓鎴风鍙戣捣杩炴帴璇锋眰鐨勬椂鍊欙紝瀹㈡埛绔殑绔彛鏄敱鎿嶄綔绯荤粺鍐呮牳
涓存椂鍒嗛厤鐨勶紝鎴愪负涓存椂绔彛銆
涓涓繛鎺ュ彲浠ラ氳繃瀹㈡埛绔-鏈嶅姟绔殑ip鍜岀鍙e敮涓纭畾锛岃繖鍙仛濂楁帴瀛楀
鍥介檯鏍囧噯鍖栫粍缁噄pv4鍦ㄥ湴鍧绌洪棿涓撻棬鍒掑嚭涓浜涚綉娈碉紝杩欎簺缃戞涓嶄細鐢ㄤ綔鍏綉涓婄殑ip锛
浜屽崄浠呬粎淇濈暀鍋氬唴閮ㄤ娇鐢紝鎴戜滑鎶婅繖浜涘湴鍧绉颁负淇濈暀缃戞
10.0.0.0-10.255.255.255 16777216涓
172.16.0.0-172.31.255.255 1048576涓
192.168.0.0-192.168.255.255 65536涓
鐩磋鐐硅锛屽畠琛ㄧず鐨勬槸杩欑粍ip鍏卞悓鐨勯儴鍒嗭紝姣斿鍦192.168.1.1~192.168.1.255杩欎釜鍖洪棿閲岋紝瀹冧滑鐨勫叡鍚岀殑閮ㄥ垎鏄192.168.1.0
瀹冭〃绀虹殑鏄繖缁刬p涓嶅悓鐨勯儴鍒嗭紝涓婇潰鐨勪緥瀛愪腑1-255灏辨槸涓嶅悓鐨勯偅浜涢儴鍒嗭紝琛ㄧず鏈255涓彲鐢ㄧ殑涓嶅悓ip
渚嬪ipv4锛192.0.2.12锛屾垜浠彲浠ヨ鍓嶉潰涓変釜bytes鏄瓙缃戯紝鏈鍚庝竴涓猙yte鏄痟ost锛屾垨鑰
鎹釜鏂瑰紡锛屾垜浠兘璇磆ost涓8浣嶏紝瀛愮綉鎺╃爜涓192.0.2.0/24(255.255.255.0)
PFC1918 name | ip address range | number of addresses | largest cidr block(subnet mask) | host id size | mask bits | classful description |
---|---|---|---|---|---|---|
24-bit block | 10.0.0.0 – 10.255.255.255 | 16777216 | 10.0.0.0/8(255.0.0.0) | 24bits | 8bits | single class a network |
20-bit block | 172.16.0.0 – 172.31.255.255 | 1048576 | 172.16.0.0/12(255.240.0.0) | 20 bits | 12 bits | 16 contiguous class b networks |
16-bit block | 192.168.0.0 – 192.168.255.255 | 65536 | 192.168.0.0/16(255.255.0.0) | 16 bits | 16 bits | 256 contiguous class c networks |
鐩稿鐨 class b鐨勭綉缁,缃戠粶鏈変袱涓瓧鑺傦紝鑰宧ost鍙湁涓や釜瀛楄妭锛屼篃灏辨槸璇存嫢鏈夌殑涓绘満涓暟涓65536涓
class c鐨勭綉缁,缃戠粶鏈変笁涓瓧鑺傦紝鑰宧ost鍙湁涓涓瓧鑺傦紝涔熷氨鏄嫢鏈夌殑涓绘満涓暟涓256.
瀛愮綉鎺╃爜鑳芥帴鍙椾换鎰忎釜浣嶏紝鑰屼笉鍗曠函鏄笂闈㈣璁虹殑 8锛16 鎴 24涓瘮鐗硅屽凡,鎵浠ヤ綘鍙互鏈変竴涓瓙缃戞帺鐮255.255.255.252(浜岃繘鍒朵綅11111111.11111111.11111111.11111100)锛岃繖涓瓙缃戞帺鐮佽兘鍒囬櫎涓涓30涓綅鐨勭綉缁滀互鍙2涓綅鐨勪富鏈猴紝杩欎釜缃戠粶鏈澶氭湁4鍙癶ost锛屼负浠涔堟槸4鍙帮紝鍥犱负鍙樺寲鐨勫彧鏈夋渶鍚庝袱浣嶏紝鎵浠ユ槸2鐨2娆℃柟銆
鍍255.192.0.0锛屼汉浠棤娉曠洿瑙傜殑鐭ラ亾鏈夊涓1锛屽涓0锛屾墍浠ュ彂鏄庝簡鏂版柟娉曪紝灏嗕竴涓枩绾挎斁鍦╥p鍦板潃鍚庨潰锛屾帴鍙g敤涓涓10杩涘埗鐨勬暟瀛楁潵琛ㄧず缃戠粶鐨勪綅鏁帮紝濡192.0.2.12/30锛岃繖鏍峰氨鐭ラ亾鏈30涓1锛2涓0
璁板綍缃戠珯鍜宨p鐨勫叧绯
鍙戣〃鍥炲