{"id":254502,"date":"2022-10-18T09:31:42","date_gmt":"2022-10-18T01:31:42","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=254502"},"modified":"2022-10-13T09:08:33","modified_gmt":"2022-10-13T01:08:33","slug":"how-centos-vmware","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/how-centos-vmware.html","title":{"rendered":"CentOS7\u600e\u6837\u5728VMware\u4e0b\u914d\u7f6e\u6865\u63a5\u7f51\u7edc"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5728VMware\u865a\u62df\u673a\u4e0bcentOS7\u914d\u7f6e\u6865\u63a5\u7f51\u7edc<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u9996\u5148\uff0c\u5728\u4ee5\u4e0b\u7684\u914d\u7f6e\u90fd\u64cd\u4f5c\u597d\u4e4b\u540e\uff0c\u8981\u786e\u8ba4\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u8fde\u63a5\u65b9\u5f0f\uff0c<\/p>\n

\u82e5\u4e3a\u9700\u8981\u8ba4\u8bc1\u7684\u7f51\u7edc\uff0c\u5219\u53ef\u80fd\u4f1a\u51fa\u73b0\u5bbf\u4e3b\u673a\u4e0e\u865a\u62df\u673a\u80fd\u4e92\u76f8ping\uff0c\u4f46\u865a\u62df\u673a\u4e0d\u80fdping\u5916\u7f51\u7684\u60c5\u51b5<\/p>\n

\u4e00\u3001\u865a\u62df\u673a\u914d\u7f6e<\/strong><\/div>\n

\u786e\u4fdd\u865a\u62df\u673a\u4e3a\u5173\u673a\u7684\u72b6\u6001\uff0c\u5728VMware\u4e2d\u7f16\u8f91\u4e00\u680f\u6253\u5f00\u865a\u62df\u7f51\u7edc\u7f16\u8f91\u5668\uff0c\u70b9\u51fb\u66f4\u6539\u8bbe\u7f6e<\/p>\n

\u9009\u4e2d\u6865\u63a5\u6a21\u5f0f\u865a\u62df\u7f51\u5361\uff0c\u4e00\u822c\u4e3aVMnet0\u3002<\/p>\n

\u6865\u63a5\u81f3\u5bbf\u4e3b\u673a\u4f7f\u7528\u8fde\u63a5\u4e92\u8054\u7f51\u7684\u7f51\u5361\uff0c\u82e5\u5bbf\u4e3b\u673a\u4f7f\u7528\u65e0\u7ebf\u7f51\uff0c\u5219\u9009\u62e9\u65e0\u7ebf\u7f51\u5361\uff0c\u82e5\u4e3a\u4ee5\u592a\u7f51\u5219\u9009\u62e9\u4ee5\u592a\u7f51\u5361\u3002<\/p>\n

\"\"<\/p>\n

\u865a\u62df\u673a\u8bbe\u7f6e\u9009\u62e9\u7f51\u7edc\u9002\u914d\u5668\uff0c\u9009\u4e2d\u6865\u63a5\u6a21\u5f0f<\/p>\n

\"\"<\/p>\n

windows\u4f7f\u7528\u547d\u4ee4\u67e5\u770b\u8be6\u7ec6\u7f51\u7edc\u8fde\u63a5\u5c5e\u6027, \u67e5\u770b\u7528\u4e8e\u8fde\u63a5\u4e92\u8054\u7f51\u7684\u7f51\u5361\u8fde\u63a5\u5c5e\u6027<\/p>\n

ifconfig \/all<\/pre>\n

\"\"<\/p>\n

\u4e8c\u3001centOS\u7f51\u5361\u914d\u7f6e<\/strong><\/div>\n

\u6253\u5f00centOS, \u4fee\u6539\u7f51\u5361\u914d\u7f6e\u6587\u4ef6(\u5bf9\u5e94\u5bbf\u4e3b\u673a\u7684\u7f51\u5361\u914d\u7f6e)\uff0c\u4fee\u6539\u540e\u5982\u4e0b\u56fe<\/p>\n

vi \/etc\/sysconfig\/network-scripts\/ifcfg-ens33<\/pre>\n

\"\"<\/p>\n

\u4fee\u6539\u4e862\u5904<\/p>\n

BOOTPROTO=dhcp\u6539\u4e3astatic\r\nONBOOT=no\u6539\u4e3ayes<\/pre>\n

\u65b0\u589e\u4e865\u884c(ip\u5730\u5740\uff0c\u7f51\u5173\uff0c\u5b50\u7f51\u63a9\u7801\uff0cDNS\u670d\u52a1\u5668),\u6ce8\u610fip\u5730\u5740\u5e94\u4e0e\u5bbf\u4e3b\u673aip\u5904\u4e8e\u540c\u4e00\u7f51\u6bb5,\u5176\u4ed6\u90fd\u76f8\u540c\u3002<\/p>\n

IPADDR=10.176.41.242\r\nGATEWAY=10.176.255.254\r\nNETMASK=255.255.0.0\r\nDNS1=10.128.88.4\r\nDNS2=10.128.88.3<\/pre>\n

\u4fdd\u5b58\u4fee\u6539\u540e\u91cd\u542f\u7f51\u7edc<\/p>\n

systemctl stop NetworkManager\r\nsystemctl restart network\r\nsystemctl start NetworkManager<\/pre>\n
\u4e09\u3001\u6d4b\u8bd5<\/strong><\/div>\n

\u865a\u62df\u673a\u4e0e\u4e3b\u673a\u4e92ping
\n\u82e5\u5b58\u5728\u4e3b\u673a\u53ef\u4ee5ping\u901a\u865a\u62df\u673a\uff0c\u800c\u865a\u62df\u673a\u4e0d\u80fdping\u901a\u4e3b\u673a\uff0c\u5219\u6709\u53ef\u80fd\u662f\u4e3b\u673awindows\u7981ping\u5bfc\u81f4\u7684\u3002
\nwindows\u53d6\u6d88\u7981ping\u7684\u547d\u4ee4<\/p>\n

netsh firewall set icmpsetting 8<\/pre>\n

\u7981ping<\/p>\n

netsh firewall set icmpsetting 8 disable<\/pre>\n

\u865a\u62df\u673aping\u5916\u7f51
\n\u82e5\u5bbf\u4e3b\u673a\u4e0e\u865a\u62df\u673a\u53ef\u4ee5\u4e92ping\uff0c\u800c\u4e0d\u80fdping\u5916\u7f51\uff0c\u8981\u786e\u5b9a\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u662f\u5426\u4e3a\u9700\u8981\u7f51\u9875\u9a8c\u8bc1\u7c7b\u578b\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9996\u5148\uff0c\u5728\u4ee5\u4e0b\u7684\u914d\u7f6e\u90fd\u64cd\u4f5c\u597d\u4e4b\u540e\uff0c\u8981\u786e\u8ba4\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u8fde\u63a5\u65b9\u5f0f\uff0c \u82e5\u4e3a\u9700\u8981\u8ba4\u8bc1\u7684\u7f51\u7edc\uff0c\u5219\u53ef\u80fd\u4f1a\u51fa\u73b0\u5bbf\u4e3b\u673a\u4e0e\u865a\u62df\u673a\u80fd […]<\/p>\n","protected":false},"author":310,"featured_media":254514,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-254502","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\/254502","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\/310"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=254502"}],"version-history":[{"count":10,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/254502\/revisions"}],"predecessor-version":[{"id":254518,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/254502\/revisions\/254518"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/254514"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=254502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=254502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=254502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}