{"id":527,"date":"2020-01-02T23:58:20","date_gmt":"2020-01-02T15:58:20","guid":{"rendered":"https:\/\/www.myway5.com\/?p=527"},"modified":"2023-07-05T21:36:18","modified_gmt":"2023-07-05T13:36:18","slug":"vxlan","status":"publish","type":"post","link":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/","title":{"rendered":"VXLAN\u7f51\u7edc\u57fa\u7840"},"content":{"rendered":"<h2>\u7b80\u4ecb<\/h2>\n<p>VXLAN \u5168\u79f0 Virtual eXtensible Local Area Network, \u662f\u4e00\u79cd\u57fa\u4e8e\u4e09\u5c42\u7f51\u7edc\u6784\u5efa\u865a\u62df\u7684\u4e8c\u5c42\u7f51\u7edc\u7684\u65b9\u6848\u3002\u5b83\u4f7f\u7528 UDP \u5c01\u88c5\u4e8c\u5c42\u7684\u6570\u636e\u5e27\uff0c\u5b9e\u73b0\u4e86 overlay \u7f51\u7edc\u3002\u6240\u6709\u5904\u4e8e overlay \u7f51\u7edc\u4e2d\u7684\u8bbe\u5907\u5747\u611f\u89c9\u4e0d\u5230\u5e95\u5c42\u548c\u4f20\u7edf\u7f51\u7edc\u7684\u5dee\u522b\u3002<\/p>\n<h2>\u76f8\u5173\u77e5\u8bc6\u70b9<\/h2>\n<h3>OSI\u4e03\u5c42\u7f51\u7edc\u6a21\u578b<\/h3>\n<p>OSI \u7684\u4e03\u5c42\u7f51\u7edc\u6a21\u578b\u4ece\u4e0b\u5230\u4e0a\u4f9d\u6b21\u662f: \u7269\u7406\u5c42\uff0c\u6570\u636e\u94fe\u8def\u5c42\uff0c\u7f51\u7edc\u5c42\uff0c\u4f20\u8f93\u5c42\u3001\u4f1a\u8bdd\u5c42\u3001\u8868\u793a\u5c42\u3001\u5e94\u7528\u5c42<\/p>\n<p>\u6211\u4eec\u5728\u7b80\u4ecb\u4e2d\u63d0\u5230\u7684\u4e8c\u5c42\u3001\u4e09\u5c42\u90fd\u662f\u8fd9\u4e03\u5c42\u4e2d\u7684\uff0c\u4e8c\u5c42\u662f\u6570\u636e\u94fe\u8def\u5c42\uff0c\u5b83\u4e3b\u8981\u62bd\u8c61\u4e86\u6839\u636emac\u5730\u5740\u6765\u4f20\u8f93\u6570\u636e\u5e27\u8fd9\u4e00\u8fc7\u7a0b\u3002\u4e09\u5c42\u662f\u7f51\u7edc\u5c42\uff0c\u5178\u578b\u7684\u662fipv4, ipv6\u8fd9\u6837\u7684\u7f51\u7edc\u534f\u8bae\uff0c\u6839\u636e ip \u5730\u5740\u6765\u4f20\u8f93 ip \u6570\u636e\u62a5\u3002<\/p>\n<p>\u6ce8\u610f\u867d\u7136 VXLAN \u662f\u57fa\u4e8e UDP \u5c01\u88c5\u4e86\u6570\u636e\u5e27\uff0c\u4f46\u662f\u6211\u4eec\u4e00\u822c\u8bf4\u5b83\u662f\u57fa\u4e8e\u4e09\u5c42\u800c\u4e0d\u662f\u56db\u5c42\u3002\u56e0\u4e3a\u5728\u8fd9\u91cc\u6211\u4eec\u5173\u6ce8\u7684\u662f\u6570\u636e\u7684\u662f\u5982\u4f55\u4f20\u8f93\u5230\u6307\u5b9a\u5730\u5740\u7684\uff0c\u800c\u4e0d\u662f\u5982\u4f55\u5c01\u88c5\u7684\u3002<\/p>\n<h3>overlay \u7684\u542b\u4e49<\/h3>\n<p>overlay \u5b57\u9762\u542b\u4e49\u5c31\u662f\u4e0a\u5c42\u7684\uff0c\u8fd8\u6709\u4e00\u4e2a\u5bf9\u5e94\u7684\u8bcd\uff0c\u4e5f\u5c31\u662funderlay\u3002\u7ed3\u5408\u5728\u4e00\u8d77\u5c31\u597d\u7406\u89e3\u4e86\uff0c<br \/>\nVXLAN \u662f overlay \u7f51\u7edc\uff0c\u8bf4\u7684\u662f\u5b83\u5b9e\u73b0\u7684\u4e8c\u5c42\uff08\u6570\u636e\u94fe\u8def\u5c42\uff09\u662f overlay \u7684\uff0c\u8fd9\u4e8c\u5c42\u662f\u57fa\u4e8e\u4e09\u5c42\uff08\u7f51\u7edc\u5c42\uff09\u7684 underlay \u7f51\u7edc\u3002<\/p>\n<h3>\u5355\u64ad\u548c\u591a\u64ad<\/h3>\n<p><em>\u4e0b\u9762\u7684\u5b9a\u4e49\u6765\u6e90\u4e8e\u7ef4\u57fa\u767e\u79d1<\/em><\/p>\n<ul>\n<li>\u5355\u64ad: \u82f1\u6587 unicast, \u662f\u6307\u6570\u636e\u5305\u5728\u8ba1\u7b97\u673a\u7f51\u7edc\u7684\u4f20\u8f93\u4e2d\uff0c\u76ee\u7684\u5730\u5740\u4e3a\u5355\u4e00\u76ee\u6807\u7684\u4e00\u79cd\u4f20\u8f93\u65b9\u5f0f\u3002\u5b83\u662f\u73b0\u4eca\u7f51\u7edc\u5e94\u7528\u6700\u4e3a\u5e7f\u6cdb\uff0c\u901a\u5e38\u6240\u4f7f\u7528\u7684\u7f51\u7edc\u534f\u8bae\u6216\u670d\u52a1\u5927\u591a\u91c7\u7528\u5355\u64ad\u4f20\u8f93\uff0c\u4f8b\u5982\u4e00\u5207\u57fa\u4e8eTCP\u7684\u534f\u8bae\u3002<\/p>\n<\/li>\n<li>\n<p>\u591a\u64ad\uff08\u7ec4\u64ad\uff09: \u82f1\u6587 multicast\uff0c\u662f\u6307\u628a\u4fe1\u606f\u540c\u65f6\u4f20\u9012\u7ed9\u4e00\u7ec4\u76ee\u7684\u5730\u5740\u3002\u5b83\u4f7f\u7528\u7684\u7b56\u7565\u662f\u6700\u9ad8\u6548\u7684\uff0c\u56e0\u4e3a\u6d88\u606f\u5728\u6bcf\u6761\u7f51\u7edc\u94fe\u8def\u4e0a\u53ea\u9700\u4f20\u9012\u4e00\u6b21\uff0c\u4e14\u53ea\u6709\u5728\u94fe\u8def\u5206\u53c9\u7684\u65f6\u5019\uff0c\u6d88\u606f\u624d\u4f1a\u88ab\u590d\u5236\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u6570\u636e\u5e27<\/h3>\n<p>\u4ee5\u5e38\u89c1\u7684 EthernetII \u5e27\u4e3a\u4f8b\uff0c\u5176\u5e27\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png\" alt=\"ethernetII frame\" \/><\/p>\n<p>D.MAC: 6byte\uff0c\u76ee\u6807 MAC \u5730\u5740<br \/>\nS.MAC: 6byte, \u6765\u6e90 MAC \u5730\u5740<br \/>\nType: 2byte, 0x0800\u662f IP \u7c7b\u578b\uff0c0x0806 \u662f ARP \u7c7b\u578b<br \/>\nData: \u6570\u636e<br \/>\nFCS: \u4e3a\u4e86\u8fdb\u884c\u5dee\u9519\u68c0\u9a8c\u800c\u6dfb\u52a0\u7684\u5197\u4f59\u7801\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u6211\u7528 wireshark \u6293\u7684 arp \u5e27:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/arp_in_wireshark.png\" alt=\"arp in wireshark\" \/><\/p>\n<p>\u6211\u5728\u7b14\u8bb0\u672c(192.168.31.243)\u4e0a ping \u4e86 <code>192.168.31.133<\/code> \u8fd9\u4e2a\u5730\u5740\uff0c\u56e0\u4e3a\u6211\u7684\u7b14\u8bb0\u672c\u4e0d\u77e5\u9053 192.168.31.133 \u7684mac\u5730\u5740\uff0c\u56e0\u6b64\u4f7f\u7528 arp \u5e27\u6765\u67e5\u627e\u76ee\u7684mac\u5730\u5740\u3002<\/p>\n<h3>VLAN<\/h3>\n<p>VLAN(Virtual Local Area Network) \u548c\u672c\u6587\u4ecb\u7ecd\u7684 VXLAN \u4ece\u540d\u79f0\u4e0a\u770b\u5c31\u5f88\u76f8\u4f3c\uff0c\u4e2d\u6587\u540d\u79f0\u53eb\u505a\u865a\u62df\u5c40\u57df\u7f51\uff0c\u5b83\u4eec\u7684\u4f5c\u7528\u4e5f\u662f\u4e00\u6837\u7684\uff0c\u53ef\u4ee5\u7528\u6765\u5212\u5206\u5b50\u7f51\u3002\u4e0b\u9762\u91c7\u7528\u7ef4\u57fa\u767e\u79d1\u4e0a\u5173\u4e8e<a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zh.wikipedia.org\/wiki\/%E8%99%9A%E6%8B%9F%E5%B1%80%E5%9F%9F%E7%BD%91\">\u865a\u62df\u5c40\u57df\u7f51<\/a>\u7684\u4ecb\u7ecd\u3002<\/p>\n<blockquote><p>\n  \u865a\u62df\u533a\u57df\u7f51\u7edc\uff08Virtual Local Area Network\u6216\u7b80\u5199VLAN, V-LAN\uff09\u662f\u4e00\u79cd\u5efa\u6784\u4e8e\u5c40\u57df\u7f51\u4ea4\u6362\u6280\u672f\uff08LAN Switch\uff09\u7684\u7f51\u7edc\u7ba1\u7406\u7684\u6280\u672f\uff0c\u7f51\u7ba1\u4eba\u5458\u53ef\u4ee5\u501f\u6b64\u900f\u8fc7\u63a7\u5236\u4ea4\u6362\u673a\u6709\u6548\u5206\u6d3e\u51fa\u5165\u5c40\u57df\u7f51\u7684\u62a5\u6587\u5230\u6b63\u786e\u7684\u51fa\u5165\u7aef\u53e3\uff0c\u8fbe\u5230\u5bf9\u4e0d\u540c\u5b9e\u4f53\u5c40\u57df\u7f51\u4e2d\u7684\u8bbe\u5907\u8fdb\u884c\u903b\u8f91\u5206\u7fa4\uff08Grouping\uff09\u7ba1\u7406\uff0c\u5e76\u964d\u4f4e\u5c40\u57df\u7f51\u5185\u5927\u91cf\u6570\u636e\u6d41\u901a\u65f6\uff0c\u56e0\u65e0\u7528\u62a5\u6587\u8fc7\u591a\u5bfc\u81f4\u58c5\u585e\u7684\u95ee\u9898\uff0c\u4ee5\u53ca\u63d0\u5347\u5c40\u57df\u7f51\u7684\u4fe1\u606f\u5b89\u5168\u4fdd\u969c\u3002\n<\/p><\/blockquote>\n<p>\u4f46\u662f VLAN \u662f\u57fa\u4e8e\u4e8c\u5c42\u7684\u65b9\u6848\uff0c\u5b83\u4f1a\u5728\u6570\u636e\u5e27\u5934\u90e8\u6dfb\u52a04\u4e2a\u5b57\u8282\u7684 VLAN Tag\uff0c\u5176\u4e2d 12bit \u7528\u6765\u6807\u8bc6\u4e0d\u540c\u7684\u4e8c\u5c42\u7f51\u7edc\uff0c\u8fd9\u6837\u603b\u5171\u662f 4000 \u591a\u4e2a\u3002\u5176\u6b21 VLAN \u4f1a\u4f7f\u7528 MAC \u5730\u5740\u8868\u6765\u8bb0\u5f55 VLAN ID\u3001 MAC \u548c Port \u8fd9\u4e09\u8005\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u56e0\u6b64\u4e00\u65e6\u7f51\u7edc\u4e2d\u4e3b\u673a\u6570\u91cf\u591a\u8d77\u6765\uff0c\u4f1a\u5bfc\u81f4 MAC \u5730\u5740\u8868\u5360\u7528\u5f88\u5927\u7684\u5185\u5b58\u3002 \u5173\u4e8e VLAN \u548c VXLAN\u7684\u533a\u522b\uff0c\u53ef\u4ee5\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0: <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/36165475\">VXLAN vs VLAN<\/a><\/p>\n<h2>VXLAN \u534f\u8bae<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/vxlan-protocol.jpg\" alt=\"vxlan protocol\" \/><\/p>\n<p>\u4e0a\u56fe\u4ece\u6574\u4f53\u4e0a\u6765\u770b\uff0c\u662f\u4e00\u4e2a UDP \u7684\u62a5\u6587\uff0c\u5728 UDP \u7684\u6570\u636e\u90e8\u5206\u7684\u524d8\u4f4d\u662f VXLAN Header\uff0c\u8868\u660e\u8fd9\u4e2a UDP \u5c01\u88c5\u7684\u662f VXLAN \u7684\u6570\u636e\u5e27\uff0c\u540e\u9762\u5219\u662f\u539f\u59cb\u76842\u5c42\u6570\u636e\u5e27\u4e86\u3002\u5728 VXLAN Header\u4e2d\uff0c\u6709\u4e0b\u9762\u51e0\u4e2a\u5b57\u6bb5:<\/p>\n<ul>\n<li>VXLAN RRRR1RRR: VXLAN \u7684\u6807\u8bb0\u4f4d<\/li>\n<li>Reserved: \u4fdd\u7559\u4f4d<\/li>\n<li>VNID: 24\u4f4d\u7684 VNI \u5b57\u6bb5<\/li>\n<li>Reserved: \u4fdd\u7559\u5b57\u6bb5<\/li>\n<\/ul>\n<h2>VXLAN \u7684\u5b9e\u73b0\u539f\u7406<\/h2>\n<p>VXLAN \u5c06\u4ee5\u592a\u7f51\u6570\u636e\u5e27\u5c01\u88c5\u5728 UDP \u5185\uff0c\u8fdb\u800c\u5728\u4e09\u5c42\u7f51\u7edc\u4f20\u8f93\u3002VXLAN \u6570\u636e\u7684\u5c01\u88c5\u548c\u89e3\u5c01\u53d1\u751f\u5728 VTEP(VXLAN Tunnel EndPoint)\u3002VTEP \u662f VXLAN \u7f51\u7edc\u7684\u8fb9\u7f18\u8bbe\u5907\u3002\u540c\u65f6\u6bcf\u4e2a VXLAN \u7f51\u7edc\u90fd\u6709\u552f\u4e00\u7684 VNI(VXLAN Network Identifier) \u6807\u8bc6\uff0c\u8fd9\u6837\u5728\u4e00\u4e2a\u7269\u7406\u7f51\u7edc\u4e0a\u53ef\u4ee5\u6784\u5efa\u591a\u4e2a VXLAN \u865a\u62df\u7f51\u7edc\uff0c\u6ee1\u8db3\u591a\u79df\u6237\u7684\u8981\u6c42\u3002\u4e0b\u56fe\u662f VXLAN \u7684\u7f51\u7edc\u67b6\u6784\u793a\u610f\u56fe\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/vxlan.png\" alt=\"vxlan\" \/><\/p>\n<p>\u8fd9\u91cc\u9762\u6709\u4e24\u4e2a\u6bd4\u8f83\u91cd\u8981\u7684\u6982\u5ff5:<\/p>\n<ul>\n<li>VTEP: VTEP \u548c\u4f20\u7edf\u4ea4\u6362\u673a\u7c7b\u4f3c\uff0c\u4e5f\u662f\u57fa\u4e8e MAC \u5730\u5740\u8868\u5de5\u4f5c\uff0c\u662f VXLAN \u7f51\u7edc\u7684\u8fb9\u7f18\u8bbe\u5907\uff0c\u7528\u6765\u5bf9 VXLAN \u62a5\u6587\u5c01\u5305\u548c\u89e3\u5305\u3002VTEP \u53ef\u4ee5\u662f\u7f51\u7edc\u8bbe\u5907\uff08\u6bd4\u5982\u4ea4\u6362\u673a\uff09\uff0c\u4e5f\u53ef\u4ee5\u662f\u4e00\u53f0\u673a\u5668\uff08\u6bd4\u5982\u865a\u62df\u5316\u96c6\u7fa4\u4e2d\u7684\u5bbf\u4e3b\u673a\uff09\u3002\u5728 VTEP \u4e2d\uff0c\u53ef\u4ee5\u8ba4\u4e3a\u6709\u4e24\u4e2a\u8868: \u4e00\u4e2a\u662f VLAN \u548c VXLAN \u7684\u5bf9\u5e94\u5173\u7cfb\u8868\uff1b\u53e6\u4e00\u4e2a\u662f MAC \u5730\u5740\u8868\uff0c\u91cc\u9762\u5305\u542b\u4e86\u5f88\u591a MAC \u5730\u5740\uff0cVXLAN ID \u548c\u8fdc\u7aef VTEP IP \u5730\u5740\u7684\u5bf9\u5e94\u5173\u7cfb\u3002 VTEP \u6536\u5230\u4e0b\u9762\u4e3b\u673a\u7684\u7f51\u7edc\u6570\u636e\u5e27\u65f6\uff0c\u4f1a\u5148\u6839\u636e VLAN \u67e5\u7b2c\u4e00\u4e2a\u8868\u83b7\u53d6\u5bf9\u5e94\u7684 VXLAN ID\uff0c\u4e4b\u540e\u6839\u636e VXLAN ID\u548c\u76ee\u7684 MAC \u5730\u5740\uff0c\u67e5 MAC \u5730\u5740\u8868\u83b7\u53d6\u8fdc\u7aef VTEP \u7684 IP \u5730\u5740\u3002\u6700\u540e\uff0c VTEP \u4f1a\u5265\u79bbVLAN Tag\uff0c\u6309\u7167 VXLAN \u683c\u5f0f\u5c01\u88c5\u6570\u636e\u5e27\uff0c\u53d1\u5f80\u8fdc\u7aef\u7684 VTEP\u3002\u8fdc\u7aef\u7684 VTEP \u6536\u5230\u8be5\u6570\u636e\u540e\u8fdb\u884c\u89e3\u5305\uff0c\u6839\u636e MAC \u5730\u5740\u5c06\u6570\u636e\u5e27\u53d1\u5f80\u5176\u6240\u8fde\u63a5\u7684\u4e3b\u673a\u3002<\/p>\n<\/li>\n<li>\n<p>VNI: VNI \u662f\u6bcf\u4e2aVXLAN\u7684\u6807\u8bc6\uff0c\u4e5f\u5c31\u662f\u4e0a\u9762\u8bf4\u7684 VXLAN ID\uff0c\u517124\u4f4d\uff0c\u90a3\u4e48\u5c31\u53ef\u4ee5\u8868\u793a 2^24=16777216 \u4e2a VXLAN \u7f51\u7edc\u3002\u6bcf\u4e2a VXLAN ID \u5bf9\u5e94\u4e00\u4e2a\u79df\u6237\uff0c\u90a3\u4e48\u7406\u8bba\u4e0a\u53ef\u4ee5\u652f\u6491\u5343\u4e07\u7ea7\u522b\u7684\u79df\u6237\u3002<\/p>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2020\/01\/vxlan-vtep.jpg\" alt=\"vxlan-vtep\" \/><\/p>\n<p><em>\u56fe\u4f8b: VXLAN VTEP<\/em><\/p>\n<p>\u8fd9\u91cc\u53c8\u5f15\u51fa\u53e6\u5916\u4e00\u4e2a\u95ee\u9898\uff0c VXLAN \u4e2d\u7684\u4e00\u53f0\u4e3b\u673a\u5728\u53ea\u77e5\u9053 ip \u7684\u60c5\u51b5\u4e0b\uff0c\u5982\u4f55\u83b7\u53d6\u5bf9\u65b9\u7684 MAC \u5730\u5740\u3002\u5728\u4f20\u7edf\u7f51\u7edc\u4e2d\uff0cARP \u8bf7\u6c42\u662f\u7528\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u7684\u3002<\/p>\n<ul>\n<li>VXLAN \u7f51\u7edc\u4e2d\uff0c\u4e3b\u673a\u53d1\u51fa\u7684 ARP \u8bf7\u6c42\u4f1a\u88ab VTEP(1) \u63a5\u6536\u5230\uff0cVTEP(1) \u53d1\u73b0\u865a\u62df\u673a\u76ee\u7684 MAC \u4e3a\u5e7f\u64ad\u5730\u5740\uff0c\u5c01\u88c5\u4e0a VXLAN \u534f\u8bae\u5934\u90e8\u4e4b\u540e\uff0c\u53d1\u9001\u7ed9\u591a\u64ad\u7ec4\uff0c\u652f\u6301\u591a\u64ad\u7684\u5e95\u5c42\u7f51\u7edc\u8bbe\u5907\u4f1a\u628a\u62a5\u6587\u53d1\u9001\u7ed9\u7ec4\u5185\u7684\u6240\u6709\u6210\u5458<\/li>\n<li>VTEP(2) \u63a5\u6536\u5230 VXLAN \u5c01\u88c5\u7684 ARP \u8bf7\u6c42\uff0c\u53bb\u6389 VXLAN \u5934\u90e8\uff0c\u5e76\u901a\u8fc7\u62a5\u6587\u5b66\u4e60\u5230\u53d1\u9001\u65b9 &lt;\u865a\u62df\u673aMAC-VNI-VTEP IP>\u8fd9\u4e2a\u5bf9\u5e94\u5173\u7cfb\uff0c\u5e76\u628a\u539f\u6765\u7684 ARP \u62a5\u6587\u5e7f\u64ad\u7ed9\u4e3b\u673a\u3002<\/li>\n<li>\u4e3b\u673a\u63a5\u53d7\u5230 ARP \u8bf7\u6c42\u62a5\u6587\uff0c\u5982\u679c ARP \u62a5\u6587\u8bf7\u6c42\u7684\u662f\u81ea\u5df1\u7684 MAC \u5730\u5740\uff0c\u5c31\u8fd4\u56de ARP \u5e94\u7b54<\/li>\n<li>VTEP(2) \u6b64\u65f6\u5df2\u7ecf\u77e5\u9053\u53d1\u9001\u65b9\u7684\u865a\u62df\u673a MAC \u548c VTEP \u4fe1\u606f\uff0c\u628a ARP \u5e94\u7b54\u6dfb\u52a0\u4e0a VXLAN \u5934\u90e8\u4e4b\u540e\u901a\u8fc7\u5355\u64ad\u53d1\u9001\u51fa\u53bb<\/li>\n<li>VTEP(1)\u63a5\u6536\u5230\u62a5\u6587\uff0c\u5e76\u5b66\u4e60\u5230\u62a5\u6587\u4e2d\u7684<MAC-VNI-VTEP IP>\u7684\u5bf9\u5e94\u5173\u7cfb\uff0c\u8bb0\u5f55\u4e0b\u6765\u3002\u7136\u540e VTEP \u8fdb\u884c\u89e3\u5305\uff0c\u77e5\u9053\u5185\u90e8\u7684 IP \u548c MAC \u5730\u5740\uff0c\u5e76\u8f6c\u53d1\u7ed9\u865a\u62df\u673a\u3002<\/li>\n<li>\u865a\u62df\u673a\u62ff\u5230 ARP \u5e94\u7b54\u62a5\u6587\uff0c\u5c31\u77e5\u9053\u4e86\u5bf9\u65b9 IP \u5bf9\u5e94\u7684 MAC \u5730\u5740\u3002<\/li>\n<\/ul>\n<p>\u5728\u8fd9\u6b21\u591a\u64ad\u4e4b\u540e\uff0c\u4e24\u53f0\u865a\u62df\u673a\u4e4b\u95f4\u7684\u901a\u4fe1\u5c31\u53ef\u4ee5\u901a\u8fc7\u5355\u64ad\u4e86\u3002VTEP \u5728\u8fd9\u4e2d\u95f4\u62c5\u4efb\u4e86\u4e00\u4e2a\u4ee3\u7406\u7684\u89d2\u8272\uff0c\u4f7f\u5f97\u865a\u62df\u673a\u4e4b\u95f4\u53ef\u4ee5\u900f\u660e\u7684\u8fdb\u884c\u7f51\u7edc\u901a\u4fe1\u3002\u8fd9\u548c nginx \u62c5\u4efb\u53cd\u5411\u4ee3\u7406\u7684\u89d2\u8272\u6709\u70b9\u7c7b\u4f3c\u3002\u540c\u65f6\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\uff0c\u5728\u4e00\u4e2a\u5927\u89c4\u6a21\u7684 VXLAN \u7f51\u7edc\u4e2d\uff0c\u591a\u64ad\u4f1a\u662f\u4e00\u4ef6\u5f88\u6d88\u8017\u6027\u80fd\u7684\u4e8b\u3002<\/p>\n<h2>\u8d44\u6599\u5730\u5740<\/h2>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/36165475\">VXLAN vs VLAN<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/zhuanlan.zhihu.com\/p\/37171463\">VXLAN in OpenStack Neutron<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/cizixs.com\/2017\/09\/25\/vxlan-protocol-introduction\/\">VXLAN \u534f\u8bae\u539f\u7406\u7b80\u4ecb<\/a><\/p>\n<p><a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/cizixs.com\/2017\/09\/28\/linux-vxlan\/\">linux \u4e0a\u5b9e\u73b0vxlan\u7f51\u7edc<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b80\u4ecb VXLAN \u5168\u79f0 Virtual eXtensible Local Area Network, \u662f\u4e00\u79cd\u57fa &hellip; <a href=\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">VXLAN\u7f51\u7edc\u57fa\u7840<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","hentry","category-network"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VXLAN\u7f51\u7edc\u57fa\u7840 - \u4e00\u53ea\u5b89\u9759\u7684\u732b<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VXLAN\u7f51\u7edc\u57fa\u7840 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"og:description\" content=\"\u7b80\u4ecb VXLAN \u5168\u79f0 Virtual eXtensible Local Area Network, \u662f\u4e00\u79cd\u57fa &hellip; \u7ee7\u7eed\u9605\u8bfbVXLAN\u7f51\u7edc\u57fa\u7840\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-02T15:58:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-05T13:36:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png\" \/>\n<meta name=\"author\" content=\"jiangpengfei\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"jiangpengfei\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\"},\"author\":{\"name\":\"jiangpengfei\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"headline\":\"VXLAN\u7f51\u7edc\u57fa\u7840\",\"datePublished\":\"2020-01-02T15:58:20+00:00\",\"dateModified\":\"2023-07-05T13:36:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\"},\"wordCount\":207,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"image\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png\",\"articleSection\":[\"\u7f51\u7edc\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\",\"url\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\",\"name\":\"VXLAN\u7f51\u7edc\u57fa\u7840 - \u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"isPartOf\":{\"@id\":\"https:\/\/www.myway5.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png\",\"datePublished\":\"2020-01-02T15:58:20+00:00\",\"dateModified\":\"2023-07-05T13:36:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage\",\"url\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png\",\"contentUrl\":\"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png\",\"width\":602,\"height\":243},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.myway5.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VXLAN\u7f51\u7edc\u57fa\u7840\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.myway5.com\/#website\",\"url\":\"https:\/\/www.myway5.com\/\",\"name\":\"\u4e00\u53ea\u5b89\u9759\u7684\u732b\",\"description\":\"\u60f3\u5565\u5462\",\"publisher\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.myway5.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685\",\"name\":\"jiangpengfei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g\",\"caption\":\"jiangpengfei\"},\"logo\":{\"@id\":\"https:\/\/www.myway5.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/www.myway5.com\/index.php\/author\/joyme\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"VXLAN\u7f51\u7edc\u57fa\u7840 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/","og_locale":"zh_CN","og_type":"article","og_title":"VXLAN\u7f51\u7edc\u57fa\u7840 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","og_description":"\u7b80\u4ecb VXLAN \u5168\u79f0 Virtual eXtensible Local Area Network, \u662f\u4e00\u79cd\u57fa &hellip; \u7ee7\u7eed\u9605\u8bfbVXLAN\u7f51\u7edc\u57fa\u7840","og_url":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/","og_site_name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","article_published_time":"2020-01-02T15:58:20+00:00","article_modified_time":"2023-07-05T13:36:18+00:00","og_image":[{"url":"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png","type":"","width":"","height":""}],"author":"jiangpengfei","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"jiangpengfei","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#article","isPartOf":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/"},"author":{"name":"jiangpengfei","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"headline":"VXLAN\u7f51\u7edc\u57fa\u7840","datePublished":"2020-01-02T15:58:20+00:00","dateModified":"2023-07-05T13:36:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/"},"wordCount":207,"commentCount":0,"publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"image":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage"},"thumbnailUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png","articleSection":["\u7f51\u7edc"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/","url":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/","name":"VXLAN\u7f51\u7edc\u57fa\u7840 - \u4e00\u53ea\u5b89\u9759\u7684\u732b","isPartOf":{"@id":"https:\/\/www.myway5.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage"},"image":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage"},"thumbnailUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png","datePublished":"2020-01-02T15:58:20+00:00","dateModified":"2023-07-05T13:36:18+00:00","breadcrumb":{"@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#primaryimage","url":"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png","contentUrl":"https:\/\/www.myway5.com\/wp-content\/uploads\/2019\/12\/ethernetII_frame.png","width":602,"height":243},{"@type":"BreadcrumbList","@id":"https:\/\/www.myway5.com\/index.php\/2020\/01\/02\/vxlan\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.myway5.com\/"},{"@type":"ListItem","position":2,"name":"VXLAN\u7f51\u7edc\u57fa\u7840"}]},{"@type":"WebSite","@id":"https:\/\/www.myway5.com\/#website","url":"https:\/\/www.myway5.com\/","name":"\u4e00\u53ea\u5b89\u9759\u7684\u732b","description":"\u60f3\u5565\u5462","publisher":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.myway5.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/b19267e8b106343431e163ec96950685","name":"jiangpengfei","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8c7de757f6e0247412bcfd31b7c2271?s=96&d=monsterid&r=g","caption":"jiangpengfei"},"logo":{"@id":"https:\/\/www.myway5.com\/#\/schema\/person\/image\/"},"url":"https:\/\/www.myway5.com\/index.php\/author\/joyme\/"}]}},"views":5384,"_links":{"self":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/comments?post=527"}],"version-history":[{"count":2,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":1563,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/posts\/527\/revisions\/1563"}],"wp:attachment":[{"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/media?parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/categories?post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.myway5.com\/index.php\/wp-json\/wp\/v2\/tags?post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}