{"id":76737,"date":"2024-01-02T10:33:39","date_gmt":"2024-01-02T02:33:39","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=76737"},"modified":"2024-01-02T10:33:39","modified_gmt":"2024-01-02T02:33:39","slug":"udzk","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/76737.html","title":{"rendered":"Understanding CIDR\u5730\u5740\u5757"},"content":{"rendered":"
CIDR\uff08\u65e0\u7c7b\u57df\u95f4\u8def\u7531\uff09\u5730\u5740\u5757\u5728\u8ba1\u7b97\u673a\u7f51\u7edc\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u7684\u89d2\u8272\u3002\u672c\u6587\u5c06\u63a2\u8ba8CIDR\u5730\u5740\u5757\u7684\u6982\u5ff5\u3001\u5e94\u7528\u548c\u76f8\u5173\u77e5\u8bc6\u3002<\/p>\n
CIDR\u5730\u5740\u5757\u662f\u4e00\u79cd\u7528\u4e8e\u5728Internet Protocol\uff08IP\uff09\u7f51\u7edc\u4e2d\u8868\u793aIP\u5730\u5740\u548c\u5176\u5bf9\u5e94\u7684\u5b50\u7f51\u63a9\u7801\u7684\u65b9\u6cd5\u3002CIDR\u5730\u5740\u5757\u4f7f\u7528IP\u5730\u5740\u540e\u9762\u8ddf\u7740\u4e00\u4e2a\u659c\u6760\u548c\u4e00\u4e2a\u6570\u5b57\uff0c\u4f8b\u5982192.168.1.0\/24\u3002<\/p>\n
\u5728CIDR\u8868\u793a\u6cd5\u4e2d\uff0c\u659c\u6760\u540e\u7684\u6570\u5b57\u8868\u793aIP\u5730\u5740\u4e2d\u5de6\u4fa7\u8fde\u7eed\u76841\u7684\u4f4d\u6570\uff0c\u5373\u5b50\u7f51\u63a9\u7801\u7684\u4f4d\u6570\u3002CIDR\u5730\u5740\u5757\u53ef\u4ee5\u5e2e\u52a9\u7b80\u5316\u8def\u7531\u8868\uff0c\u63d0\u9ad8IP\u5730\u5740\u5229\u7528\u7387\uff0c\u5e76\u652f\u6301\u66f4\u7075\u6d3b\u3001\u9ad8\u6548\u7684\u7f51\u7edc\u89c4\u5212\u548c\u7ba1\u7406\u3002<\/p>\n
CIDR\u5730\u5740\u5757\u4f7f\u7528\u4e00\u79cd\u7b80\u6d01\u7684\u8868\u793a\u6cd5\u6765\u63cf\u8ff0IP\u5730\u5740\u548c\u5176\u5bf9\u5e94\u7684\u5b50\u7f51\u63a9\u7801\u3002\u4f8b\u5982\uff0c192.168.1.0\/24\u8868\u793aIP\u5730\u5740192.168.1.0\u548c\u5176\u5bf9\u5e94\u7684\u5b50\u7f51\u63a9\u7801\u4e3a255.255.255.0\u3002\u901a\u8fc7CIDR\u8868\u793a\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8ba1\u7b97IP\u5730\u5740\u7684\u7f51\u7edc\u5730\u5740\u548c\u5e7f\u64ad\u5730\u5740\uff0c\u4fbf\u4e8e\u7f51\u7edc\u8bbe\u5907\u8fdb\u884c\u6570\u636e\u5305\u8f6c\u53d1\u548c\u8def\u7531\u9009\u62e9\u3002<\/p>\n
\u5728IPv4\u548cIPv6\u7f51\u7edc\u4e2d\uff0cCIDR\u5730\u5740\u5757\u90fd\u5f97\u5230\u5e7f\u6cdb\u5e94\u7528\u3002IPv4 CIDR\u5730\u5740\u5757\u901a\u5e38\u7528\u4e8e\u5212\u5206IPv4\u5730\u5740\u7a7a\u95f4\uff0c\u4f7f\u5f97\u4e0d\u540c\u89c4\u6a21\u7684\u7f51\u7edc\u53ef\u4ee5\u4f7f\u7528\u5408\u9002\u5927\u5c0f\u7684IP\u5730\u5740\u8303\u56f4\uff0c\u51cf\u5c11\u4e86IP\u5730\u5740\u7684\u6d6a\u8d39\u3002\u800c\u5728IPv6\u7f51\u7edc\u4e2d\uff0cCIDR\u5730\u5740\u5757\u540c\u6837\u80fd\u591f\u652f\u6301\u66f4\u7075\u6d3b\u7684IPv6\u5730\u5740\u89c4\u5212\u548c\u8def\u7531\u7ba1\u7406\u3002<\/p>\n
CIDR\u5730\u5740\u5757\u7684\u5e94\u7528\u6d89\u53ca\u5230\u7f51\u7edc\u89c4\u5212\u3001\u5b50\u7f51\u5212\u5206\u3001\u8def\u7531\u5668\u914d\u7f6e\u7b49\u591a\u4e2a\u65b9\u9762\uff0c\u5bf9\u4e8e\u6784\u5efa\u7075\u6d3b\u3001\u9ad8\u6548\u7684IP\u7f51\u7edc\u81f3\u5173\u91cd\u8981\u3002<\/p>\n