{"id":26487,"date":"2025-04-19T15:46:23","date_gmt":"2025-04-19T07:46:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/26487.html"},"modified":"2025-04-19T15:46:23","modified_gmt":"2025-04-19T07:46:23","slug":"%e8%a7%a3%e5%86%b3%e9%98%bf%e9%87%8c%e4%ba%91%e8%bd%bb%e9%87%8f%e7%ba%a7%e6%9c%8d%e5%8a%a1%e5%99%a8-ubuntu-24-04-1-lts-%e6%b2%a1%e7%bd%91%e4%b9%9f-ping-%e4%b8%8d%e9%80%9a-8-8-8-8-%e4%bb%a5%e5%8f%8a-ro","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/26487.html","title":{"rendered":"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f"},"content":{"rendered":"<p>\u4e8b\u60c5\u53d1\u751f\u5728\u4e24\u5929\u524d&#xff0c;\u4f4d\u4e8e\u516c\u7f51\u7684\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668&#xff08;Ubuntu 24.04.1 LTS&#xff09;\u5ffd\u7136\u6ca1\u7f51\u3002\u4e3b\u8981\u662f\u4e0a\u6b21\u4e0a\u670d\u52a1\u5668\u8fdb\u884c\u914d\u7f6e\u5df2\u7ecf\u662f\u4e00\u4e2a\u591a\u6708\u524d&#xff0c;\u6700\u8fd1\u4e5f\u6ca1\u6709\u505a\u4ec0\u4e48\u4e8b\u60c5&#xff0c;\u5c31\u5ffd\u7136\u6ca1\u7f51\u4e86&#xff0c;\u8ba9\u4eba\u7eb3\u95f7\u3002\u66f4\u4e3b\u8981\u7684\u662f&#xff0c;\u4e0a\u6b21\u5907\u4efd\u662f\u4e00\u4e2a\u591a\u6708\u524d&#xff0c;\u5982\u679c\u56de\u6eda&#xff0c;\u6700\u8fd1\u4e00\u4e2a\u6708\u4e0a\u4f20\u7684\u6570\u636e\u5c06\u4f1a\u4e22\u5931\u3002\u60f3\u8981\u4e0b\u8f7d\u6570\u636e\u4e0b\u6765\u8fdb\u884c\u91cd\u7f6e\u7cfb\u7edf&#xff08;\u4f1a\u5220\u9664\u6240\u6709\u5feb\u7167&#xff09;\u518d\u4e0a\u4f20\u4e5f\u4e0d\u662f\u4e2a\u529e\u6cd5&#xff0c;\u56e0\u4e3a\u6ca1\u7f51&#xff0c;ssh \u90fd\u8fde\u4e0d\u4e0a&#xff0c;\u66f4\u4e0d\u7528\u8bf4\u4e0b\u8f7d\u3002\u6700\u540e&#xff0c;\u82b1\u4e86\u4e09\u4e2a\u5c0f\u65f6&#xff0c;\u7ec8\u4e8e\u89e3\u51b3\u4e86\u95ee\u9898\u3002<\/p>\n<h2>\u4e00\u3001\u6545\u969c\u73b0\u8c61<\/h2>\n<p>\u5728\u5f53\u524d\u6545\u969c\u72b6\u6001\u4e0b\u6253\u4e86\u4e2a\u5907\u4efd&#xff0c;\u56de\u6eda\u5230\u4e0a\u4e00\u6b21\u53ef\u4ee5\u8054\u7f51\u7684\u72b6\u6001\u8fdb\u884c\u5206\u6790\u3002\u5bf9\u6bd4\u53d1\u73b0&#xff0c;\u4e3b\u8981\u6709\u4ee5\u4e0b\u51e0\u4e2a\u6545\u969c\u73b0\u8c61\u3002<\/p>\n<h4>&#xff08;\u4e00&#xff09;ping \u4e0d\u901a<\/h4>\n<p>\u53d1\u73b0\u5728\u81ea\u5df1\u7535\u8111\u5c1d\u8bd5\u4f7f\u7528 ssh\u3001https \u7b49\u534f\u8bae\u8bbf\u95ee\u670d\u52a1\u5668\u4e0d\u540c\u7684\u7aef\u53e3\u90fd\u65e0\u6cd5\u8bbf\u95ee&#xff0c;ping \u4e5f ping \u4e0d\u8fdb\u53bb\u3002\u5728\u963f\u91cc\u4e91\u6551\u63f4\u8fde\u63a5\u4e0b\u6267\u884c ping www.baidu.com \u4e0d\u901a&#xff0c;\u6267\u884c ping 8.8.8.8 \u4e5f\u4e0d\u901a\u3002\u611f\u89c9\u5c31\u662f\u5b8c\u5168\u6ca1\u7f51\u3002<\/p>\n<h4>&#xff08;\u4e8c&#xff09;\u6267\u884c ifconfig \u53ea\u6709 lo \u6ca1\u6709 eth0<\/h4>\n<p>\u56de\u6eda\u4e86\u4e00\u4e0b\u4ee5\u524d\u7684\u7248\u672c&#xff0c;\u53d1\u73b0\u53ef\u4ee5\u8054\u7f51&#xff0c;\u6267\u884c ifconfig&#xff0c;\u663e\u793a\u5982\u4e0b&#xff08;\u5177\u4f53 IP \u5730\u5740\u7528 X \u8fdb\u884c\u4e86\u4ee3\u66ff&#xff09;\u3002<\/p>\n<p>root&#064;Universe:~# ifconfig<br \/>\neth0: flags&#061;4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500<br \/>\n        inet XXX.XXX.XXX.XXX  netmask XXX.XXX.XXX.XXX  broadcast XXX.XXX.XXX.XXX<br \/>\n        inet6 XXXX:XXXX:XXXX:XXXX:XXXX  prefixlen 64  scopeid 0x20&lt;link&gt;<br \/>\n        ether 00:16:3e:0c:12:69  txqueuelen 1000  (Ethernet)<br \/>\n        RX packets 1759  bytes 194870 (194.8 KB)<br \/>\n        RX errors 0  dropped 0  overruns 0  frame 0<br \/>\n        TX packets 1826  bytes 1352244 (1.3 MB)<br \/>\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/p>\n<p>lo: flags&#061;73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536<br \/>\n        inet 127.0.0.1  netmask 255.0.0.0<br \/>\n        inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;<br \/>\n        loop  txqueuelen 1000  (Local Loopback)<br \/>\n        RX packets 332540  bytes 27292720 (27.2 MB)<br \/>\n        RX errors 0  dropped 0  overruns 0  frame 0<br \/>\n        TX packets 332540  bytes 27292720 (27.2 MB)<br \/>\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/p>\n<p>\u5728\u5f53\u524d\u6545\u969c\u72b6\u6001\u4e0b&#xff0c;\u6267\u884c ifconfig&#xff0c;\u663e\u793a\u5982\u4e0b&#xff0c;\u6ca1\u6709 eth0\u3002<\/p>\n<p>root&#064;Universe:~# ifconfig<br \/>\nlo: flags&#061;73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536<br \/>\n        inet 127.0.0.1  netmask 255.0.0.0<br \/>\n        inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;<br \/>\n        loop  txqueuelen 1000  (Local Loopback)<br \/>\n        RX packets 332540  bytes 27292720 (27.2 MB)<br \/>\n        RX errors 0  dropped 0  overruns 0  frame 0<br \/>\n        TX packets 332540  bytes 27292720 (27.2 MB)<br \/>\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/p>\n<h4>&#xff08;\u4e09&#xff09;\u6267\u884c route -n \u6ca1\u6709\u4efb\u4f55\u4fe1\u606f<\/h4>\n<p>\u56de\u6eda\u5230\u53ef\u4ee5\u8054\u7f51\u7684\u7248\u672c\u65f6&#xff0c;\u6267\u884c route -n \u662f\u6709\u6570\u636e\u7684&#xff08;\u7528 X \u66ff\u6362\u4e86\u771f\u5b9e IP&#xff09;\u3002<\/p>\n<p>root&#064;Universe:~# route -n<br \/>\nKernel IP routing table<br \/>\nDestination     Gateway         Genmask         Flags Metric Ref    Use Iface<br \/>\n0.0.0.0         XXX.XXX.XXX.XXX   0.0.0.0         UG    100    0        0 eth0<br \/>\nXXX.XXX.XXX.XXX   XXX.XXX.XXX.XXX   255.255.255.255 UGH   100    0        0 eth0<br \/>\nXXX.XXX.XXX.XXX   XXX.XXX.XXX.XXX   255.255.255.255 UGH   100    0        0 eth0<br \/>\nXXX.XXX.XXX.XXX      0.0.0.0         255.255.192.0   U     100    0        0 eth0<br \/>\nXXX.XXX.XXX.XXX   0.0.0.0         255.255.255.255 UH    100    0        0 eth0<\/p>\n<p>\u6545\u969c\u72b6\u6001\u4e0b&#xff0c;\u6267\u884c route -n&#xff0c;\u6ca1\u6709\u6709\u6548\u6570\u636e\u3002<\/p>\n<p>root&#064;Universe:~# route -n<br \/>\nKernel IP routing table<br \/>\nDestination     Gateway         Genmask         Flags Metric Ref    Use Iface<\/p>\n<h4>(\u56db&#xff09;\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u8bca\u65ad\u672a\u53d1\u73b0\u5f02\u5e38<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419074622-680354ce76358.png\" alt=\"\u8bca\u65ad\" \/><\/p>\n<h2>\u4e8c\u3001\u5206\u6790\u4e0e\u5c1d\u8bd5<\/h2>\n<h4>&#xff08;\u4e00&#xff09;\u4ece ping \u4e0b\u624b<\/h4>\n<p>\u5982\u679c\u53ea\u662f ping www.baidu.com \u5931\u8d25\u800c ping 8.8.8.8 \u6210\u529f&#xff0c;\u90a3\u5e94\u8be5\u662f DNS \u95ee\u9898&#xff0c;\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u7f51\u4e0a\u6559\u7a0b\u6709\u5f88\u591a&#xff0c;\u4f8b\u5982 https:\/\/unix.stackexchange.com\/questions\/275428\/i-can-ping-ips-but-cant-resolve-domains\u3002\u4f46\u662f&#xff0c;\u6839\u636e\u6545\u969c\u73b0\u8c61&#xff08;\u4e00&#xff09;\u53ef\u4ee5\u77e5\u9053&#xff0c;\u8fde 8.8.8.8 \u90fd ping \u4e0d\u901a&#xff0c;\u90a3\u80af\u5b9a\u4e0d&#xff08;\u53ea&#xff09;\u662f DNS \u7684\u95ee\u9898\u3002\u7b14\u8005\u4e5f\u8bd5\u4e86\u4e00\u4e0b\u5f53\u6210 DNS \u95ee\u9898\u8fdb\u884c\u89e3\u51b3&#xff0c;\u4f46\u670d\u52a1\u5668\u4f9d\u65e7\u65e0\u6cd5\u8fde\u63a5\u4e0a\u3002 \u767e\u5ea6\u548c\u8c37\u6b4c\u641c\u7d22 ping temporary failure in name resolution \u548c ping connect network is unreachable \u4e86\u534a\u5929&#xff0c;\u8bf4\u8981\u4fee\u6539 \/etc\/resolv.conf&#xff0c;\u6dfb\u52a0 8.8.8.8 \u548c 8.8.4.4&#xff0c;\u4f46\u5bf9\u6bd4\u4e86\u4e00\u4e0b\u4e4b\u524d\u6b63\u5e38\u8054\u7f51\u7684\u6587\u4ef6&#xff0c;\u53d1\u73b0\u8be5\u6587\u4ef6\u6ca1\u6709\u53d8\u5316&#xff0c;\u6240\u4ee5\u5e94\u8be5\u4e0d\u7528\u4fee\u6539\u3002\u4e8b\u5b9e\u4e0a&#xff0c;\u7b14\u8005\u5c1d\u8bd5\u8fc7\u4fee\u6539&#xff0c;\u65e0\u6d4e\u4e8e\u4e8b\u3002\u4f46\u8fd8\u662f\u52a0\u4e0a&#xff0c;\u6bd5\u7adf\u591a\u4e24\u4e2a\u57df\u540d\u89e3\u6790\u670d\u52a1 IP \u4e0d\u662f\u4ec0\u4e48\u574f\u4e8b&#xff0c;\u5728\u8fd9\u7bc7\u535a\u6587\u9996\u53d1\u4e00\u5468\u540e\u4e5f\u51fa\u73b0\u4e86\u53ea\u80fd ping \u901a IP \u4e0d\u80fd ping \u901a\u57df\u540d\u7684\u4e8b\u60c5&#xff0c;\u9700\u8981\u6dfb\u52a0\u8fd9\u4e24\u4e2a\u57df\u540d\u89e3\u6790\u670d\u52a1 IP \u89e3\u51b3\u3002<\/p>\n<p>root&#064;Universe:~# cat \/etc\/resolv.conf<br \/>\n# This is \/run\/systemd\/resolve\/stub-resolv.conf managed by man:systemd-resolved(8).<br \/>\n# Do not edit.<br \/>\n#<br \/>\n# This file might be symlinked as \/etc\/resolv.conf. If you&#039;re looking at<br \/>\n# \/etc\/resolv.conf and seeing this text, you have followed the symlink.<br \/>\n#<br \/>\n# This is a dynamic resolv.conf file for connecting local clients to the<br \/>\n# internal DNS stub resolver of systemd-resolved. This file lists all<br \/>\n# configured search domains.<br \/>\n#<br \/>\n# Run &#034;resolvectl status&#034; to see details about the uplink DNS servers<br \/>\n# currently in use.<br \/>\n#<br \/>\n# Third party programs should typically not access this file directly, but only<br \/>\n# through the symlink at \/etc\/resolv.conf. To manage man:resolv.conf(5) in a<br \/>\n# different way, replace this symlink by a static file or a different symlink.<br \/>\n#<br \/>\n# See man:systemd-resolved.service(8) for details about the supported modes of<br \/>\n# operation for \/etc\/resolv.conf.<\/p>\n<p>nameserver 127.0.0.53<br \/>\noptions edns0 trust-ad<br \/>\nsearch .<\/p>\n<h4>&#xff08;\u4e8c&#xff09;\u641c\u7d22\u5176\u5b83\u76f8\u5173\u89e3\u51b3\u65b9\u6848&#xff08;\u53ef\u80fd\u5bf9\u5176\u5b83\u7f51\u7edc\u95ee\u9898\u6709\u7528\u53ef\u9010\u4e2a\u5c1d\u8bd5&#xff09;<\/h4>\n<li>\u4fee\u6539 \/etc\/sysconfig\/network-script \u4e0b\u7684\u914d\u7f6e\u6587\u4ef6&#xff0c;\u53d1\u73b0 cd \u5230\u8fd9\u4e2a\u76ee\u5f55\u65f6\u63d0\u793a\u76ee\u5f55\u4e0d\u5b58\u5728&#xff1b;<\/li>\n<li>\u4f7f\u7528 Network-Manager\u3001networkmanger\u3001nmcli\u3001netset \u7b49\u5de5\u5177\u548c service XXX restart \u7b49\u547d\u4ee4\u91cd\u542f\u7f51\u7edc\u7ba1\u7406\u5668&#xff0c;\u5747\u63d0\u793a\u4e0d\u5b58\u5728\u6216\u670d\u52a1\u672a\u5b89\u88c5&#xff0c;\u68c0\u67e5\u53d1\u73b0\u6b63\u5e38\u72b6\u6001\u4e0b\u4e5f\u6ca1\u6709\u88c5\u8fc7\u8fd9\u4e9b\u4e1c\u897f&#xff0c;\u6240\u4ee5&#xff0c;\u5c1d\u8bd5 apt \u5b89\u88c5&#xff0c;\u60f3\u5565\u5462&#xff0c;\u6ca1\u7f51\u554a&#xff1b;<\/li>\n<li>\u4f7f\u7528 \/etc\/init.d\/networking&#xff0c;\u63d0\u793a\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6&#xff08;\u600e\u4e48\u4ec0\u4e48\u90fd\u6ca1\u6709&#xff09;&#xff1b;<\/li>\n<li>\u89c1\u5f97\u6700\u591a\u7684\u662f \/etc\/network\/interfaces&#xff0c;cd \u8fc7\u53bb&#xff0c;\u54e6\u543c&#xff0c;\u53c8\u6ca1\u6709\u8fd9\u4e2a\u6587\u4ef6\u5939&#xff1b;<\/li>\n<li>GPT \u8bf4\u4ece Ubuntu 17 \u5f00\u59cb&#xff0c;\/etc\/network\/interfaces \u53d8\u6210\u4e86 netplan&#xff0c;\u6bd4\u8f83\u4e86\u4e0b\u6545\u969c\u72b6\u6001\u4e0b\u548c\u6b63\u5e38\u72b6\u6001\u4e0b\u7684\u914d\u7f6e&#xff0c;\u53d1\u73b0 \/etc\/netplan \u4e0b\u591a\u4e86\u4e2a yaml \u6587\u4ef6&#xff0c;\u4e8e\u662f\u5220\u9664\u4e86\u591a\u4f59\u7684 yaml \u6587\u4ef6&#xff0c;\u53ea\u7559\u4e0b\u4e86 50-cloud-init.yaml&#xff0c;\u4e0d\u8fc7\u8fd8\u662f\u4e0d\u884c&#xff0c;\u4f46\u8fd9\u4e2a\u66f4\u6539\u8fd8\u662f\u505a\u4e86\u5427&#xff0c;\u6bd5\u7adf\u548c\u4ee5\u524d\u6b63\u5e38\u72b6\u6001\u4e0b\u7684\u4fdd\u6301\u4e00\u81f4\u4e00\u822c\u6ca1\u9519&#xff1b;<\/li>\n<li>\u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173&#xff0c;\u4e3b\u8981\u662f\u7b14\u8005\u5728\u5f53\u524d\u9636\u6bb5\u6267\u884c ifconfig \u8fde eth0 \u90fd\u6ca1\u6709&#xff0c;\u6240\u4ee5\u6267\u884c route add default gw \u81ea\u7136\u5931\u8d25&#xff0c;\u4f46\u8fd9\u6700\u540e\u52a9\u653b\u4e86\u4e00\u624b\u3002<\/li>\n<h4>(\u4e09&#xff09;\u4ece ifconfig \u6267\u884c<\/h4>\n<p>\u65e2\u7136\u6ca1\u6709 eth0&#xff0c;\u90a3\u5c31\u6267\u884c ipconfig eth0 up\u3002\u542f\u52a8 eth0 \u7f51\u5361\u540e&#xff0c;\u518d\u6b21\u6267\u884c ifconfig&#xff0c;\u6709 eth0 \u4e86&#xff0c;\u4f46\u662f\u6ca1\u6709 inet&#xff0c;\u663e\u793a\u5982\u4e0b\u3002<\/p>\n<p>root&#064;Universe:~# ifconfig<br \/>\neth0: flags&#061;4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500<br \/>\n        inet6 XXXX:XXXX:XXXX:XXXX:XXXX  prefixlen 64  scopeid 0x20&lt;link&gt;<br \/>\n        ether 00:16:3e:0c:12:69  txqueuelen 1000  (Ethernet)<br \/>\n        RX packets 1759  bytes 194870 (194.8 KB)<br \/>\n        RX errors 0  dropped 0  overruns 0  frame 0<br \/>\n        TX packets 1826  bytes 1352244 (1.3 MB)<br \/>\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/p>\n<p>lo: flags&#061;73&lt;UP,LOOPBACK,RUNNING&gt;  mtu 65536<br \/>\n        inet 127.0.0.1  netmask 255.0.0.0<br \/>\n        inet6 ::1  prefixlen 128  scopeid 0x10&lt;host&gt;<br \/>\n        loop  txqueuelen 1000  (Local Loopback)<br \/>\n        RX packets 332540  bytes 27292720 (27.2 MB)<br \/>\n        RX errors 0  dropped 0  overruns 0  frame 0<br \/>\n        TX packets 332540  bytes 27292720 (27.2 MB)<br \/>\n        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0<\/p>\n<p>\u4e8e\u662f&#xff0c;\u6839\u636e\u4e4b\u524d\u7684\u5730\u5740&#xff0c;\u6267\u884c\u4e86 ifconfig eth0 XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.XXX\u3002\u518d\u6b21\u6267\u884c ifconfig&#xff0c;\u53d1\u73b0\u9664\u4e86 RX \u548c TX \u4e4b\u5916&#xff0c;\u6545\u969c\u72b6\u6001\u4e0b\u548c\u6b63\u5e38\u8054\u7f51\u72b6\u6001\u4e0b\u7684\u8f93\u51fa\u6ca1\u6709\u4ec0\u4e48\u4e0d\u540c\u3002\u611f\u89c9 eth0 \u8f6c\u53d1\u7684\u6570\u636e\u5e94\u8be5\u8981\u6bd4 lo \u7684\u591a\u5f97\u591a&#xff0c;\u800c\u6545\u969c\u72b6\u6001\u4e0b\u7684\u670d\u52a1\u5668\u5e76\u975e\u5982\u6b64&#xff0c;\u4e8e\u662f\u5c1d\u8bd5\u5728\u8c37\u6b4c\u548c\u767e\u5ea6\u4e0a\u641c\u7d22\u8fd9\u4e2a\u95ee\u9898&#xff0c;\u6ca1\u641c\u7d22\u5230\u7ed3\u679c&#xff0c;\u53ef\u80fd\u662f\u8868\u8fbe\u95ee\u9898\u3002\u6700\u540e&#xff0c;\u60f3\u4e86\u60f3&#xff0c;\u5e94\u8be5\u662f\u8981\u628a\u9ed8\u8ba4\u7f51\u5361\u5207\u4e3a eth0&#xff0c;\u4f9d\u7167\u6b64\u601d\u8def\u6267\u884c\u4e86 route add default gw XXX.XXX.XXX.XXX eth0&#xff08;\u8fd9\u91cc\u7684 XXX.XXX.XXX.XXX \u5bf9\u5e94\u4e0a\u6587 gateway \u4e0b\u9762\u7684\u5730\u5740&#xff09;\u3002\u5ffd\u7136&#xff0c;\u4e00\u5207\u95ee\u9898\u5f97\u5230\u4e86\u89e3\u51b3\u3002<\/p>\n<h2>\u89e3\u51b3\u65b9\u6848<\/h2>\n<p>\u6267\u884c ifconfig eth0 up \u628a\u7f51\u5173\u542f\u7528\u56de\u6765&#xff0c;\u7136\u540e\u6267\u884c ifconfig eth0 XXX.XXX.XXX.XXX netmask XXX.XXX.XXX.XXX \u628a\u7f51\u5361 eth0 \u52a0\u56de\u6765&#xff0c;\u6700\u540e\u7528 route add default gw XXX.XXX.XXX.XXX eth0 \u8bbe\u7f6e\u9ed8\u8ba4\u7f51\u5173&#xff0c;\u7ed3\u675f\u3002<\/p>\n<p>\u53e6\u5916&#xff0c;\u6839\u636e\u5f88\u4e45\u4ee5\u524d\u53d1\u751f\u8fc7\u4e00\u6b21\u7c7b\u4f3c\u7684\u963f\u91cc\u4e91\u670d\u52a1\u5668\u65e0\u8054\u7f51\u53ea\u80fd\u6551\u63f4\u8fde\u63a5\u7684\u4e8b\u4ef6\u63a8\u6d4b&#xff0c;\u65e7\u7248\u672c Ubuntu \u751f\u547d\u5468\u671f\u505c\u6b62\u540e\u8981\u60f3\u4fdd\u7559\u6570\u636e\u76f4\u63a5\u5347\u7ea7\u81f3\u65b0\u7248\u672c Ubuntu \u65f6\u9700\u8981\u6267\u884c do-release-upgrade&#xff0c;\u800c\u5728\u6267\u884c\u4e86\u8be5\u547d\u4ee4\u540e&#xff0c;\u670d\u52a1\u5668\u6216\u591a\u6216\u5c11\u4f1a\u51fa\u73b0\u7f51\u7edc\u6545\u969c&#xff0c;\u5177\u4f53\u539f\u56e0\u4e0d\u660e&#xff0c;\u6709\u7684\u5e16\u5b50\u8bf4\u662f\u5185\u6838\u517c\u5bb9\u6027\u95ee\u9898\u3002\u56e0\u6b64&#xff0c;\u5347\u7ea7\u963f\u91cc\u4e91\u670d\u52a1\u5668 Ubuntu \u7cfb\u7edf\u7684\u4e00\u4e2a\u5efa\u8bae\u662f&#xff1a;\u628a\u670d\u52a1\u5668\u4e0a\u7684\u6570\u636e\u4e0b\u8f7d\u5230\u672c\u5730&#xff0c;\u7136\u540e\u91cd\u7f6e\u7cfb\u7edf\u4e3a\u6700\u65b0\u7248 Ubuntu&#xff0c;\u518d\u5c06\u672c\u5730\u7684\u6570\u636e\u4e0a\u4f20\u56de\u53bb&#xff0c;\u7136\u540e\u5728\u963f\u91cc\u4e91\u63a7\u5236\u53f0\u5904\u5efa\u4e00\u4e2a\u5feb\u7167&#xff0c;\u5feb\u7167\u751f\u6210\u540e\u518d\u6267\u884c apt-get update &amp;&amp; apt-get upgrade&#xff0c;\u518d\u62cd\u4e00\u4e2a\u5feb\u7167&#xff0c;\u5feb\u7167\u62cd\u5b8c\u540e\u5373\u53ef\u6d4b\u8bd5\u670d\u52a1\u5668\u6295\u5165\u516c\u7f51\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u4e8b\u60c5\u53d1\u751f\u5728\u4e24\u5929\u524d\uff0c\u4f4d\u4e8e\u516c\u7f51\u7684\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668\uff08Ubuntu 24.04.1 LTS\uff09\u5ffd\u7136\u6ca1\u7f51\u3002\u4e3b\u8981\u662f\u4e0a\u6b21\u4e0a\u670d\u52a1\u5668\u8fdb\u884c\u914d\u7f6e\u5df2\u7ecf\u662f\u4e00\u4e2a\u591a\u6708\u524d\uff0c\u6700\u8fd1\u4e5f\u6ca1\u6709\u505a\u4ec0\u4e48\u4e8b\u60c5\uff0c\u5c31\u5ffd\u7136\u6ca1\u7f51\u4e86\uff0c\u8ba9\u4eba\u7eb3\u95f7\u3002\u66f4\u4e3b\u8981\u7684\u662f\uff0c\u4e0a\u6b21\u5907\u4efd\u662f\u4e00\u4e2a\u591a\u6708\u524d\uff0c\u5982\u679c\u56de\u6eda\uff0c\u6700\u8fd1\u4e00\u4e2a\u6708\u4e0a\u4f20\u7684\u6570\u636e\u5c06\u4f1a\u4e22\u5931\u3002\u6700\u540e\uff0c\u82b1\u4e86\u4e09\u4e2a\u5c0f\u65f6\uff0c\u7ec8\u4e8e\u89e3\u51b3\u4e86\u95ee\u9898\u3002_\u963f\u91cc\u4e91 ubuntu\u6ca1\u6709\u7f51\u7edc<\/p>\n","protected":false},"author":2,"featured_media":26486,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2107,2108,96],"topic":[],"class_list":["post-26487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ubuntu-24-04-1","tag-2108","tag-96"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/26487.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u4e8b\u60c5\u53d1\u751f\u5728\u4e24\u5929\u524d\uff0c\u4f4d\u4e8e\u516c\u7f51\u7684\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668\uff08Ubuntu 24.04.1 LTS\uff09\u5ffd\u7136\u6ca1\u7f51\u3002\u4e3b\u8981\u662f\u4e0a\u6b21\u4e0a\u670d\u52a1\u5668\u8fdb\u884c\u914d\u7f6e\u5df2\u7ecf\u662f\u4e00\u4e2a\u591a\u6708\u524d\uff0c\u6700\u8fd1\u4e5f\u6ca1\u6709\u505a\u4ec0\u4e48\u4e8b\u60c5\uff0c\u5c31\u5ffd\u7136\u6ca1\u7f51\u4e86\uff0c\u8ba9\u4eba\u7eb3\u95f7\u3002\u66f4\u4e3b\u8981\u7684\u662f\uff0c\u4e0a\u6b21\u5907\u4efd\u662f\u4e00\u4e2a\u591a\u6708\u524d\uff0c\u5982\u679c\u56de\u6eda\uff0c\u6700\u8fd1\u4e00\u4e2a\u6708\u4e0a\u4f20\u7684\u6570\u636e\u5c06\u4f1a\u4e22\u5931\u3002\u6700\u540e\uff0c\u82b1\u4e86\u4e09\u4e2a\u5c0f\u65f6\uff0c\u7ec8\u4e8e\u89e3\u51b3\u4e86\u95ee\u9898\u3002_\u963f\u91cc\u4e91 ubuntu\u6ca1\u6709\u7f51\u7edc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/26487.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-19T07:46:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419074622-680354ce76358.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/26487.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/26487.html\",\"name\":\"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T07:46:23+00:00\",\"dateModified\":\"2025-04-19T07:46:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/26487.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/26487.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/26487.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/26487.html","og_locale":"zh_CN","og_type":"article","og_title":"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.5k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf16\u6b21\u3002\u4e8b\u60c5\u53d1\u751f\u5728\u4e24\u5929\u524d\uff0c\u4f4d\u4e8e\u516c\u7f51\u7684\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668\uff08Ubuntu 24.04.1 LTS\uff09\u5ffd\u7136\u6ca1\u7f51\u3002\u4e3b\u8981\u662f\u4e0a\u6b21\u4e0a\u670d\u52a1\u5668\u8fdb\u884c\u914d\u7f6e\u5df2\u7ecf\u662f\u4e00\u4e2a\u591a\u6708\u524d\uff0c\u6700\u8fd1\u4e5f\u6ca1\u6709\u505a\u4ec0\u4e48\u4e8b\u60c5\uff0c\u5c31\u5ffd\u7136\u6ca1\u7f51\u4e86\uff0c\u8ba9\u4eba\u7eb3\u95f7\u3002\u66f4\u4e3b\u8981\u7684\u662f\uff0c\u4e0a\u6b21\u5907\u4efd\u662f\u4e00\u4e2a\u591a\u6708\u524d\uff0c\u5982\u679c\u56de\u6eda\uff0c\u6700\u8fd1\u4e00\u4e2a\u6708\u4e0a\u4f20\u7684\u6570\u636e\u5c06\u4f1a\u4e22\u5931\u3002\u6700\u540e\uff0c\u82b1\u4e86\u4e09\u4e2a\u5c0f\u65f6\uff0c\u7ec8\u4e8e\u89e3\u51b3\u4e86\u95ee\u9898\u3002_\u963f\u91cc\u4e91 ubuntu\u6ca1\u6709\u7f51\u7edc","og_url":"https:\/\/www.wsisp.com\/helps\/26487.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T07:46:23+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419074622-680354ce76358.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/26487.html","url":"https:\/\/www.wsisp.com\/helps\/26487.html","name":"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T07:46:23+00:00","dateModified":"2025-04-19T07:46:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/26487.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/26487.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/26487.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u89e3\u51b3\u963f\u91cc\u4e91\u8f7b\u91cf\u7ea7\u670d\u52a1\u5668 Ubuntu 24.04.1 LTS \u6ca1\u7f51\u4e5f ping \u4e0d\u901a 8.8.8.8 \u4ee5\u53ca route -n \u6ca1\u6709\u8f93\u51fa\u4efb\u4f55\u8f6c\u53d1\u4fe1\u606f"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/26487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=26487"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/26487\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/26486"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=26487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=26487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=26487"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=26487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}