{"id":605,"date":"2025-03-27T15:51:20","date_gmt":"2025-03-27T07:51:20","guid":{"rendered":"http:\/\/blog.naspro.cc\/?p=605"},"modified":"2025-03-27T15:51:20","modified_gmt":"2025-03-27T07:51:20","slug":"pve%e4%b8%ad%e5%a6%82%e4%bd%95%e9%80%9a%e8%bf%87%e7%a1%ac%e4%bb%b6id%e7%a1%ae%e5%ae%9a%e7%bd%91%e5%8d%a1%e5%90%8d%e7%a7%b0","status":"publish","type":"post","link":"http:\/\/blog.naspro.cc\/?p=605","title":{"rendered":"PVE\u4e2d\u5982\u4f55\u901a\u8fc7\u786c\u4ef6ID\u786e\u5b9a\u7f51\u5361\u540d\u79f0"},"content":{"rendered":"<p>\u91cd\u8f7d PCI \u8bbe\u5907<\/p>\n<pre class=\"prettyprint linenums\" ><code>echo 1 &gt; \/sys\/bus\/pci\/devices\/0000:08:00.0\/remove &amp;&amp; echo 1 &gt; \/sys\/bus\/pci\/rescan<\/code><\/pre>\n<p>\u29c9 Copied!<\/p>\n<p>\u901a\u8fc7\u786c\u4ef6ID\u8f93\u51fa\u7f51\u5361\u540d\u79f0<\/p>\n<pre class=\"prettyprint linenums\" ><code>ls \/sys\/bus\/pci\/devices\/0000:08:00.0\/net\/<\/code><\/pre>\n<p>\u29c9 Copied!<\/p>\n<p>\u786e\u5b9a\u7f51\u5361\u6240\u5c5e\u8bbe\u5907ID<\/p>\n<pre class=\"prettyprint linenums\" ><code>root@pve:~# apt install lshw -y<\/code><\/pre>\n<p>\u29c9 Copied!<\/p>\n<p>\u7528 lshw \u67e5\u770b\u7f51\u5361\u76f8\u5173\u7684\u786c\u4ef6\u4fe1\u606f:<\/p>\n<pre class=\"prettyprint linenums\" ><code>root@pve:~# lshw -class network\n  *-network\n       description: Ethernet interface\n       product: I210 Gigabit Network Connection\n       vendor: Intel Corporation\n       physical id: 0\n       bus info: pci@0000:09:00.0\n       logical name: eno1\n       ...\n  *-network\n       description: Ethernet controller\n       product: I210 Gigabit Network Connection\n       vendor: Intel Corporation\n       physical id: 0\n       bus info: pci@0000:0a:00.0\n       ... \n  *-network:0\n       description: Ethernet interface\n       physical id: 3\n       logical name: vmbr0\n       ...\n....<\/code><\/pre>\n<p>\u29c9 Copied!<\/p>\n<p>\u5b58\u5728\u4e24\u5f20\u7f51\u5361\uff1apci@0000:09:00.0 \u548c pci@0000:0a:00.0\uff0c\u901a\u8fc7\u67e5\u770b logical name \u548c bus info \u53ef\u4ee5\u786e\u5b9a\u5bbf\u4e3b\u6b63\u5728\u4f7f\u7528\u7684 eno1 \u5bf9\u5e94\u7684\u7f51\u5361 PCI ID \u4e3a: 0000:09:00.0\u3002<\/p>\n<p>PVE \u76f4\u901a\u7f51\u5361<br \/>\n<a href=\"https:\/\/eightpigs.io\/2022\/03\/20\/pve_passthrough_network\/\">https:\/\/eightpigs.io\/2022\/03\/20\/pve_passthrough_network\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u91cd\u8f7d PCI \u8bbe\u5907 echo 1 &gt; \/sys\/bus\/pci\/devices\/0000:08:00.0\/remove &amp;&amp; echo 1 &gt; \/sys\/bus\/pci\/rescan \u29c9 Copied! \u901a\u8fc7\u786c\u4ef6ID\u8f93\u51fa\u7f51\u5361\u540d\u79f0 ls \/sys\/bus\/pci\/devices\/0000:08:00.0\/net\/ \u29c9 Copied! \u786e\u5b9a\u7f51\u5361\u6240\u5c5e\u8bbe\u5907ID root@pve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[47],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-linux","tag-pve"],"_links":{"self":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=605"}],"version-history":[{"count":1,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":606,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions\/606"}],"wp:attachment":[{"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.naspro.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}