{"id":107175,"date":"2024-10-15T03:00:10","date_gmt":"2024-10-14T19:00:10","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=107175"},"modified":"2024-10-15T03:00:10","modified_gmt":"2024-10-14T19:00:10","slug":"vmware-network-config","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/vmware-network-config.html","title":{"rendered":"\u4e00\u8d77\u6765\u770b VMware\u4e4b\u7f51\u7edc\u8bbe\u7f6e"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u7531\u4e8eLinux\u76ee\u524d\u5f88\u70ed\u95e8\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u4eba\u5728\u5b66\u4e60Linux\uff0c\u4f46\u662f\u4e70\u4e00\u53f0\u670d\u52a1\u653e\u5bb6\u91cc\u6765\u5b66\u4e60\uff0c\u5b9e\u5728\u662f\u5f88\u6d6a\u8d39\u3002\u90a3\u4e48\u5982\u4f55\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff1f\u865a\u62df\u673a\u8f6f\u4ef6\u662f\u5f88\u597d\u7684\u9009\u62e9\uff0c\u5e38\u7528\u7684\u865a\u62df\u673a\u8f6f\u4ef6\u6709VMware Workstations\u548cVirtualBox\u7b49\u3002\u5728\u4f7f\u7528\u865a\u62df\u673a\u8f6f\u4ef6\u7684\u65f6\u5019\uff0c\u5f88\u591a\u521d\u5b66\u8005\u90fd\u4f1a\u9047\u5230\u5f88\u591a\u95ee\u9898\uff0c\u800cVMware\u7684\u7f51\u7edc\u8fde\u63a5\u95ee\u9898\u662f\u5927\u5bb6\u9047\u5230\u6700\u591a\u95ee\u9898\u4e4b\u4e00\u3002\u4eca\u5929\u6211\u4eec\u5c31\u4e00\u8d77\u6765\u548c\u5927\u5bb6\u5b66\u4e60vmware\u7684\u7f51\u7edc\u8bbe\u7f6e<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n 1. VMware\u7f51\u7edc\u8bbe\u7f6e<\/strong><\/div>\n \u5185\u7f51\u8bbe\u7f6e<\/strong><\/span><\/div>\n <\/p>\n \u5916\u7f51\u8bbe\u7f6e<\/strong><\/span><\/div>\n <\/p>\n NAT\u8bbe\u7f6e<\/strong><\/span><\/div>\n <\/p>\n <\/p>\n <\/p>\n 2. \u6a21\u677f\u673a\u7684\u7f51\u5361\u8bbe\u7f6e<\/strong><\/div>\n [root@oldboy ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 #\u6a21\u62df\u5185\u7f51 \r\nDEVICE=eth1\r\nTYPE=Ethernet\r\nONBOOT=yes\r\nNM_CONTROLLED=yes\r\nBOOTPROTO=none\r\nIPV6INIT=no\r\nUSERCTL=no\r\nIPADDR=172.16.1.100\r\nNETMASK=255.255.255.0\r\n<\/pre>\n[root@oldboy ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth1 # \u6a21\u62df\u5916\u7f51 \r\nDEVICE=eth0\r\nTYPE=Ethernet\r\nONBOOT=yes\r\nNM_CONTROLLED=yes\r\nBOOTPROTO=none\r\nUSERCTL=no\r\nIPV6INIT=no\r\nIPADDR=10.0.0.100\r\nNETMASK=255.255.255.0\r\nDNS2=223.5.5.5\r\nGATEWAY=10.0.0.2\r\nDNS1=10.0.0.2\r\n<\/pre>\n |