{"id":38334,"date":"2023-07-28T01:38:13","date_gmt":"2023-07-27T17:38:13","guid":{"rendered":"http:\/\/gulass.cn\/?p=38334"},"modified":"2023-07-28T01:38:13","modified_gmt":"2023-07-27T17:38:13","slug":"docker-openvswitch-vxlan","status":"publish","type":"post","link":"https:\/\/gulass.cn\/docker-openvswitch-vxlan.html","title":{"rendered":"Docker+OpenvSwitch\u8d70\u8fdbVxLAN\u7684\u4e16\u754c"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | docker\u662f\u975e\u5e38\u706b\u7684\u5bb9\u5668\u6280\u672f\uff0c\u865a\u62df\u7f51\u7edc\u3001SDN\u7b49\u7f51\u7edc\u4e5f\u5728\u4e0d\u65ad\u7684\u53d1\u5c55\uff0cVxLAN\u662f\u65b0\u578b\u7684\u865a\u62df\u6269\u5c55\u7f51\u7edc\uff0c\u4f5c\u8005\u5728\u6574\u7406\u6587\u6863\u65f6\u5019\u53d1\u73b0\u7f51\u4e0a\u5b9e\u9a8c\uff1a\u4f7f\u7528OpenvSwith \u5728Docker\u4e0a\u642d\u5efaVxLAN\u73af\u5883\uff0c\u62ff\u6765\u5206\u4eab\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4e00.\u6982\u8ff0<\/strong><\/div>\n 1.\u73af\u5883\uff1a2\u53f0linux\u673a\u5668(host1\u548chost2)\uff0c\u53d1\u884c\u7248\u662fkali2.0\uff0c\u5185\u6838\u7248\u672c\u662f 4.3 \u3002\u6bcf\u53f0\u673a\u5668\u90fd\u5b89\u88c5 Docker \u3001 OpenvSwitch (ovs)\u3002<\/p>\n 2.host1\u548chost2\u5206\u522b\u542f\u52a8 1\u4e2aubuntu \u7684docker\u5bb9\u5668\u3002<\/p>\n 3.\u7f51\u7edc\u7ed3\u6784\uff1a<\/p>\n 3.1\uff1ahost1\u7684 eth0 \uff1a 192.168.2.1 \uff0chost1\u91cc\u9762\u7684docker\u5bb9\u5668ip\u5730\u5740\u662f 10.1.2.3\r\n\r\n3.2\uff1ahost2\u7684 eth0 \uff1a 192.168.2.2 \uff0chost2\u91cc\u9762\u7684docker\u5bb9\u5668ip\u5730\u5740\u662f 10.1.2.4\r\n\r\n3.3\uff1ahost1\u548chost2\u7684eth0\u53ef\u4ee5ping\u901a\u3002<\/pre>\n |