{"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

\u6982\u8ff0CIDR\u5730\u5740\u5757<\/h2>\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\u8868\u793a\u6cd5<\/h3>\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

  IPv4\u548cIPv6\u4e2d\u7684CIDR\u5730\u5740\u5757<\/h3>\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<\/h2>\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

  \u7f51\u7edc\u89c4\u5212\u548c\u5730\u5740\u5206\u914d<\/h3>\n

  \u901a\u8fc7CIDR\u5730\u5740\u5757\uff0c\u7f51\u7edc\u7ba1\u7406\u5458\u53ef\u4ee5\u66f4\u597d\u5730\u89c4\u5212\u7f51\u7edc\u62d3\u6251\u7ed3\u6784<\/a>\uff0c\u5408\u7406\u5206\u914dIP\u5730\u5740\uff0c\u5e76\u6709\u6548\u5730\u7ba1\u7406\u4e0d\u540c\u5b50\u7f51\u7684\u5730\u5740\u8303\u56f4\u3002CIDR\u5730\u5740\u5757\u7684\u7075\u6d3b\u6027\u4f7f\u5f97\u7f51\u7edc\u89c4\u5212\u66f4\u5177\u53ef\u6269\u5c55\u6027\u548c\u9002\u5e94\u6027\u3002<\/p>\n

  \u8def\u7531\u8868\u7684\u4f18\u5316<\/h3>\n

  \u5728Internet\u4e0a\uff0c\u6bcf\u4e2a\u8def\u7531\u5668\u90fd\u9700\u8981\u7ef4\u62a4\u5b83\u7684\u8def\u7531\u8868\uff0c\u7528\u4e8e\u786e\u5b9a\u6570\u636e\u5305\u7684\u4e0b\u4e00\u8df3\u3002CIDR\u5730\u5740\u5757\u7684\u4f7f\u7528\u53ef\u4ee5\u5927\u5927\u51cf\u5c0f\u8def\u7531\u8868\u7684\u89c4\u6a21\uff0c\u7b80\u5316\u8def\u7531\u5668\u7684\u8def\u7531\u9009\u62e9\u8fc7\u7a0b\uff0c\u63d0\u9ad8\u7f51\u7edc\u7684\u4f20\u8f93\u6548\u7387\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  CIDR\u5730\u5740\u5757\u4f5c\u4e3aIP\u7f51\u7edc\u4e2d\u4e00\u79cd\u91cd\u8981\u7684\u5730\u5740\u8868\u793a\u65b9\u6cd5\uff0c\u5bf9\u63d0\u5347\u7f51\u7edc\u7684\u7075\u6d3b\u6027\u3001\u53ef\u6269\u5c55\u6027\u548c\u7ba1\u7406\u6548\u7387\u8d77\u5230\u4e86\u5173\u952e\u4f5c\u7528\u3002<\/strong>\u901a\u8fc7CIDR\u5730\u5740\u5757\uff0c\u7f51\u7edc\u7ba1\u7406\u5458\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406IP\u5730\u5740\u548c\u5b50\u7f51\u5212\u5206\uff0c\u4fc3\u8fdb\u7f51\u7edc\u7684\u89c4\u5212\u548c\u4f18\u5316\u3002<\/p>\n","protected":false},"excerpt":{"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\u6982\u8ff0CIDR\u5730\u5740\u5757CIDR\u5730\u5740\u5757\u662f\u4e00\u79cd\u7528\u4e8e\u5728Inte<\/p>\n","protected":false},"author":1,"featured_media":64183,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-76737","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/76737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=76737"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/76737\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/64183"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=76737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=76737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=76737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}