{"id":32877,"date":"2023-09-25T05:56:38","date_gmt":"2023-07-11T23:39:12","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/"},"modified":"2024-05-04T01:27:09","modified_gmt":"2024-05-03T17:27:09","slug":"%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/","title":{"rendered":"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>VyOS \u662f\u4e00\u79cd\u57fa\u4e8eLinux\u7684\u8f6f\u4ef6\u8def\u7531\u5668\uff0c\u9664\u4e86\u4ec5\u8fdb\u884c\u8def\u7531\u4e4b\u5916\uff0c\u5b83\u8fd8\u5177\u5907\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u5728\u6784\u5efa\u4e2a\u4eba\u6216\u56e2\u961f\u5b9e\u9a8c\u5ba4\u65f6\u975e\u5e38\u65b9\u4fbf\u3002<br \/>\n\u4ece\u4e2a\u4eba\u89d2\u5ea6\u6765\u770b\uff0c\u5b83\u662f\u6784\u5efavSphere\u5b9e\u9a8c\u5ba4\u65f6\u4e0d\u53ef\u6216\u7f3a\u7684\u8f6f\u4ef6\u4e4b\u4e00\u3002<\/p>\n<p>\u8bf7\u53c2\u8003\u4ee5\u4e0b\u6587\u7ae0\uff0c\u5176\u4e2d\u4e5f\u7b80\u8981\u4ecb\u7ecd\u4e86\u76f8\u5173\u5185\u5bb9\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728 VyOS \u4e0a\u4f7f\u7528\u5e38\u89c4\u7684\u8def\u7531\u5668\u529f\u80fd\u5df2\u7ecf\u975e\u5e38\u65b9\u4fbf\uff0c\u4f46\u5b9e\u9645\u4e0a\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528 Podman \u5728 VyOS \u4e0a\u8fd0\u884c\u5bb9\u5668\uff01\u800c\u4e14\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u719f\u6089\u7684 VyOS \u7ba1\u7406 CLI \u547d\u4ee4\uff0c\u5bf9\u8bbe\u7f6e\u8fdb\u884c\u6c38\u4e45\u5316\u3002<\/p>\n<p>\u201c\u54e6\uff1f\u5982\u679c\u5bb9\u5668\u53ef\u4ee5\u79fb\u52a8\uff0c\u90a3\u5b9e\u9645\u4e0a\u4ec0\u4e48\u90fd\u80fd\u79fb\u52a8\u4e86\u554a\u3002\u201d \u56e0\u6b64\uff0c\u6211\u5bf9 VyOS \u4e0d\u4ec5\u4ec5\u662f\u4e00\u4e2a\u8def\u7531\u5668\u7684\u6f5c\u529b\u6709\u6240\u611f\u89c9\u3002<br \/>\n\u56e0\u6b64\uff0c\u8fd9\u6b21\u6211\u60f3\u8981\u5c1d\u8bd5\u4f7f\u7528 VyOS \u7684\u5bb9\u5668\u6267\u884c\u529f\u80fd\u6765\u73a9\u4e00\u73a9\u3002<\/p>\n<h1>\u7a0b\u5e8f<\/h1>\n<p>\u4f60\u53ef\u4ee5\u53c2\u8003 VyOS \u7684\u5b98\u65b9\u6587\u6863\uff0c\u94fe\u63a5\u5728\u8fd9\u91cc\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u603b\u7ed3\uff1b<\/h2>\n<p>\u6211\u8ba4\u4e3a\u5bf9\u4e8e\u4e86\u89e3VyOS\u64cd\u4f5c\u7684\u4eba\u6765\u8bf4\uff0c\u770b\u5b9e\u9645\u914d\u7f6e\u53ef\u80fd\u66f4\u5feb\uff0c\u5c31\u50cf\u5f80\u5e38\u4e00\u6837\u3002\u4f46\u662f\uff0c\u5c31\u8fd9\u6b21\u800c\u8a00\uff0c\u4ec5\u6267\u884c\u6b64\u64cd\u4f5c\u4e5f\u6709\u51e0\u4e2a\u5730\u65b9\u4f1a\u9047\u5230\u56f0\u96be\uff0c\u6240\u4ee5\u6211\u5c06\u5305\u62ec\u8fd9\u4e9b\u5730\u65b9\u5728\u5185\u8fdb\u884c\u8bf4\u660e\u3002<\/p>\n<pre class=\"post-pre\"><code>container {\r\n    name &lt;name&gt; {\r\n        allow-host-networks\r\n        image &lt;image&gt;\r\n    }\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>container {\r\n    name nginx {\r\n        allow-host-networks\r\n        image docker.io\/library\/nginx:latest\r\n    }\r\n}\r\n<\/code><\/pre>\n<h2>\uff08\u53ef\u9009\uff09\u767b\u5f55 \u6ce8\u518c\u8868<\/h2>\n<p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u4e0d\u8fd9\u6837\u505a\uff0c\u4f46\u4ee5Docker Hub\u4e3a\u4f8b\uff0c\u5982\u679c\u5b58\u5728\u901f\u7387\u9650\u5236\uff0c\u53ef\u80fd\u4f1a\u56e0\u6b64\u53d7\u963b\u800c\u65e0\u6cd5\u62c9\u53d6\u5bb9\u5668\u955c\u50cf\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u6700\u597d\u63d0\u524d\u767b\u5f55\u3002<\/p>\n<p>\u867d\u7136\u611f\u89c9\u4e0d\u662f\u7279\u522b\u5408\u9002\uff0c\u4f46\u597d\u50cf\u5fc5\u987b\u4f7f\u7528sudo\u6765\u6267\u884cpodman\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo podman login [REGISTRY]\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>sudo podman login\r\nUsername: USERNAME\r\nPassword: PASSWORD\r\n<\/code><\/pre>\n<h2>\uff08\u53ef\u9009\uff09\u62c9\u53d6\u5bb9\u5668\u955c\u50cf<\/h2>\n<p>\u5148\u884c\u63d0\u524d\u62c9\u53d6\u5bb9\u5668\u6620\u50cf\u3002<br \/>\n\u5728\u5bb9\u5668\u542f\u52a8\u65f6\uff0c\u4f1a\u81ea\u52a8\u62c9\u53d6\uff0c\u6240\u4ee5\u4ece\u8fd9\u4e2a\u610f\u4e49\u4e0a\u8bf4\u662f\u53ef\u9009\u7684\uff0c\u4f46\u6b63\u5982\u524d\u9762\u6240\u8ff0\uff0c\u56e0\u4e3a\u4e0e\u6ce8\u518c\u8868\u7684\u8ba4\u8bc1\u548c\u901f\u7387\u9650\u5236\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9ebb\u70e6\uff0c\u6240\u4ee5\u4f1a\u4ed4\u7ec6\u6309\u6b65\u9aa4\u8fdb\u884c\u3002<\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u5728\u64cd\u4f5c\u5bb9\u5668\u6620\u50cf\u7684\u547d\u4ee4\u4e2d\uff0c\u5e94\u5728\u64cd\u4f5c\u6a21\u5f0f\uff08\u5728\u8f93\u5165configure\u4e4b\u524d\uff09\u4e0b\u6267\u884c\u3002<\/p>\n<pre class=\"post-pre\"><code>add container image &lt;image&gt;\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>add container image docker.io\/library\/nginx:latest\r\n<\/code><\/pre>\n<p>\u8fd9\u6b21\u53ea\u662f\u4e3a\u4e86\u8bd5\u4e00\u8bd5\uff0c\u6240\u4ee5\u6211\u4f7f\u7528\u4e86 Docker Hub \u4e0a\u63d0\u4f9b\u7684\u6700\u65b0\u7248 nginx \u6765\u8fd0\u884c\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u7531\u4e8e\u6b64\u547d\u4ee4\u5728\u6210\u529f\u65f6\u4e0d\u4f1a\u6709\u4efb\u4f55\u8f93\u51fa\uff0c\u56e0\u6b64\u786e\u4fdd\u662f\u5426\u6210\u529f\u83b7\u53d6\uff0c\u9700\u8981\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><code>show container image\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ show container image\r\nREPOSITORY               TAG         IMAGE ID      CREATED      SIZE\r\ndocker.io\/library\/nginx  latest      eea7b3dcba7e  2 weeks ago  191 MB\r\n<\/code><\/pre>\n<p>\u987a\u4fbf\u63d0\u4e00\u53e5\uff0c\u5982\u679c\u8981\u5220\u9664\u7279\u5b9a\u7684\u5bb9\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>delete container image &lt;image&gt;\r\n<\/code><\/pre>\n<h2>\u5bb9\u5668\u542f\u52a8\u914d\u7f6e<\/h2>\n<p>\u5982\u679c\u80fd\u591f\u8fbe\u5230\u8fd9\u4e00\u6b65\u7684\u8bdd\uff0c\u5927\u81f4\u4e0a\u5e94\u8be5\u80fd\u591f\u907f\u514d\u9677\u9631\uff0c\u6240\u4ee5\u73b0\u5728\u5f00\u59cb\u8fdb\u884c\u5bb9\u5668\u542f\u52a8\u7684\u914d\u7f6e\u3002<br \/>\n\u611f\u89c9\u4e0a\u7c7b\u4f3c\u4e8e\u8fdb\u884cDocker Compose\u7684\u914d\u7f6e\u5427\u3002<\/p>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u5c06\u8f6c\u5165\u914d\u7f6e\u6a21\u5f0f\u3002<\/p>\n<pre class=\"post-pre\"><code>vyos@vyos:~$ configure\r\n[edit]\r\nvyos@vyos#\r\n<\/code><\/pre>\n<p>\u7136\u540e\uff0c\u9009\u62e9\u8981\u6267\u884c\u7684\u5bb9\u5668\u6620\u50cf\u3002<\/p>\n<pre class=\"post-pre\"><code>set container name &lt;name&gt; image &lt;image&gt;\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>set container name nginx image docker.io\/library\/nginx:latest\r\n<\/code><\/pre>\n<p>\u8fd9\u662f\u539f\u5c01\u4e0d\u52a8\u7684\uff0c\u4f46\u662f&#8221;&#8221;\u662f\u6267\u884c\u65f6\u7684\u5bb9\u5668\u540d\u79f0\uff0c&#8221;&#8221;\u662f\u8981\u6267\u884c\u7684\u5bb9\u5668\u955c\u50cf\u3002<\/p>\n<p>\u7136\u540e\uff0c\u5c06\u6709\u5173\u5bb9\u5668\u7f51\u7edc\u7684\u914d\u7f6e\u6295\u5165\u3002<\/p>\n<pre class=\"post-pre\"><code>set container name &lt;name&gt; allow-host-networks\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>set container name nginx allow-host-networks\r\n<\/code><\/pre>\n<p>\u5728\u4e2d\u6587\u4e2d\uff0c\u8fd9\u90e8\u5206\u7684\u542b\u4e49\u662f\u76f8\u5f53\u4e8epodman run\u6216docker run\u547d\u4ee4\u7684&#8211;network host\u9009\u9879\u8bbe\u7f6e\u3002\u6211\u8ba4\u4e3a\u8fd9\u662f\u4e00\u4e2a\u6709\u4e89\u8bae\u7684\u8bbe\u7f6e\uff0c\u4f46\u5728\u8fd9\u91cc\u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u8fd9\u4e2a\u9009\u9879\u3002<\/p>\n<p>\u5982\u679c\u4f7f\u7528show\u547d\u4ee4\u8fdb\u884c\u786e\u8ba4\u8bbe\u7f6e\uff0c\u5e76\u4e14\u8bbe\u7f6e\u5df2\u7ecf\u6309\u7167\u9884\u671f\u6295\u5165\uff0c\u90a3\u5c31\u53ef\u4ee5\u8bf4\u201cOK\u201d\u3002<\/p>\n<pre class=\"post-pre\"><code>vyos@vyos# show\r\n+container {\r\n+    name nginx {\r\n+        allow-host-networks\r\n+        image docker.io\/library\/nginx:latest\r\n+    }\r\n+}\r\n...(\u7565)...\r\n<\/code><\/pre>\n<h2>\u542f\u52a8\u5bb9\u5668<\/h2>\n<p>\u4f7f\u7528\u63d0\u4ea4\u547d\u4ee4\uff08commit\uff09\u6765\u5e94\u7528\u914d\u7f6e\u540e\uff0c\u5bb9\u5668\u5c06\u4f1a\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code>vyos@vyos# commit\r\n[edit]\r\nvyos@vyos#\r\n<\/code><\/pre>\n<p>\u5982\u679c\u6210\u529f\u4e86\uff0c\u7279\u522b\u662f\u6ca1\u6709\u8f93\u51fa\u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528show\u547d\u4ee4\u6765\u786e\u8ba4\u3002<br \/>\n\u4e3a\u4e86\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\uff0c\u9700\u8981\u56de\u5230\u64cd\u4f5c\u6a21\u5f0f\uff08\u901a\u8fc7\u4f7f\u7528exit\u547d\u4ee4\u9000\u51fa\u914d\u7f6e\u6a21\u5f0f\uff09\uff0c\u8bf7\u6ce8\u610f\u3002<\/p>\n<pre class=\"post-pre\"><code>vyos@vyos# exit\r\nWarning: configuration changes have not been saved.\r\nexit\r\nvyos@vyos:~$\r\n<\/code><\/pre>\n<p>\u786e\u8ba4\u5bb9\u5668\u542f\u52a8\u7684\u547d\u4ee4\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>show container\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>vyos@vyos00:~$ show container\r\nCONTAINER ID  IMAGE                           COMMAND               CREATED         STATUS             PORTS       NAMES\r\n4a8f1f854697  docker.io\/library\/nginx:latest  nginx -g daemon o...  40 seconds ago  Up 40 seconds ago              nginx\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4\u64cd\u4f5c<\/h2>\n<p>\u53ea\u8981\u80fd\u591f\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u5230VyOS\u7684\u4efb\u4f55IP\u5730\u5740\uff0c\u5e76\u663e\u793a\u719f\u6089\u7684\u201c\u6b22\u8fce\u6765\u5230nginx\uff01\u201d\uff0c\u5373\u8868\u793a\u6210\u529f\u3002<\/p>\n<h2>(\u4ec5\u4f9b\u53c2\u8003) \u6865\u63a5\u7f51\u7edc\u7684\u4f7f\u7528<\/h2>\n<p>\u4e4b\u524d\u63d0\u5230\u8fc7\uff0c\u6709\u4eba\u5bf9\u4e8e\u4f7f\u7528 &#8211;network host \u8fd9\u4e2a\u9009\u9879\u6709\u4e0d\u540c\u7684\u610f\u89c1\u3002<br \/>\n\u90a3\u4e48\uff0c\u5982\u679c\u6211\u4eec\u5e0c\u671b\u4f7f\u7528\u88ab\u666e\u904d\u8ba4\u4e3a\u66f4\u597d\u7684 &#8211;network \u6765\u6307\u5b9a bridge \u7f51\u7edc\u7684\u8bdd\uff0c\u6211\u4eec\u5e94\u8be5\u600e\u6837\u8bbe\u7f6e\u5462\uff1f\u4e0b\u9762\u6211\u5c06\u63d0\u4f9b\u4e00\u4e2a\u914d\u7f6e\u793a\u4f8b\u3002<\/p>\n<pre class=\"post-pre\"><code>container {\r\n    name &lt;name&gt; {\r\n        image &lt;image&gt;\r\n        network &lt;networkname&gt; {\r\n            address &lt;address&gt;\r\n        }\r\n        port &lt;portname&gt; {\r\n            destination &lt;portnumber&gt;\r\n            protocol &lt;tcp | udp&gt;\r\n            source &lt;portnumber&gt;\r\n        }\r\n    }\r\n    network &lt;networkname&gt; {\r\n        prefix &lt;prefix&gt;\r\n    }\r\n}\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>container {\r\n    name nginx {\r\n        image docker.io\/library\/nginx:latest\r\n        network internal {\r\n            address 172.20.0.2\r\n        }\r\n        port http {\r\n            destination 80\r\n            protocol tcp\r\n            source 8080\r\n        }\r\n    }\r\n    network internal {\r\n        prefix 172.20.0.0\/16\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u5728\u6b64\u914d\u7f6e\u793a\u4f8b\u4e2d\uff0c\u5f53\u8bbf\u95ee VyOS \u7684\u4efb\u4e00 IP \u5730\u5740+ 8080 \u7aef\u53e3\u65f6\uff0c\u5e94\u8be5\u4f1a\u663e\u793a\u719f\u6089\u7684 nginx \u9875\u9762\u3002<\/p>\n<p>\u5728\u8bbe\u7f6e\u90e8\u5206\uff0c\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9\u662f\u5728\u8fd9\u4e2a\u9644\u8fd1\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>bridge \u3068\u3044\u3046\u540d\u79f0\u306f\u30c0\u30e1\u306e\u3088\u3046\u3067\u3059\u3002<br \/>\n\u30b7\u30b9\u30c6\u30e0\u3067\u4f7f\u308f\u308c\u3066\u3044\u308b\u540d\u79f0\u3089\u3057\u304f\u3001\u30a8\u30e9\u30fc\u3057\u307e\u3057\u305f&#8230;<\/p>\n<p>port \u306e destination \u3068 source<\/p>\n<p>podman run \u3084 docker run \u30b3\u30de\u30f3\u30c9\u306e &#8211;port destination:source \u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u76f8\u5f53\u3057\u307e\u3059\u3002<\/p>\n<h1>\u603b\u7ed3<\/h1>\n<p>\u65b9\u4fbf\u5f97\u4e00\u8a00\uff01<\/p>\n<p>\u7531\u4e8e\u5e76\u6ca1\u6709\u6db5\u76d6 Podman \u7684\u5168\u90e8\u8bbe\u7f6e\uff0c\u6240\u4ee5\u76f4\u63a5\u8fd0\u884c Podman \u4f3c\u4e4e\u66f4\u65b9\u4fbf\u6613\u7528\u4e00\u4e9b\u3002<\/p>\n<p>\u8bdd\u867d\u5982\u6b64\uff01\u7136\u800c\uff0c\u7531\u4e8e\u5bb9\u5668\u7684\u53ef\u6267\u884c\u6027\uff0cVyOS \u4e0a\u53ef\u4ee5\u8fd0\u884c\u7684\u5e94\u7528\u7a0b\u5e8f\u8303\u56f4\u5927\u5927\u6269\u5c55\uff0c\u56e0\u6b64\u6211\u5e0c\u671b\u80fd\u591f\u63a2\u7d22\u4e00\u4e9b\u65b9\u4fbf\u7684\u7528\u6cd5\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 VyOS \u662f\u4e00\u79cd\u57fa\u4e8eLinux\u7684\u8f6f\u4ef6\u8def\u7531\u5668\uff0c\u9664\u4e86\u4ec5\u8fdb\u884c\u8def\u7531\u4e4b\u5916\uff0c\u5b83\u8fd8\u5177\u5907\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u5728\u6784\u5efa\u4e2a\u4eba\u6216\u56e2\u961f [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-32877","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668 - Blog - Silicon Cloud<\/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.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5728vyos\u4e0a\u8fd0\u884c\u5bb9\u5668\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 VyOS \u662f\u4e00\u79cd\u57fa\u4e8eLinux\u7684\u8f6f\u4ef6\u8def\u7531\u5668\uff0c\u9664\u4e86\u4ec5\u8fdb\u884c\u8def\u7531\u4e4b\u5916\uff0c\u5b83\u8fd8\u5177\u5907\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u5728\u6784\u5efa\u4e2a\u4eba\u6216\u56e2\u961f [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5728vyos\u4e0a\u8fd0\u884c\u5bb9\u5668\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-11T23:39:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T17:27:09+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/\",\"name\":\"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-11T23:39:12+00:00\",\"dateModified\":\"2024-05-03T17:27:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668 - Blog - Silicon Cloud","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.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5728vyos\u4e0a\u8fd0\u884c\u5bb9\u5668\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668","og_description":"\u9996\u5148 VyOS \u662f\u4e00\u79cd\u57fa\u4e8eLinux\u7684\u8f6f\u4ef6\u8def\u7531\u5668\uff0c\u9664\u4e86\u4ec5\u8fdb\u884c\u8def\u7531\u4e4b\u5916\uff0c\u5b83\u8fd8\u5177\u5907\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u56e0\u6b64\u5728\u6784\u5efa\u4e2a\u4eba\u6216\u56e2\u961f [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5c1d\u8bd5\u5728vyos\u4e0a\u8fd0\u884c\u5bb9\u5668\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-11T23:39:12+00:00","article_modified_time":"2024-05-03T17:27:09+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/","name":"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-11T23:39:12+00:00","dateModified":"2024-05-03T17:27:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5c1d\u8bd5\u5728VyOS\u4e0a\u8fd0\u884c\u5bb9\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%b0%9d%e8%af%95%e5%9c%a8vyos%e4%b8%8a%e8%bf%90%e8%a1%8c%e5%ae%b9%e5%99%a8%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32877","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=32877"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32877\/revisions"}],"predecessor-version":[{"id":95284,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/32877\/revisions\/95284"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=32877"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=32877"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=32877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}