{"id":561,"date":"2025-06-15T23:14:43","date_gmt":"2025-06-15T15:14:43","guid":{"rendered":"https:\/\/cococat.top\/?p=561"},"modified":"2025-06-29T09:44:28","modified_gmt":"2025-06-29T01:44:28","slug":"vxlan-%e7%9a%84%e4%b8%80%e4%ba%9b%e4%b8%ba%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/cococat.top\/index.php\/2025\/06\/15\/vxlan-%e7%9a%84%e4%b8%80%e4%ba%9b%e4%b8%ba%e4%bb%80%e4%b9%88\/","title":{"rendered":"VXLAN \u7684\u4e00\u4e9b\u4e3a\u4ec0\u4e48"},"content":{"rendered":"<p>\u65e9\u671f\u4e91\u8ba1\u7b97\u65f6\u4ee3\uff0c\u865a\u62df\u673a\u7206\u53d1\u589e\u957f\u5e26\u6765\u7684\u9700\u6c42\uff1a\u865a\u673a\u8981\u80fd\u5728\u4e0d\u540c\u7684\u7269\u7406\u5bbf\u4e3b\u673a\u95f4\u65e0\u7f1d\u8fc1\u79fb\u3002\u65e0\u7f1d\u8fc1\u79fb\uff0c\u5373\u73b0\u6709\u7684 TCP\/UDP \u8fde\u63a5\u4e0d\u80fd\u65ad\u5f00\uff0c\u8fd9\u5c31\u8981\u6c42\u8fc1\u79fb\u524d\u540e IP \u548c MAC \u5730\u5740\u4e0d\u80fd\u6539\u53d8\u3002<\/p>\n<p>\u65e9\u671f\u7684\u65b9\u6848\u662f\u5728\u4e8c\u5c42\u4e0a\u6253\u8865\u4e01\uff0c\u5373 VLAN\uff0c\u4f46\u662f\u7531\u4e8e\u534f\u8bae\u8bbe\u8ba1\u65f6\u7684\u5c40\u9650\u6027\uff0c\u5212\u5206\u6570\u91cf\u7684\u4e0a\u7ebf\u4ec5 4096\uff0c\u4e0d\u518d\u6ee1\u8db3\u6301\u7eed\u589e\u957f\u7684\u9700\u6c42\u3002\u6700\u7ec8\u6f14\u5316\u51fa\u4e86 VXLAN \u6280\u672f\uff0c\u5373\u5728\u771f\u5b9e\u7684\u4e09\u5c42\u7f51\u7edc\u4e0a\u5b9e\u73b0\u4e00\u4e2a\u865a\u62df\u7684\u4e8c\u5c42\u7f51\u7edc\u3002<\/p>\n<h1>1. \u4e3a\u4ec0\u4e48\u8981 MAC \u4e0d\u53d8\uff1f<\/h1>\n<p>\u5982\u679c\u6539\u53d8\uff0cvpc \u4e2d\u5176\u4ed6\u672a\u8fc1\u79fb\u673a\u5668\u7684 ARP \u7f13\u5b58\u5931\u6548\uff0c\u4e8c\u5c42\u7f51\u7edc\u65ad\u5f00\u3002<\/p>\n<h1>2. \u4e3a\u4ec0\u4e48 VXLAN \u8981\u6709\u4e00\u4e2a UDP \u62bd\u8c61\u5c42<\/h1>\n<p>\u65e2\u7136\u5fc5\u987b\u8981\u5728\u4e09\u5c42\u4e0a\u5c01\u5305\uff0c\u4e3a\u4ec0\u4e48\u4e00\u5b9a\u8981\u662f\u5f15\u5165\u4e00\u4e2a\u989d\u5916\u7684 UDP \u5c42\uff1f\u4e3a\u5565\u4e0d\u80fd\u641e\u4e2a\u65b0\u7684\u534f\u8bae\u628a\u8fd9 8 \u4e2a\u5b57\u8282\u7684\u5934\u90e8\u4e5f\u7701\u6389\uff1f<\/p>\n<h2>2.1. \u7834\u574f ECMP \u8d1f\u8f7d\u5747\u8861<\/h2>\n<p>\u73b0\u4ee3\u6570\u636e\u4e2d\u5fc3\u7f51\u7edc\u5e7f\u6cdb\u91c7\u7528 ECMP\uff08Equal-Cost Multi-Path\uff09\u6280\u672f\uff0c\u57fa\u4e8e\u6570\u636e\u5305\u5934\u90e8\u7684\u4fe1\u606f\u8fdb\u884c\u54c8\u5e0c\uff0c\u4ece\u800c\u5728\u591a\u6761\u6210\u672c\u76f8\u5f53\u7684\u8def\u5f84\u4e2d\u9009\u62e9\u4e00\u6761\u7528\u4e8e\u8f6c\u53d1\u3002\u8fd9\u79cd\u6280\u672f\u53ef\u4ee5\u5b9e\u73b0\u5185\u90e8\u94fe\u8def\u7684\u8d1f\u8f7d\u5747\u8861\u3002<\/p>\n<blockquote>\n<p>\u5bf9\u4e8e\u8bb8\u591a\u56db\u5c42\u8fde\u63a5\uff0c\u5c24\u5176\u662f TCP \u6765\u8bf4\uff0cECMP \u5e94\u5f53\u4fdd\u8bc1\u4e00\u6b21\u8fde\u63a5\u4e2d\u6240\u6709\u5f80\u6765\u62a5\u6587\u7684\u8f6c\u53d1\u8def\u5f84\u662f\u4e00\u81f4\u7684\uff0c\u5426\u5219\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\u7684\u6548\u679c\u5c31\u5927\u6253\u6298\u6263\u3002<\/p>\n<\/blockquote>\n<p>\u901a\u5e38\uff0cECMP \u7684\u54c8\u5e0c\u7b97\u6cd5\u5bf9\u8c61\u662f\u56db\u5c42\u4e94\u5143\u7ec4\uff08\u4f8b\u5982\u8fd9\u7bc7\u534e\u4e3a\u7684\u6570\u636e\u4e2d\u5fc3\u4ea4\u6362\u673a<a href=\"https:\/\/support.huawei.com\/enterprise\/zh\/doc\/EDOC1100218666\/5c1c3339\">\u6587\u6863<\/a>\uff09\u3002\u800c VXLAN \u5f15\u5165\u7684 UDP \u5c42\u4e2d\uff0c\u5176\u6e90\u7aef\u53e3\u53f7\u4e5f\u6ca1\u6709\u5b9e\u9645\u610f\u4e49\uff0c\u662f\u968f\u673a\u751f\u6210\u7684\u3002\u8fd9\u4e00\u70b9\u4e0e\u4e94\u5143\u7ec4\u54c8\u5e0c\u7684\u76f8\u6027\u5f88\u597d\uff0c\u53ef\u4ee5\u5145\u5206\u628a\u8f6c\u53d1\u8def\u5f84\u6253\u6563\u3001\u5229\u7528\u6570\u636e\u4e2d\u5fc3\u7f51\u7edc\u7684\u603b\u5e26\u5bbd\uff0c\u4e0d\u4f1a\u5bfc\u81f4\u504f\u538b\u3002<\/p>\n<p>\u800c\u5982\u679c\u5f15\u5165\u4e00\u4e2a\u53ca\u5176\u7cbe\u7b80\u7684\u534f\u8bae\u628a UDP \u5305\u5934\u53bb\u6389\uff0c\u5373\u4f7f ECMP \u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\uff0c\u4ed6\u4e5f\u6ca1\u6709\u7aef\u53e3\u53f7\u8fd9\u79cd\u968f\u673a\u503c\u7528\u6765\u54c8\u5e0c\u4e86\uff0c\u8fd9\u6837\u8d1f\u8f7d\u5747\u8861\u5c31\u4f1a\u5931\u6548\u3002<\/p>\n<h2>2.2. NAT \/ \u9632\u706b\u5899\u7a7f\u900f\u95ee\u9898<\/h2>\n<p>\u4f5c\u4e3a\u6807\u51c6\u534f\u8bae\uff0c\u73b0\u4ee3\u7684 NAT \u4e0e\u9632\u706b\u5899\u8f6f\u4ef6\u5e7f\u6cdb\u8bc6\u522b\u5e76\u5141\u8bb8 UDP \u6d41\u91cf\u3002<br \/>\nNAT \u901a\u5e38\u53ea\u80fd\u5728\u5c11\u6570\u51e0\u79cd\u6807\u51c6\u534f\u8bae\u4e0a\u5de5\u4f5c\uff0c\u4f8b\u5982 TCP\/UDP\/ICMP \u3002\u5982\u679c\u4f7f\u7528\u81ea\u5b9a\u4e49\u534f\u8bae\uff0cNAT \u5f88\u53ef\u80fd\u4e0d\u8bc6\u522b\u800c\u4e22\u5f03\u3002<br \/>\n\u4e91\u73af\u5883\u7684\u9632\u706b\u5899\u4e5f\u53ef\u80fd\u7531\u4e8e\u4e25\u683c\u7684\u7b56\u7565\u800c\u963b\u65ad\u672a\u77e5\u534f\u8bae\u53f7\u7684\u4e09\u5c42\u6570\u636e\u5305\u3002<\/p>\n<h2>2.3. \u786c\u4ef6\u517c\u5bb9<\/h2>\n<p>\u4e0a\u9762\u63d0\u5230\u7684\u662f\u73b0\u4ee3\u7f51\u7edc\u4e2d\u8f6f\u4ef6\u7684\u652f\u6301\u60c5\u51b5\u3002\u5b9e\u9645\u4e0a\uff0c\u786c\u4ef6\u4e5f\u53ef\u80fd\u51fa\u73b0\u652f\u6301\u95ee\u9898\u3002\u4ea4\u6362\u673a\u3001\u8def\u7531\u5668\u3001\u4e43\u81f3\u7f51\u5361\u786c\u4ef6\u52a0\u901f\u90fd\u80fd\u6b63\u786e\u5904\u7406 UDP \uff0c\u4f46\u65e0\u6cd5\u4fdd\u8bc1\u5bf9\u7279\u6b8a\u534f\u8bae\u7684\u517c\u5bb9\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e9\u671f\u4e91\u8ba1\u7b97\u65f6\u4ee3\uff0c\u865a\u62df\u673a\u7206\u53d1\u589e\u957f\u5e26\u6765\u7684\u9700\u6c42\uff1a\u865a\u673a\u8981\u80fd\u5728\u4e0d\u540c\u7684\u7269\u7406\u5bbf\u4e3b\u673a\u95f4\u65e0\u7f1d\u8fc1\u79fb\u3002\u65e0\u7f1d\u8fc1\u79fb\uff0c\u5373\u73b0\u6709\u7684 TCP\/U [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[31],"class_list":["post-561","post","type-post","status-publish","format-standard","hentry","category-11","tag-31"],"_links":{"self":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts\/561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/comments?post=561"}],"version-history":[{"count":2,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts\/561\/revisions"}],"predecessor-version":[{"id":564,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/posts\/561\/revisions\/564"}],"wp:attachment":[{"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/media?parent=561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/categories?post=561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cococat.top\/index.php\/wp-json\/wp\/v2\/tags?post=561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}