{"id":19511,"date":"2025-04-19T01:51:44","date_gmt":"2025-04-18T17:51:44","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/19511.html"},"modified":"2025-04-19T01:51:44","modified_gmt":"2025-04-18T17:51:44","slug":"openeuler%e7%bd%91%e7%bb%9c%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/19511.html","title":{"rendered":"openEuler\u7f51\u7edc\u914d\u7f6e"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"1%E3%80%81%E7%BD%91%E5%8D%A1%E8%A7%84%E8%8C%83%E5%90%8D%E7%A7%B0-toc\" style=\"margin-left:0px\">1\u3001\u7f51\u5361\u89c4\u8303\u540d\u79f0<\/p>\n<p id=\"2%E3%80%81%E7%BD%91%E5%8D%A1%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%AE%E5%BD%95-toc\" style=\"margin-left:0px\">2\u3001\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/p>\n<p id=\"3%E3%80%81%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE%E8%84%9A%E6%9C%AC-toc\" style=\"margin-left:0px\">3\u3001\u7f51\u7edc\u914d\u7f6e\u811a\u672c<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"1%E3%80%81%E7%BD%91%E5%8D%A1%E8%A7%84%E8%8C%83%E5%90%8D%E7%A7%B0\">1\u3001\u7f51\u5361\u89c4\u8303\u540d\u79f0<\/h2>\n<p>[root&#064;server ~]# grubby &#8211;update-kernel ALL &#8211;args net.ifnames&#061;0<br \/>\n# \u5185\u6838\u4e2d\u7981\u6b62\u4f7f\u7528net.ifnames\u6a21\u5757,\u8fd9\u6837\u53ef\u4ee5\u8ba9\u7f51\u5361\u663e\u793a\u4e3aethx<br \/>\n# \u540e\u518d\u91cd\u542freboot&#xff0c;\u4f7f\u5185\u6838\u751f\u6548, \u7f51\u5361\u540d\u5219\u663e\u793a\u4e3aeth\u5f00\u5934 <\/p>\n<h2 id=\"2%E3%80%81%E7%BD%91%E5%8D%A1%E9%85%8D%E7%BD%AE%E6%96%87%E4%BB%B6%E7%9B%AE%E5%BD%95\">2\u3001\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/h2>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u2014\u2014\u9664RHEL9\u5916\u914d\u7f6e\u7f51\u5361\u7684\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55<\/p>\n<p>[root&#064;server_node ~]# cd \/etc\/sysconfig\/network-scripts\/<\/p>\n<p>[root&#064;server_node network-scripts]# vim ifcfg-eth0<br \/>\n[root&#064;server_node network-scripts]# cat ifcfg-eth0<br \/>\nDEVICE&#061;eth0                    # \u7f51\u5361\u540d\u5b57<br \/>\nONBOOT&#061;yes                     # \u7f51\u5361\u670d\u52a1\u542f\u52a8\u81ea\u52a8\u6fc0\u6d3b\u7f51\u5361<br \/>\nBOOTPROTO&#061;dhcp                 # \u7f51\u5361\u5de5\u4f5c\u6a21\u5f0f<br \/>\nNAME&#061;eth0                      # \u7f51\u7edc\u94fe\u63a5\u540d\u79f0<\/p>\n<p>[root&#064;server_node network-scripts]# nmcli connection reload<br \/>\n[root&#064;server_node network-scripts]# nmcli connection up eth0<br \/>\n\u8fde\u63a5\u5df2\u6210\u529f\u6fc0\u6d3b&#xff08;D-Bus \u6d3b\u52a8\u8def\u5f84&#xff1a;\/org\/freedesktop\/NetworkManager\/ActiveConnection\/42&#xff09; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"112\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418175142-6802912e503f5.png\" width=\"1170\" \/><\/p>\n<p># \u8fd8\u53ef\u914d\u7f6eIP<br \/>\n[root&#064;server_node network-scripts]# vim ifcfg-eth1<br \/>\n[root&#064;server_node network-scripts]# cat ifcfg-eth1<br \/>\nDEVICE&#061;eth1                    # \u8bbe\u5907\u540d\u5b57<br \/>\nNAME&#061;eth_1                     # \u8bbe\u5907\u540d\u79f0<br \/>\nONBOOT&#061;yes                     # \u5f00\u7f51\u542f\u52a8<br \/>\nBOOTPROTO&#061;none                 # \u5de5\u4f5c\u65b9\u5f0f<br \/>\nIPADDR1&#061;172.25.254.100         # IP<br \/>\nNETMASK&#061;255.255.255.0          # \u5b50\u7f51\u63a9\u7801<br \/>\nGATEWAY1&#061;172.25.254.2          # \u7f51\u5173<br \/>\nDNS1&#061;114.114.114.114           # DNS<\/p>\n<p>[root&#064;server_node network-scripts]# nmcli connection reload        # \u6cd5\u4e00<br \/>\n[root&#064;server_node network-scripts]# nmcli connection up eth_1<br \/>\n[root&#064;server_node ~]# systemctl restart NetworkManager             # \u6cd5\u4e8c<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"109\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418175142-6802912e71213.png\" width=\"1170\" \/><\/p>\n<\/p>\n<h2 id=\"3%E3%80%81%E7%BD%91%E7%BB%9C%E9%85%8D%E7%BD%AE%E8%84%9A%E6%9C%AC\">3\u3001\u7f51\u7edc\u914d\u7f6e\u811a\u672c<\/h2>\n<p>#!\/bin\/bash<br \/>\ncat &gt;\/etc\/sysconfig\/network-scripts\/ifcfg-$1 &lt;&lt;EOF<br \/>\nDEVICE&#061;$1<br \/>\nONBOOT&#061;yes<br \/>\nBOOTPROTO&#061;none<br \/>\nIPADDR1&#061;$2<br \/>\nNETMASK1&#061;255.255.255.0<br \/>\nDNS1&#061;114.114.114.114<br \/>\nGATEWAY1&#061;172.25.254.2<br \/>\nNAME&#061;$1<br \/>\nEOF<\/p>\n<p>nmcli connection reload<br \/>\nnmcli connection up $1 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"880\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418175142-6802912e925d5.png\" width=\"1149\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf9\u6b21\u3002openEuler\u7684\u7f51\u7edc\u914d\u7f6e\uff0c\u5305\u62ec\u7f51\u5361\u7684\u914d\u7f6e\u6587\u4ef6\u53ca\u5176\u7f51\u7edc\u7684\u914d\u7f6e\u811a\u672c\u7f16\u5199_openeuler\u914d\u7f6e\u7f51\u7edc<\/p>\n","protected":false},"author":2,"featured_media":19508,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,145,1231,43,44],"topic":[],"class_list":["post-19511","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-linux","tag-openeuler","tag-1231","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>openEuler\u7f51\u7edc\u914d\u7f6e - \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\/19511.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"openEuler\u7f51\u7edc\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf9\u6b21\u3002openEuler\u7684\u7f51\u7edc\u914d\u7f6e\uff0c\u5305\u62ec\u7f51\u5361\u7684\u914d\u7f6e\u6587\u4ef6\u53ca\u5176\u7f51\u7edc\u7684\u914d\u7f6e\u811a\u672c\u7f16\u5199_openeuler\u914d\u7f6e\u7f51\u7edc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/19511.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-18T17:51:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418175142-6802912e503f5.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/19511.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/19511.html\",\"name\":\"openEuler\u7f51\u7edc\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T17:51:44+00:00\",\"dateModified\":\"2025-04-18T17:51:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/19511.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/19511.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/19511.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"openEuler\u7f51\u7edc\u914d\u7f6e\"}]},{\"@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":"openEuler\u7f51\u7edc\u914d\u7f6e - \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\/19511.html","og_locale":"zh_CN","og_type":"article","og_title":"openEuler\u7f51\u7edc\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.9k\u6b21\uff0c\u70b9\u8d5e7\u6b21\uff0c\u6536\u85cf9\u6b21\u3002openEuler\u7684\u7f51\u7edc\u914d\u7f6e\uff0c\u5305\u62ec\u7f51\u5361\u7684\u914d\u7f6e\u6587\u4ef6\u53ca\u5176\u7f51\u7edc\u7684\u914d\u7f6e\u811a\u672c\u7f16\u5199_openeuler\u914d\u7f6e\u7f51\u7edc","og_url":"https:\/\/www.wsisp.com\/helps\/19511.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T17:51:44+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418175142-6802912e503f5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/19511.html","url":"https:\/\/www.wsisp.com\/helps\/19511.html","name":"openEuler\u7f51\u7edc\u914d\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T17:51:44+00:00","dateModified":"2025-04-18T17:51:44+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/19511.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/19511.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/19511.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"openEuler\u7f51\u7edc\u914d\u7f6e"}]},{"@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\/19511","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=19511"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/19511\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/19508"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=19511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=19511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=19511"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=19511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}