{"id":572,"date":"2026-11-04T16:52:32","date_gmt":"2026-11-04T08:52:32","guid":{"rendered":"https:\/\/ft9scr4y-20210904.admin.cygzs.net\/?p=572"},"modified":"2026-11-04T16:52:33","modified_gmt":"2026-11-04T08:52:33","slug":"ubuntu24%e5%9b%ba%e5%ae%9a%e7%bd%91%e5%8d%a1ip","status":"publish","type":"post","link":"https:\/\/www.cygzs.net\/?p=572","title":{"rendered":"Ubuntu24\u56fa\u5b9a\u7f51\u5361IP"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">enp4s0\uff1a\u6362\u6210\u4f60\u81ea\u5df1\u7684\u7f51\u5361\u540d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">addresses\uff1a\u56fa\u5b9a\u7684\u7f51\u5361IP<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">routes\uff1a\u8def\u7531\u5668\u7f51\u5173<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">cat \/etc\/netplan\/01-network-manager-all.yaml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>network:\n  version: 2\n  renderer: networkd\n  ethernets:\n    enp4s0:\n      dhcp4: false\n      addresses:\n        - 192.168.1.2\/24\n      routes:\n        - to: default\n          via: 192.168.1.1\n      nameservers:\n        addresses:\n          - 114.114.114.114<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6d4b\u8bd5\u914d\u7f6e\uff0c\u4f1a\u7b49\u5f85 120 \u79d2\uff0c\u5982\u679c\u4f60\u8fd8\u80fd\u8fde\u4e0a\u670d\u52a1\u5668\uff0c\u56de\u8f66\u786e\u8ba4\uff1b\u65ad\u7f51\u4e0d\u52a8\uff0c\u81ea\u52a8\u56de\u6eda\u65e7\u914d\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo netplan try<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u786e\u8ba4\u6ca1\u95ee\u9898\u518d\u6b63\u5f0f\u5e94\u7528<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo netplan apply<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>enp4s0\uff1a\u6362\u6210\u4f60\u81ea\u5df1\u7684\u7f51\u5361\u540d addresses\uff1a\u56fa\u5b9a\u7684\u7f51\u5361IP routes\uff1a\u8def\u7531\u5668\u7f51\u5173 cat \/etc\/netplan\/01-network-manager-all.yaml \u6d4b\u8bd5\u914d\u7f6e\uff0c\u4f1a\u7b49\u5f85 120 \u79d2\uff0c\u5982\u679c\u4f60\u8fd8\u80fd\u8fde\u4e0a\u670d\u52a1\u5668\uff0c\u56de\u8f66\u786e\u8ba4\uff1b\u65ad\u7f51\u4e0d\u52a8\uff0c\u81ea\u52a8\u56de\u6eda\u65e7\u914d\u7f6e \u786e\u8ba4\u6ca1\u95ee\u9898\u518d\u6b63\u5f0f\u5e94\u7528<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_owldraft_subtitle":"","footnotes":""},"categories":[1,48],"tags":[56],"class_list":["post-572","post","type-post","status-publish","format-standard","hentry","category-it","category-ubuntu","tag-ubuntu24ip"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu24\u56fa\u5b9a\u7f51\u5361IP - \u7433\u6d77\u5bb6\u56ed<\/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.cygzs.net\/?p=572\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu24\u56fa\u5b9a\u7f51\u5361IP - \u7433\u6d77\u5bb6\u56ed\" \/>\n<meta property=\"og:description\" content=\"enp4s0\uff1a\u6362\u6210\u4f60\u81ea\u5df1\u7684\u7f51\u5361\u540d addresses\uff1a\u56fa\u5b9a\u7684\u7f51\u5361IP routes\uff1a\u8def\u7531\u5668\u7f51\u5173 cat \/etc\/netplan\/01-network-manager-all.yaml \u6d4b\u8bd5\u914d\u7f6e\uff0c\u4f1a\u7b49\u5f85 120 \u79d2\uff0c\u5982\u679c\u4f60\u8fd8\u80fd\u8fde\u4e0a\u670d\u52a1\u5668\uff0c\u56de\u8f66\u786e\u8ba4\uff1b\u65ad\u7f51\u4e0d\u52a8\uff0c\u81ea\u52a8\u56de\u6eda\u65e7\u914d\u7f6e \u786e\u8ba4\u6ca1\u95ee\u9898\u518d\u6b63\u5f0f\u5e94\u7528\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cygzs.net\/?p=572\" \/>\n<meta property=\"og:site_name\" content=\"\u7433\u6d77\u5bb6\u56ed\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-04T08:52:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-04T08:52:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"cy\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cygzs.net\/#website\",\"url\":\"https:\/\/www.cygzs.net\/\",\"name\":\"\\u7433\\u6d77\\u5bb6\\u56ed\",\"description\":\"\\u4e0a\\u5929\\u9041\\u5730\\u7684\\u8fd0\\u7ef4\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cygzs.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cygzs.net\/?p=572#webpage\",\"url\":\"https:\/\/www.cygzs.net\/?p=572\",\"name\":\"Ubuntu24\\u56fa\\u5b9a\\u7f51\\u5361IP - \\u7433\\u6d77\\u5bb6\\u56ed\",\"isPartOf\":{\"@id\":\"https:\/\/www.cygzs.net\/#website\"},\"datePublished\":\"2026-11-04T08:52:32+00:00\",\"dateModified\":\"2026-11-04T08:52:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.cygzs.net\/#\/schema\/person\/6db5162177413ff7529e7d15140c864a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.cygzs.net\/?p=572#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cygzs.net\/?p=572\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cygzs.net\/?p=572#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"https:\/\/www.cygzs.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu24\\u56fa\\u5b9a\\u7f51\\u5361IP\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cygzs.net\/#\/schema\/person\/6db5162177413ff7529e7d15140c864a\",\"name\":\"cy\",\"sameAs\":[\"http:\/\/www.cygzs.net\"],\"url\":\"https:\/\/www.cygzs.net\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ubuntu24\u56fa\u5b9a\u7f51\u5361IP - \u7433\u6d77\u5bb6\u56ed","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.cygzs.net\/?p=572","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu24\u56fa\u5b9a\u7f51\u5361IP - \u7433\u6d77\u5bb6\u56ed","og_description":"enp4s0\uff1a\u6362\u6210\u4f60\u81ea\u5df1\u7684\u7f51\u5361\u540d addresses\uff1a\u56fa\u5b9a\u7684\u7f51\u5361IP routes\uff1a\u8def\u7531\u5668\u7f51\u5173 cat \/etc\/netplan\/01-network-manager-all.yaml \u6d4b\u8bd5\u914d\u7f6e\uff0c\u4f1a\u7b49\u5f85 120 \u79d2\uff0c\u5982\u679c\u4f60\u8fd8\u80fd\u8fde\u4e0a\u670d\u52a1\u5668\uff0c\u56de\u8f66\u786e\u8ba4\uff1b\u65ad\u7f51\u4e0d\u52a8\uff0c\u81ea\u52a8\u56de\u6eda\u65e7\u914d\u7f6e \u786e\u8ba4\u6ca1\u95ee\u9898\u518d\u6b63\u5f0f\u5e94\u7528","og_url":"https:\/\/www.cygzs.net\/?p=572","og_site_name":"\u7433\u6d77\u5bb6\u56ed","article_published_time":"2026-11-04T08:52:32+00:00","article_modified_time":"2026-11-04T08:52:33+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"cy"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.cygzs.net\/#website","url":"https:\/\/www.cygzs.net\/","name":"\u7433\u6d77\u5bb6\u56ed","description":"\u4e0a\u5929\u9041\u5730\u7684\u8fd0\u7ef4","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cygzs.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/www.cygzs.net\/?p=572#webpage","url":"https:\/\/www.cygzs.net\/?p=572","name":"Ubuntu24\u56fa\u5b9a\u7f51\u5361IP - \u7433\u6d77\u5bb6\u56ed","isPartOf":{"@id":"https:\/\/www.cygzs.net\/#website"},"datePublished":"2026-11-04T08:52:32+00:00","dateModified":"2026-11-04T08:52:33+00:00","author":{"@id":"https:\/\/www.cygzs.net\/#\/schema\/person\/6db5162177413ff7529e7d15140c864a"},"breadcrumb":{"@id":"https:\/\/www.cygzs.net\/?p=572#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cygzs.net\/?p=572"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cygzs.net\/?p=572#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.cygzs.net\/"},{"@type":"ListItem","position":2,"name":"Ubuntu24\u56fa\u5b9a\u7f51\u5361IP"}]},{"@type":"Person","@id":"https:\/\/www.cygzs.net\/#\/schema\/person\/6db5162177413ff7529e7d15140c864a","name":"cy","sameAs":["http:\/\/www.cygzs.net"],"url":"https:\/\/www.cygzs.net\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.cygzs.net\/index.php?rest_route=\/wp\/v2\/posts\/572","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cygzs.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cygzs.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cygzs.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cygzs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=572"}],"version-history":[{"count":1,"href":"https:\/\/www.cygzs.net\/index.php?rest_route=\/wp\/v2\/posts\/572\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/www.cygzs.net\/index.php?rest_route=\/wp\/v2\/posts\/572\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/www.cygzs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=572"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cygzs.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=572"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cygzs.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=572"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}