{"id":192117,"date":"2020-06-07T09:42:35","date_gmt":"2020-06-07T01:42:35","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=192117"},"modified":"2020-05-23T11:44:03","modified_gmt":"2020-05-23T03:44:03","slug":"linux-vmware-centos7-network","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/linux-vmware-centos7-network.html","title":{"rendered":"\u6559\u4f60\u5982\u4f55\u5728VMware \u4e2d\u914d\u7f6e CentOS7 \u7f51\u7edc"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u672c\u6587\u8bb2\u89e3\u5982\u4f55\u5728 VMware\u865a\u62df\u673a\u4e2d\u4e3a CentOS 7 \u8fdb\u884c\u7f51\u7edc\u914d\u7f6e\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

1\u3001\u9996\u5148\u67e5\u770bVMware\u865a\u62df\u673a\u7f51\u7edc\u914d\u7f6e<\/p>\n

\"\"<\/p>\n

2\u3001ip addr \u67e5\u770b\u865a\u62df\u673aip\u5730\u5740<\/p>\n

3\u3001\u8f93\u5165dhclient\u83b7\u53d6\u52a8\u6001ip\u5730\u5740\uff0c\u5c06ip\u5730\u5740\u8bb0\u5f55\u4e0b\u62c9<\/p>\n

4\u3001\u8fdb\u5165vi \/etc\/sysconfig\/network-scripts\/ifcfg-ens33<\/p>\n

5\u3001\u5c06bootproto\u6539\u4e3astatic\uff0c\u5c06onboot\u6539\u4e3ayes<\/p>\n

\"\"<\/p>\n

6\u3001\u5c06\u865a\u62df\u673a\u7f51\u7edc\u914d\u7f6e\u7684\u7f51\u5173\u548c\u7f51\u7edc\u5b50\u63a9\u7801\u914d\u7f6e\u8fdb\u53bb<\/p>\n

TYPE=\"Ethernet\"\r\nPROXY_METHOD=\"none\"\r\nBROWSER_ONLY=\"no\"\r\nBOOTPROTO=\"static\" \uff08\u4fee\u6539\u4e3a\u9759\u6001ip\uff09\r\nDEFROUTE=\"yes\"\r\nIPV4_FAILURE_FATAL=\"no\"\r\nIPV6INIT=\"yes\"\r\nIPV6_AUTOCONF=\"yes\"\r\nIPV6_DEFROUTE=\"yes\"\r\nIPV6_FAILURE_FATAL=\"no\"\r\nIPV6_ADDR_GEN_MODE=\"stable-privacy\"\r\nNAME=\"ens33\"\r\nUUID=\"2e0343ca-b1b5-4261-888a-68858682787f\"\r\nDEVICE=\"ens33\"\r\nONBOOT=\"yes\" \uff08\u7cfb\u7edf\u542f\u52a8\u8fde\u63a5\uff09\r\nIPADDR=\"192.168.136.131\" \uff08dhclient\u52a8\u6001\u83b7\u53d6\u7684ip\u5730\u5740\uff09\r\nNETMASK=\"255.255.255.0\" \uff08\u6253\u5f00\u865a\u62df\u673a\u7f51\u7edc\u914d\u7f6e\u67e5\u770b\uff09\r\nGATEWAY=\"192.168.136.2\"\uff08\u6253\u5f00\u865a\u62df\u673a\u7f51\u7edc\u914d\u7f6e\u67e5\u770b\uff09\r\nDNS1=\"114.114.114.114\"\uff08\u81ea\u5df1\u627e\uff09<\/pre>\n

7\u3001\u914d\u7f6e\u5b8c\u6210\u540ewq\u9000\u51fa\uff0c\u91cd\u542f\u7f51\u7edc\u914d\u7f6esystemctl restart network.service<\/p>\n

8\u3001\u5173\u95ed\u52a8\u6001\u83b7\u53d6ip\u5730\u5740dhclient -r<\/p>\n

9\u3001ping www.baidu.com<\/p>\n","protected":false},"excerpt":{"rendered":"

1\u3001\u9996\u5148\u67e5\u770bVMware\u865a\u62df\u673a\u7f51\u7edc\u914d\u7f6e 2\u3001ip addr \u67e5\u770b\u865a\u62df\u673aip\u5730\u5740 3\u3001\u8f93\u5165dhclient\u83b7\u53d6\u52a8 […]<\/p>\n","protected":false},"author":63,"featured_media":192123,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-192117","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=192117"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192117\/revisions"}],"predecessor-version":[{"id":192124,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192117\/revisions\/192124"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/192123"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=192117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=192117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=192117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}