{"id":61,"date":"2006-09-02T16:38:28","date_gmt":"2006-09-02T08:38:28","guid":{"rendered":"http:\/\/218.246.69.8\/blog\/?p=61"},"modified":"2006-09-02T16:38:28","modified_gmt":"2006-09-02T08:38:28","slug":"vlan%e4%b8%8epvlan","status":"publish","type":"post","link":"https:\/\/www.liangliang.org.cn\/?p=61","title":{"rendered":"VLAN\u4e0ePVLAN"},"content":{"rendered":"<p>VLAN\u7684\u5c40\u9650\u6027<\/p>\n<p>\u968f\u7740\u7f51\u7edc\u7684\u8fc5\u901f\u53d1\u5c55\uff0c\u7528\u6237\u5bf9\u4e8e\u7f51\u7edc\u6570\u636e\u901a\u4fe1\u7684\u5b89\u5168\u6027\u63d0\u51fa\u4e86\u66f4\u9ad8\u7684\u8981\u6c42\uff0c\u8bf8\u5982\u9632\u8303\u9ed1\u5ba2\u653b\u51fb\u3001\u63a7\u5236\u75c5\u6bd2\u4f20\u64ad\u7b49\uff0c\u90fd\u8981\u6c42\u4fdd\u8bc1\u7f51\u7edc\u7528\u6237\u901a\u4fe1\u7684\u76f8\u5bf9\u5b89\u5168\u6027\uff1b\u4f20\u7edf\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u7ed9\u6bcf\u4e2a\u5ba2\u6237\u5206\u914d\u4e00\u4e2aVLAN\u548c\u76f8\u5173\u7684IP\u5b50\u7f51\uff0c\u901a\u8fc7\u4f7f\u7528VLAN\uff0c\u6bcf\u4e2a\u5ba2\u6237\u88ab\u4ece\u7b2c2\u5c42\u9694\u79bb\u5f00\uff0c\u53ef\u4ee5\u9632\u6b62\u4efb\u4f55\u6076\u610f\u7684\u884c\u4e3a\u548cEthernet\u7684\u4fe1\u606f\u63a2\u542c\u3002 \u7136\u800c\uff0c\u8fd9\u79cd\u5206\u914d\u6bcf\u4e2a\u5ba2\u6237\u5355\u4e00VLAN\u548cIP\u5b50\u7f51\u7684\u6a21\u578b\u9020\u6210\u4e86\u5de8\u5927\u7684\u53ef\u6269\u5c55\u65b9\u9762\u7684\u5c40\u9650\u3002\u8fd9\u4e9b\u5c40\u9650\u4e3b\u8981\u6709\u4e0b\u8ff0\u51e0\u65b9\u9762\u3002<\/p>\n<p>\uff081\uff09VLAN\u7684\u9650\u5236\uff1a\u4ea4\u6362\u673a\u56fa\u6709\u7684VLAN\u6570\u76ee\u7684\u9650\u5236\uff1b<br \/>\n\uff082\uff09\u590d\u6742\u7684STP\uff1a\u5bf9\u4e8e\u6bcf\u4e2aVLAN\uff0c\u6bcf\u4e2a\u76f8\u5173\u7684Spanning Tree\u7684\u62d3\u6251\u90fd\u9700\u8981\u7ba1\u7406\uff1b<br \/>\n\uff083\uff09IP\u5730\u5740\u7684\u7d27\u7f3a\uff1aIP\u5b50\u7f51\u7684\u5212\u5206\u52bf\u5fc5\u9020\u6210\u4e00\u4e9bIP\u5730\u5740\u7684\u6d6a\u8d39\uff1b<br \/>\n\uff084\uff09\u8def\u7531\u7684\u9650\u5236\uff1a\u6bcf\u4e2a\u5b50\u7f51\u90fd\u9700\u8981\u76f8\u5e94\u7684\u9ed8\u8ba4\u7f51\u5173\u7684\u914d\u7f6e\u3002<\/p>\n<p>PVLAN\u6280\u672f<\/p>\n<p>\u73b0\u5728\u6709\u4e86\u4e00\u79cd\u65b0\u7684VLAN\u673a\u5236\uff0c\u6240\u6709\u670d\u52a1\u5668\u5728\u540c\u4e00\u4e2a\u5b50\u7f51\u4e2d\uff0c\u4f46\u670d\u52a1\u5668\u53ea\u80fd\u4e0e\u81ea\u5df1\u7684\u9ed8\u8ba4\u7f51\u5173\u901a\u4fe1\u3002\u8fd9\u4e00\u65b0\u7684VLAN\u7279\u6027\u5c31\u662f\u4e13\u7528VLAN\uff08Private VLAN\uff09\u3002\u5728Private VLAN\u7684\u6982\u5ff5\u4e2d\uff0c\u4ea4\u6362\u673a\u7aef\u53e3\u6709\u4e09\u79cd\u7c7b\u578b\uff1aIsolated port\uff0cCommunity port, Promisc-uous port\uff1b\u5b83\u4eec\u5206\u522b\u5bf9\u5e94\u4e0d\u540c\u7684VLAN\u7c7b\u578b\uff1aIsolated port\u5c5e\u4e8eIsolated PVLAN\uff0cCommunity port\u5c5e\u4e8eCommunity PVLAN\uff0c\u800c\u4ee3\u8868\u4e00\u4e2aPrivate VLAN\u6574\u4f53\u7684\u662fPrimary VLAN\uff0c\u524d\u9762\u4e24\u7c7bVLAN\u9700\u8981\u548c\u5b83\u7ed1\u5b9a\u5728\u4e00\u8d77\uff0c\u540c\u65f6\u5b83\u8fd8\u5305\u62ecPromiscuous port\u3002\u5728Isolated PVLAN\u4e2d\uff0cIsolated port\u53ea\u80fd\u548cPromiscuous port\u901a\u4fe1\uff0c\u5f7c\u6b64\u4e0d\u80fd\u4ea4\u6362\u6d41\u91cf\uff1b\u5728Community PVLAN\u4e2d\uff0cCommunity port\u4e0d\u4ec5\u53ef\u4ee5\u548cPromiscuous port\u901a\u4fe1\uff0c\u800c\u4e14\u5f7c\u6b64\u4e5f\u53ef\u4ee5\u4ea4\u6362\u6d41\u91cf\u3002Promiscuous port \u4e0e\u8def\u7531\u5668\u6216\u7b2c3\u5c42\u4ea4\u6362\u673a\u63a5\u53e3\u76f8\u8fde,\u5b83\u6536\u5230\u7684\u6d41\u91cf\u53ef\u4ee5\u53d1\u5f80Isolated port\u548cCommunity port\u3002PVLAN\u7684\u5e94\u7528\u5bf9\u4e8e\u4fdd\u8bc1\u63a5\u5165\u7f51\u7edc\u7684\u6570\u636e\u901a\u4fe1\u7684\u5b89\u5168\u6027\u662f\u975e\u5e38\u6709\u6548\u7684\uff0c\u7528\u6237\u53ea\u9700\u4e0e\u81ea\u5df1\u7684\u9ed8\u8ba4\u7f51\u5173\u8fde\u63a5\uff0c\u4e00\u4e2aPVLAN\u4e0d\u9700\u8981\u591a\u4e2aVLAN\u548cIP\u5b50\u7f51\u5c31\u63d0\u4f9b\u4e86\u5177\u5907\u7b2c2\u5c42\u6570\u636e\u901a\u4fe1\u5b89\u5168\u6027\u7684\u8fde\u63a5\uff0c\u6240\u6709\u7684\u7528\u6237\u90fd\u63a5\u5165PVLAN\uff0c\u4ece\u800c\u5b9e\u73b0\u4e86\u6240\u6709\u7528\u6237\u4e0e\u9ed8\u8ba4\u7f51\u5173\u7684\u8fde\u63a5\uff0c\u800c\u4e0ePVLAN\u5185\u7684\u5176\u4ed6\u7528\u6237\u6ca1\u6709\u4efb\u4f55\u8bbf\u95ee\u3002PVLAN\u529f\u80fd\u53ef\u4ee5\u4fdd\u8bc1\u540c\u4e00\u4e2aVLAN\u4e2d\u7684\u5404\u4e2a\u7aef\u53e3\u76f8\u4e92\u4e4b\u95f4\u4e0d\u80fd\u901a\u4fe1\uff0c\u4f46\u53ef\u4ee5\u7a7f\u8fc7Trunk\u7aef\u53e3\u3002\u8fd9\u6837\u5373\u4f7f\u540c\u4e00VLAN\u4e2d\u7684\u7528\u6237\uff0c\u76f8\u4e92\u4e4b\u95f4\u4e5f\u4e0d\u4f1a\u53d7\u5230\u5e7f\u64ad\u7684\u5f71\u54cd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>VLAN\u7684\u5c40\u9650\u6027 \u968f\u7740\u7f51\u7edc\u7684\u8fc5\u901f\u53d1\u5c55\uff0c\u7528\u6237\u5bf9\u4e8e\u7f51\u7edc\u6570\u636e\u901a\u4fe1\u7684\u5b89\u5168\u6027\u63d0\u51fa\u4e86\u66f4\u9ad8\u7684\u8981\u6c42\uff0c\u8bf8\u5982\u9632\u8303\u9ed1\u5ba2\u653b\u51fb\u3001\u63a7\u5236\u75c5\u6bd2\u4f20\u64ad\u7b49\uff0c\u90fd\u8981\u6c42\u4fdd\u8bc1\u7f51\u7edc\u7528\u6237\u901a\u4fe1\u7684\u76f8\u5bf9\u5b89\u5168\u6027\uff1b\u4f20\u7edf\u7684\u89e3\u51b3\u65b9\u6cd5\u662f\u7ed9\u6bcf\u4e2a\u5ba2\u6237\u5206\u914d\u4e00\u4e2aVLAN\u548c\u76f8&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[],"class_list":["post-61","post","type-post","status-publish","format-standard","hentry","category-32"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/61","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=61"}],"version-history":[{"count":0,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=\/wp\/v2\/posts\/61\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.liangliang.org.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}