{"id":7823,"date":"2020-05-26T09:50:19","date_gmt":"2020-05-26T01:50:19","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7823"},"modified":"2020-05-26T09:50:20","modified_gmt":"2020-05-26T01:50:20","slug":"esxcfg-vswitch","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/esxcfg-vswitch","title":{"rendered":"esxcfg-vswitch\u547d\u4ee4 – ESX\u865a\u62df\u4ea4\u6362\u673a\u7ba1\u7406\u5de5\u5177"},"content":{"rendered":"\n

esxcfg\u547d\u4ee4\u96c6\u5206\u4e3a\u7f51\u7edc\u7ba1\u7406\u7c7b\u3001\u5b58\u50a8\u7ba1\u7406\u7c7b\u3001\u7cfb\u7edf\u7ba1\u7406\u7c7b\u7b49\u51e0\u79cd\u7c7b\u578b\uff0cesxcfg-vswitch\u547d\u4ee4\u662f\u8d1f\u8d23\u7f51\u7edc\u7ba1\u7406\u7c7b\u547d\u4ee4\uff0cESX\u865a\u62df\u4ea4\u6362\u673a\u7ba1\u7406\u5de5\u5177\u3002\u53ef\u4f7f\u7528 esxcfg-vswitch<\/em> -l \u547d\u4ee4\u83b7\u53d6\u865a\u62df\u7aef\u53e3 ID \u548c Dvswitchname\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>esxcfg-vswitch [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-l<\/td>\u663e\u793a\u7cfb\u7edf\u4fe1\u606f<\/td><\/tr>
-a<\/td>\u6dfb\u52a0\u7cfb\u7edf\u914d\u7f6e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u589e\u52a0\u4e00\u4e2avswitch\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-vswitch -a<\/pre>\n\n\n\n

\u5220\u9664\u4e00\u4e2avswitch\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-vswitch -d<\/pre>\n\n\n\n

\u663e\u793a\u5f53\u524dvswitch\u7684\u914d\u7f6e\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-vswitch -l<\/pre>\n\n\n\n

\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684portgroup\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-vswitch -A<\/pre>\n\n\n\n

\u5c06\u4e00\u4e2avswitch\u4e0e\u771f\u5b9e\u7f51\u5361\u7ed1\u5b9a\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# esxcfg-vswitch -L <pnic> <vSwitch_Name><\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

esxcfg\u547d\u4ee4\u96c6\u5206\u4e3a\u7f51\u7edc\u7ba1\u7406\u7c7b\u3001\u5b58\u50a8\u7ba1\u7406\u7c7b\u3001\u7cfb\u7edf\u7ba1\u7406\u7c7b\u7b49\u51e0\u79cd\u7c7b\u578b\uff0cesxcfg-vswitch\u547d\u4ee4\u662f\u8d1f\u8d23\u7f51\u7edc […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7823"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=7823"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7823\/revisions"}],"predecessor-version":[{"id":7854,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7823\/revisions\/7854"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}