{"id":271666,"date":"2023-05-08T04:00:52","date_gmt":"2023-05-07T20:00:52","guid":{"rendered":"https:\/\/lrxjmw.cn\/gylxnjdwlfsg.html"},"modified":"2023-05-08T04:00:52","modified_gmt":"2023-05-07T20:00:52","slug":"gylxnjdwlfsg","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/gylxnjdwlfsg.html","title":{"rendered":"\u5173\u4e8eLinux\u865a\u62df\u673a\u7684\u7f51\u8fde\u65b9\u5f0f\u6539\u4e3a\u4e86Bridge\u7684\u89e3\u91ca"},"content":{"rendered":"

1.\u5b89\u88c5FTP\u670d\u52a1\u5668<\/p>\n

#sudo\u662f\u8bb8\u7cfb\u7edf<\/a>\u7ba1\u7406\u5458\u8ba9\u666e\u901a\u7528\u6237\u6267\u884c\u4e00\u4e9b\u6216\u5219\u5168\u90e8\u7684root\u547d\u4ee4<\/a>\u7684\u4e00\u4e2a\u5de5\u5177<\/p>\n

#apt-get\u662fdebian\uff0cubuntu\u53d1\u884c\u7248\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u4e0e\u7ea2\u5e3d\u4e2d\u7684yum\u5de5\u5177\u5341\u5206\u7c7b\u4f3c\u3002apt-get\u547d\u4ee4\u901a\u5e38\u987b\u8981root\u6743\u9650\u6267\u884c\uff0c\u6240\u4ee5\u901a\u5e38\u8ddf\u968fsudo\u547d\u4ee4<\/p>\n

[root@localhostftp]#sudoapt-getinstallvsftpd<\/p>\n

2.FTP\u670d\u52a1\u5668\u914d\u7f6e<\/p>\n

vsftpd\u670d\u52a1\u5668\u7684\u914d\u7f6e\u6587\u4ef6\u7684\u662f:\/etc\/vsftpd\/vsftpd.conf<\/p>\n

vsftpd\u670d\u52a1\u5668\u7684\u6839\u76ee\u5f55,\u5373FTP\u670d\u52a1\u5668\u7684\u4e3b\u76ee\u5f55:<\/p>\n

vmware\u865a\u62df\u673a\u5b89\u88c5linux\u6559\u7a0b_linux \u865a\u62df\u8f6f\u4ef6_linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/p>\n

[root@localhostftp]#more\/etc\/passwd|grepftp<\/p>\n

ftp:x:14:50:FTPUser:\/var\/ftp:\/sbin\/nologin<\/p>\n

\u8fd9\u6837\u4f60\u8fd8\u80fd\u89c1\u5230FTP\u7684\u670d\u52a1\u5668\u7684\u76ee\u5f55\u5728\/var\/ftp\u5904<\/p>\n

\u5047\u5982\u4f60\u60f3\u66f4\u6539\u670d\u52a1\u5668\u76ee\u5f55\u7684\u8def\u5f84,\u8fd9\u4e48\u4f60\u53ea\u8981\u66f4\u6539\/var\/ftp\u5230\u522b\u5904\u5c31\u884c\u4e86<\/p>\n

[root@localhostftp]#vi\/etc\/vsftpd.conf<\/p>\n

3.\u4e25\u7981FTP\u670d\u52a1\u5668\u533f\u540d\u8bbf\u95ee<\/p>\n

\n

anonymous_enable=YES \u4e3a<\/pre>\n
anonymous_enable=NO<\/pre>\n<\/p>\n

4.\u5bb9\u8bb8\u672c\u5730\u7528\u6237\u4ee5\u548c\u7cfb\u7edf\u7528\u6237\u76f8\u540c\u7684\u5e10\u6237\u548c\u5bc6\u7801\u8054\u63a5\u8bbf\u95ee<\/p>\n

\n

local_enable=YES<\/pre>\n<\/p>\n

5.\u91cd\u542fFTP\u670d\u52a1\u5668<\/p>\n

[root@localhostftp]#sudovsftpdrestart<\/p>\n

6.\u8bbe\u7f6e\u76ee\u5f55\u8bbf\u95ee\u6743\u9650<\/p>\n

linux \u865a\u62df\u673a \u670d\u52a1\u5668_vmware\u865a\u62df\u673a\u5b89\u88c5linux\u6559\u7a0b_linux \u865a\u62df\u8f6f\u4ef6<\/p>\n

[root@localhostftp]#mkdir\/var\/ftp\/myFolder<\/p>\n

[root@localhostftp]#chmod777\/var\/ftp\/myFolder<\/p>\n

[root@localhostftp]#servicevsftpdrestart<\/p>\n

7.\u83b7\u53d6guest(ubuntu)\u7684IP\u5730\u5740\uff0c\u4e4b\u540e\u5728windows\u4e0b\u901a\u8fc7ftp:\/\/[IP]\u8bbf\u95ee<\/p>\n

\u987b\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/p>\n

\u5018\u82e5\u5b8c\u6210\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4ecd\u672a\u80fd\u5b9e\u73b0\u4e92\u8bbf\uff0c\u5c31\u8981\u68c0\u6d4b\u7f51\u8def\u8bbe\u7f6e\u95ee\u9898\u4e86\uff0c\u5c06Linux<\/a>\u865a\u62df\u673a\u7684\u7f51\u8fde\u5f62\u5f0f\u6539\u4e3a\u4e86Bridge\u3002<\/p>\n

vmware\u865a\u62df\u673a\u5b89\u88c5linux\u6559\u7a0b_linux \u865a\u62df\u8f6f\u4ef6_linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/p>\n

\u89e3\u91ca\u5982\u4e0b\uff1a<\/p>\n

\u9996\u5148\u90fd\u987b\u8981\u5256\u6790\u865a\u62df\u673a\u73af\u5883\u4e0b\u7684Host-Guest\u7f51\u8def\u8054\u63a5\u3002\u57fa\u672c\u4e0a\u6211\u4eec\u53ef\u4ee5\u628aHost\u673a\u4e0eGuest\u673a\u4e4b\u95f4\u5f53\u6210\u5c40\u57df\u7f51\u4e2d\u7684\u4e24\u53f0\u673a\u5668\u6765\u5b9e\u73b0\u4e92\u8054\u3002\u5f53\u6211\u4eec\u9009\u62e9\u4ee5NAT\u6a21\u5f0f\u8fdb\u884c\u7f51\u8def\u8054\u63a5\uff0c\u8fd9\u662f\u4e00\u79cd\u4f7f\u7528DHCP\u670d\u52a1\u8fdb\u884c\u7f51\u8def\u8054\u63a5\u7684\u65b9\u6cd5\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0cGuest\u673a\u5e76\u6ca1\u6709\u81ea\u5df1\u7684\u56fa\u5b9aIP\u5730\u5740\uff0c\u8fd9\u4e2a\u5730\u5740\u662f\u5728\u542f\u52a8\u4e86\u7cfb\u7edf\u4ee5\u540e\uff0c\u4eceHost\u673a\u4e0a\u53d6\u5f97\u7684\u3001\u4e00\u4e2a\u6682\u65f6\u63d0\u4f9b\u7ed9Guest\u673a\u4f7f\u7528\u7684IP\u5730\u5740\u3002\u5728\u8fd9\u4e9b\u7f51\u8def\u8054\u63a5\u5f62\u5f0f\u4e0blinux\u7aef\u53e3\u6620\u5c04\uff0c\u8bbe\u7f6eGuest\u673a\u4e2d\u7cfb\u7edf\u7684IP\u83b7\u53d6\u65b9\u6cd5\u4e3a\u624b\u52a8\u83b7\u53d6\uff0c\u4e0d\u7ba1Host\u673a\u8054\u7f51\u7684\u5f62\u5f0f\u600e\u6837\uff0c\u53ea\u8981Host\u80fd\u4e0a\u7f51\uff0cGuest\u673a\u4e5f\u53ef\u4ee5\u4e0a\u7f51\u3002<\/p>\n

\u5c3d\u7ba1\u9009\u62e9\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5185\u7f51\u8054\u63a5\u662f\u5f88\u4fbf\u6377\uff0c\u4f46\u662f\u5728Host-Guest\u4e4b\u95f4\u7684\u5c40\u57df\u7f51\u8054\u63a5\u771f\u7684\u8ba9\u4eba\u4f24\u900f\u4e86\u8111\u7b4b\u865a\u62df\u4e3b\u673a linux\uff0c\u865a\u62df\u7f51\u5361VMnet8\u7684IP\u4e0eHost\u673a\u7684IP\u4e0d\u5728\u540c\u4e00\u516c\u7f51\u3002\u5c06Linux\u865a\u62df\u673a\u7684\u7f51\u8fde\u5f62\u5f0f\u6539\u4e3a\u4e86Bridge\u3002Bridge\u6a21\u5f0f\u5c06\u865a\u62df\u4e3b\u673a\u7684\u865a\u62df\u7f51\u5361\u6865\u63a5\u5230\u4e00\u4e2aHost\u4e3b\u673a\u7684\u6570\u5b66\u7f51\u5361\u4e0a\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3aGuest\u673a\u548cHost\u4e3b\u673a\u5904\u4e8e\u5bf9\u7b49\u7684\u5730\u4f4d\uff0c\u5728\u7f51\u8def\u5173\u7cfb\u4e0a\u662f\u5e73\u7b49\u7684linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/strong>\uff0c\u5bf9\u4e8e\u6211\u8fd9\u4e9b\u5bf9\u8def\u7531\u7684\u4e8b\u60c5\u6bd4\u8f83\u5f31\u667a\u7684\u4eba\u6765\u8bf4\uff0c\u8fd9\u662f\u6700\u6613\u7406\u89e3\u7684\u4e00\u79cd\u5c40\u57df\u7f51\u4e92\u8054\u65b9\u6cd5\u3002<\/p>\n

\u6211\u7684\u4f7f\u7528\u7f51\u8def\u670d\u52a1\u662f\u65b0\u6751LAN\u7f51\uff0cIP\u81ea\u7136\u662f\u624b\u52a8\u83b7\u53d6\u7684\uff0c\u4e0d\u7528\u6ee5\u60c5\u601d\u6539\u52a8\u5b83linux \u865a\u62df\u673a \u670d\u52a1\u5668<\/strong>\uff0c\u5c06Guest\u673a\u7684\u7f51\u8def\u4e5f\u8bbe\u7f6e\u6210\u4e3a\u624b\u52a8\u83b7\u53d6IP\uff1a<\/p>\n

\u5e94\u7528\u7a0b\u5e8f-->\u7cfb\u7edf\u8bbe\u7f6e-->\u7f51\u8def-->\u7f16\u8f91eth0\u8bbe\u5907<\/p>\n

Method2:InstallVMwareTools<\/p>\n

#mkdir\/mnt\/cdrom<\/p>\n

#mount\/dev\/cdrom\/mnt\/cdrom<\/p>\n

#cp\/mnt\/cdrom\/VMwareTools-9.6.1-1378637.tar.gz\/tmp<\/p>\n

#cd\/tmp<\/p>\n

#tarzxpf\/mnt\/cdrom\/VMwareTools-9.6.1-1378637.tar.gz<\/p>\n

#cdvmware-tools-distrib<\/p>\n

#.\/vmware-install.pl<\/p>\n","protected":false},"excerpt":{"rendered":"

\u9996\u5148\u90fd\u9700\u8981\u5206\u6790\u865a\u62df\u673a\u73af\u5883\u4e0b\u7684Host-Guest\u7f51\u7edc\u8fde\u63a5\u3002\u57fa\u672c\u4e0a\u6211\u4eec\u53ef\u4ee5\u628aHost\u673a\u4e0eGuest\u673a\u4e4b\u95f4\u5f53\u4f5c\u5c40\u57df\u7f51\u4e2d\u7684\u4e24\u53f0\u673a\u5668\u6765\u5b9e\u73b0\u4e92\u8054\u3002\u5c06Linux\u865a\u62df\u673a\u7684\u7f51\u8fde\u65b9\u5f0f\u6539\u4e3a\u4e86Bridge\u3002<\/p>\n","protected":false},"author":1,"featured_media":271667,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-271666","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/271666","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=271666"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/271666\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/271667"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=271666"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=271666"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=271666"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}