{"id":1594,"date":"2025-08-19T19:27:22","date_gmt":"2025-08-19T11:27:22","guid":{"rendered":"https:\/\/blog.ttwow.top\/?p=1594"},"modified":"2026-06-19T17:55:43","modified_gmt":"2026-06-19T09:55:43","slug":"armbian%e5%9b%ba%e5%ae%9aip","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=1594","title":{"rendered":"Armbian\u56fa\u5b9aIP"},"content":{"rendered":"<p>\u53c2\u8003\uff1a<a href=\"https:\/\/blog.5625.cn\/index.php\/archives\/51\/\">https:\/\/blog.5625.cn\/index.php\/archives\/51\/<\/a><\/p>\n<p>\u7248\u672c\uff1aArmbian_25.08.0_rockchip_wxy-oect_bookworm_6.12.40_server_2025.08.01<\/p>\n<ol>\n<li>\u627e\u5230 netplan \u914d\u7f6e\u6587\u4ef6\n<pre><code>ls \/etc\/netplan\/\nsudo cp \/etc\/netplan\/&lt;\u6587\u4ef6\u540d&gt;.yaml \/etc\/netplan\/&lt;\u6587\u4ef6\u540d&gt;.yaml.bak\nsudo nano \/etc\/netplan\/00-default-use-network-manager.yaml<\/code><\/pre>\n<\/li>\n<\/ol>\n<h2>\u793a\u4f8b<\/h2>\n<pre><code>network:\n  version: 2\n  ethernets:\n    eth0:\n      dhcp4: no  # \u7981\u7528 DHCP\n      addresses: [192.168.1.100\/24]  # \u9759\u6001 IP \u548c\u5b50\u7f51\u63a9\u7801\n      routes:\n        - to: default\n          via: 192.168.1.1  # \u9ed8\u8ba4\u7f51\u5173\n      nameservers:\n        addresses: [8.8.8.8, 8.8.4.4]  # DNS \u670d\u52a1\u5668\n\u5173\u952e\u53c2\u6570\u8bf4\u660e\uff1a\n\ndhcp4: no\uff1a\u7981\u7528 DHCP\u3002\naddresses: [192.168.1.100\/24]\uff1a\u9759\u6001 IP \u548c\u5b50\u7f51\u63a9\u7801\u3002\nroutes\uff1a\u5b9a\u4e49\u9ed8\u8ba4\u8def\u7531\uff0cto: default \u8868\u793a\u6240\u6709\u6d41\u91cf\uff0cvia: 192.168.1.1 \u6307\u5b9a\u7f51\u5173\u3002\nnameservers\uff1a\u8bbe\u7f6e DNS \u670d\u52a1\u5668\u3002\n\u6ce8\u610f\uff1aYAML \u6587\u4ef6\u5bf9\u7f29\u8fdb\u975e\u5e38\u654f\u611f\uff0c\u8bf7\u4f7f\u7528 2 \u4e2a\u7a7a\u683c\u7f29\u8fdb\u3002\n<\/code><\/pre>\n<h2>\u5e94\u7528\u65b0\u7684\u7f51\u7edc\u914d\u7f6e<\/h2>\n<pre><code>sudo netplan apply<\/code><\/pre>\n<h2>4. \u9a8c\u8bc1\u914d\u7f6e<\/h2>\n<pre><code>\u68c0\u67e5\u7f51\u7edc\u63a5\u53e3\uff1a\nip addr show eth0\n\u68c0\u67e5\u9ed8\u8ba4\u8def\u7531\uff1a\nip route<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u53c2\u8003\uff1ahttps:\/\/blog.5625.cn\/index.php\/archives\/51\/ \u7248\u672c\uff1aArmbi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[136],"tags":[150],"class_list":["post-1594","post","type-post","status-publish","format-standard","hentry","category-notes-misc","tag-armbian"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1594"}],"version-history":[{"count":3,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1594\/revisions"}],"predecessor-version":[{"id":1597,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/1594\/revisions\/1597"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}