{"id":51,"date":"2026-03-27T18:28:14","date_gmt":"2026-03-27T10:28:14","guid":{"rendered":"https:\/\/374969782.xyz\/?p=51"},"modified":"2026-03-29T18:08:59","modified_gmt":"2026-03-29T10:08:59","slug":"vm%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%86%85ubuntu%e7%b3%bb%e7%bb%9f%e6%96%ad%e7%bd%91%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/374969782.xyz\/index.php\/2026\/03\/27\/vm%e8%99%9a%e6%8b%9f%e6%9c%ba%e5%86%85ubuntu%e7%b3%bb%e7%bb%9f%e6%96%ad%e7%bd%91%e9%97%ae%e9%a2%98\/","title":{"rendered":"VM\u865a\u62df\u673a\u5185Ubuntu\u7cfb\u7edf\u65ad\u7f51\u95ee\u9898"},"content":{"rendered":"\n<p>\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u540e\u542f\u52a8VM\u5185\u5b89\u88c5\u7684Ubuntu\uff0c\u90fd\u4f1a\u51fa\u73b0\u65ad\u7f51\u7684\u60c5\u51b5\uff0c\u5e76\u4e14\u53ca\u5176\u96be\u4ee5\u6062\u590d\uff0c\u539f\u56e0\u4e5f\u4e0d\u662f\u5f88\u6e05\u695a\u3002\u6839\u636e\u5f88\u591a\u5e38\u89c4\u7684\u65b9\u6cd5\u4fee\u6539\u865a\u62df\u673a\u8bbe\u7f6e\u91cc\u7684\u7f51\u7edc\u914d\u7f6e\u540c\u6837\u65e0\u6548\u3002<\/p>\n\n\n\n<p>\u540e\u6765\u53c2\u8003\u4e86\u4e00\u7bc7\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4\u90a3\u8fb9\u7684\u6587\u7ae0\uff0c\u5012\u662f\u6709\u4e00\u6bb5\u65f6\u95f4\u53ef\u4ee5\u89e3\u51b3\uff0c\u6587\u7ae0\u5730\u5740\u5982\u4e0b\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/huaweicloud.csdn.net\/63561935d3efff3090b5a1b1.html?spm=1001.2101.3001.6650.1&amp;utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Eactivity-1-124145412-blog-116173508.235%5Ev43%5Econtrol&amp;depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7Eactivity-1-124145412-blog-116173508.235%5Ev43%5Econtrol&amp;utm_relevant_index=2\">\u4f7f\u7528VMware Workstation\u521b\u5efa\u7684\u865a\u62df\u673a\u65e0\u6cd5\u8fde\u63a5\u7f51\u7edc\u89e3\u51b3\u65b9\u6cd5_linux_Type_Francis-\u534e\u4e3a\u5f00\u53d1\u8005\u7a7a\u95f4<\/a><\/p>\n\n\n\n<p>\u4f46\u64cd\u4f5c\u6bd4\u8f83\u7e41\u7410\uff0c\u4e14\u524d\u6bb5\u65f6\u95f4\u4f3c\u4e4e\u8fd8\u6ca1\u7528\u4e86\u3002<\/p>\n\n\n\n<p>\u540e\u6765\u5728deepseek\u8001\u5e08\u7684\u5e2e\u52a9\u4e0b\u5c1d\u8bd5\u53bb\u67e5\u73af\u5883\u3002<\/p>\n\n\n\n<p>\u9996\u5148\u4f7f\u7528ping\u8bed\u53e5\u68c0\u67e5\u7f51\u7edc\u662f\u5426\u6b63\u5e38\uff0c\u5728\u547d\u4ee4\u884c\u5185\u6267\u884c\uff08\u547d\u4ee4\u884c\u53ef\u4ee5\u7528ctrl+alt+t\u5feb\u6377\u6253\u5f00\uff09\uff1a<\/p>\n\n\n\n<p><code>ping www.baidu.com<\/code><\/p>\n\n\n\n<p>\u5982\u679c\u8fde\u63a5\u6b63\u5e38\u5c31\u53ef\u4ee5\u9000\u51fa\u8fd9\u7bc7\u6587\u7ae0\u4e86\uff0c\u4e0d\u662f\u63a5\u4e0b\u6765\u4f1a\u63d0\u5230\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u5f53\u51fa\u73b0\u8fde\u63a5\u5931\u8d25\u7684\u60c5\u51b5\uff0c\u8fdb\u4e00\u6b65\u68c0\u67e5\u7f51\u7edc\u63a5\u53e3\u72b6\u6001\uff0c\u5728\u547d\u4ee4\u884c\u5185\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>ip a<\/code><\/code><\/pre>\n\n\n\n<p>\u5f97\u5230\u8f93\u51fa\u5927\u81f4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\n    inet 127.0.0.1\/8 scope host lo\n       valid_lft forever preferred_lft forever\n    inet6 ::1\/128 scope host \n       valid_lft forever preferred_lft forever\n2: ens33: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN group default qlen 1000\n    link\/ether 00:0c:29:bc:61:a4 brd ff:ff:ff:ff:ff:ff\n    altname enp2s1<\/code><\/code><\/pre>\n\n\n\n<p>lo \u662f\u672c\u5730\u56de\u73af\u63a5\u53e3\uff0c\u6b63\u5e38\u3002<\/p>\n\n\n\n<p>ens33 \u662f\u5b9e\u9645\u7f51\u5361\uff0c\u4f46 state DOWN \u8868\u793a\u5b83\u5904\u4e8e\u5173\u95ed\u72b6\u6001\uff0c\u6ca1\u6709\u83b7\u53d6 IP\uff0c\u4e5f\u6ca1\u6709\u4e0e\u865a\u62df\u673a\u7f51\u7edc\u901a\u4fe1\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\u542f\u52a8\u7f51\u5361\u5c31\u597d\u4e86\uff0c\u8f93\u5165\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo ip link set ens33 up<\/code><\/code><\/pre>\n\n\n\n<p>\u5e76\u8f93\u5165\u7cfb\u7edf\u7528\u6237\u7684\u5bc6\u7801\u7ed9\u4e88\u6743\u9650\u540e\u5373\u53ef\u6253\u5f00\u7f51\u5361\u914d\u7f6e\uff0c\u5728\u5916\u90e8\u7269\u7406\u673a\u6b63\u5e38\u8054\u7f51\u7684\u60c5\u51b5\u4e0b\uff0c\u865a\u62df\u673a\u5c31\u53ef\u4ee5\u8fde\u4e0a\u4e92\u8054\u7f51\u4e86\u3002<\/p>\n\n\n\n<p>\u5f53\u7136\uff0c\u8fd8\u6709\u4e00\u79cd\u60c5\u51b5\uff0c\u53ef\u80fd\u4f1a\u6ca1\u6709 IPv4 \u5730\u5740\uff08\u6b63\u5e38\u7684 IPv4 \u5730\u5740\u884c\u5e94\u7c7b\u4f3c inet 192.168.x.x\/24\uff09\u3002<\/p>\n\n\n\n<p>\u6709 inet \u884c \u2192 \u8868\u793a\u6709 IPv4 \u5730\u5740\uff1b<\/p>\n\n\n\n<p>\u6709 inet6 \u884c \u2192 \u8868\u793a\u6709 IPv6 \u5730\u5740\u3002<\/p>\n\n\n\n<p>\u6ca1\u6709IPv4\u65f6\u9700\u8981\u624b\u52a8\u8bf7\u6c42 DHCP \u5206\u914d\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dhclient ens33<\/code><\/pre>\n\n\n\n<p>\u518d\u6b21\u4f7f\u7528<code>ip a show ens33<\/code>\u67e5\u770b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2: ens33: &lt;BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000\n    link\/ether 00:0c:29:bc:61:a4 brd ff:ff:ff:ff:ff:ff\n    altname enp2s1\n    inet 192.168.81.128\/24 brd 192.168.81.255 scope global dynamic ens33\n       valid_lft 1797sec preferred_lft 1797sec\n    inet6 fe80::20c:29ff:febc:61a4\/64 scope link \n       valid_lft forever preferred_lft forever\n<\/code><\/pre>\n\n\n\n<p>\u8fd9\u6837\u5c31\u6ca1\u95ee\u9898\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6bcf\u9694\u4e00\u6bb5\u65f6\u95f4\u540e\u542f\u52a8VM\u5185\u5b89\u88c5\u7684Ubuntu\uff0c\u90fd\u4f1a\u51fa\u73b0\u65ad\u7f51\u7684\u60c5\u51b5\uff0c\u5e76\u4e14\u53ca\u5176\u96be\u4ee5\u6062\u590d\uff0c\u539f\u56e0\u4e5f\u4e0d\u662f\u5f88\u6e05\u695a\u3002\u6839\u636e\u5f88\u591a\u5e38 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-10"],"_links":{"self":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":2,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":88,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/posts\/51\/revisions\/88"}],"wp:attachment":[{"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/374969782.xyz\/index.php\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}