{"id":3201,"date":"2023-04-10T22:39:33","date_gmt":"2023-04-10T14:39:33","guid":{"rendered":"https:\/\/dasmz.com\/?p=3201"},"modified":"2023-05-18T23:34:52","modified_gmt":"2023-05-18T15:34:52","slug":"n5105%ef%bc%8c%e6%8a%98%e8%85%be%e7%ac%94%e8%ae%b0%ef%bc%8c2-5gbps-%e5%b1%80%e5%9f%9f%e7%bd%91-2023-05-18","status":"publish","type":"post","link":"https:\/\/dasmz.com\/?p=3201","title":{"rendered":"N5105\uff0c\u6298\u817e\u7b14\u8bb0\uff0c2.5Gbps \u5c40\u57df\u7f51 2023-05-18"},"content":{"rendered":"\n<p><strong>\u6bb5\u843d1\u3001\u9700\u6c42\u63cf\u8ff0<\/strong><\/p>\n\n\n\n<p>\u57fa\u4e8e\u524d\u9762\u8bb2\u8fc7\u7684N5105\u8bbe\u5907\uff0c\u7531\u4e8e\u5b83\u56db\u4e2aLAN\u53e3\u90fd\u662f2.5Gbps\u7684\uff0c\u5411\u4e0b\u53ef\u4ee5\u81ea\u9002\u5e94\u5230\u5343\u5146\uff0c\u6545\u800c\uff0c\u7528\u5b83\u4f5c\u4e3a\u8f6f\u8def\u7531\uff0c\u6216\u8005ALL IN ONE\uff0c\u53ef\u4ee5\u8ba9\u5c40\u57df\u7f51\u73af\u5883\u6210\u4e3a\u51682.5G\u7684\u9ad8\u901f\u73af\u5883<\/p>\n\n\n\n<p><strong>\u6bb5\u843d2\u3001PVE\u573a\u666f\u4e0b\uff0c2.5G\u5b9e\u73b0<\/strong><\/p>\n\n\n\n<p>N5105\u5bbf\u4e3b\u673a\u5b89\u88c5Proxmox VE 7.4\u7248\u672c\uff08\u8fd9\u4e2a\u662f\u5199\u672c\u6587\u7684\u65f6\u95f4\uff0c\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u4e86\uff09\uff0c\u914d\u7f6e\u5b83\u81ea\u8eab\u7684\u7f51\u7edc\u3002<\/p>\n\n\n\n<p>\u4e3b\u8981\u529f\u80fd\u5c31\u662f\uff0c<\/p>\n\n\n\n<p>1\u3001\u5efa\u7acb\u4e00\u4e2a\u7f51\u53e3\u6c47\u805a\uff0c\u5305\u542b\u7f51\u53e32\u30013\u30014\uff0c\u540d\u4e3abond0\uff0c\u5de5\u4f5c\u5728\u8d1f\u8f7d\u8f6e\u5faa\u6a21\u5f0f<\/p>\n\n\n\n<p>2\u3001\u5efa\u7acb\u4e00\u4e2a\u865a\u673a\u7f51\u6865vmbr0\uff0c\u8bbe\u7f6e\u4e00\u4e2a\u79c1\u7f51\u7684\u5730\u5740\uff0c\u6865\u63a5\u5230bond0\uff0c\u7f51\u5173\u8bbe\u7f6e\u4e3a\u5728\u8def\u7531\u865a\u62df\u673a\u7684\u865a\u62df\u7f51\u5361\u4e0a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\nroot@pve:\/etc\/network# cat interfaces\n# network interface settings; autogenerated\n# Please do NOT modify this file directly, unless you know what\n# you're doing.\n#\n# If you want to manage parts of the network configuration manually,\n# please utilize the 'source' or 'source-directory' directives to do\n# so.\n# PVE will preserve these directives, but will NOT read its network\n# configuration from sourced files, so do not attempt to move any of\n# the PVE managed interfaces into external files!\n\nauto lo\niface lo inet loopback\n\niface enp1s0 inet manual\n\niface enp2s0 inet manual\n\niface enp3s0 inet manual\n\niface enp4s0 inet manual\n\nauto bond0\niface bond0 inet manual\n        bond-slaves enp2s0 enp3s0 enp4s0\n        bond-miimon 100\n        bond-mode balance-rr\n\nauto vmbr0\niface vmbr0 inet static\n\taddress 10.25.50.75\/24\n\tgateway 10.25.50.1\n\tbridge-ports bond0\n\tbridge-stp off\n\tbridge-fd 0\n\nroot@pve:\/etc\/network# <\/pre>\n\n\n\n<p><em>\u00d7 \u56e0\u4e3a\uff0c\u6211\u5c31\u4e0b\u8054\u4e00\u4e2a\u666e\u901a\u7684\u8def\u7531\u5668\uff0c\u666e\u901a\u8def\u7531\u5668\uff0c\u6211\u6682\u65f6\u6ca1\u6709\u4e702.5G WAN\u53e3\u7684\u6b3e\u5f0f\uff0c\u65e5\u5e38bond0\u4e5f\u5c31\u4e00\u4e2a\u53e3Active\uff0c\u901f\u7387\u5411\u4e0b\u9002\u914d\u5230\u5343\u5146\uff0c\u6d41\u4e0b\u8d2b\u7a77\u7684\u773c\u6cea\u3002<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">root@pve:\/etc\/network# cat  \/proc\/net\/bonding\/bond0\nEthernet Channel Bonding Driver: v5.19.17-2-pve\n\nBonding Mode: load balancing (round-robin)\nMII Status: up\nMII Polling Interval (ms): 100\nUp Delay (ms): 0\nDown Delay (ms): 0\nPeer Notification Delay (ms): 0\n\nSlave Interface: enp2s0\nMII Status: down\nSpeed: Unknown\nDuplex: Unknown\nLink Failure Count: 0\nPermanent HW addr: 60:be:b4:08:fd:72\nSlave queue ID: 0\n\nSlave Interface: enp3s0\nMII Status: up\nSpeed: <strong>1000 Mbps<\/strong>  <em>&lt;-- \u56e0\u4e3a\u63a5\u7684\u666e\u901a\u5343\u5146\u8def\u7531\u5668\u53d1\u5c04WIFI\u4fe1\u53f7\uff0c\u6545\u800c\u8fd9\u4e2a2.5G\u53e3\u5de5\u4f5c\u5728\u5343\u5146\u901f\u7387<\/em>\nDuplex: full\nLink Failure Count: 1\nPermanent HW addr: 60:be:b4:08:fd:73\nSlave queue ID: 0\n\nSlave Interface: enp4s0\nMII Status: down\nSpeed: Unknown\nDuplex: Unknown\nLink Failure Count: 0\nPermanent HW addr: 60:be:b4:08:fd:74\nSlave queue ID: 0\nroot@pve:\/etc\/network# <\/pre>\n\n\n\n<p><strong>\u6bb5\u843d3\u3001PVE\u573a\u666f\u4e0b\uff0c\u6dfb\u52a0 OpenWRT\u8def\u7531 VM<\/strong><\/p>\n\n\n\n<p>\u5b89\u88c5\u4e00\u4e2aOpenWRT\u6216\u8005\u7231\u5feb\u7684\u8def\u7531VM\u7cfb\u7edf\uff0c\u5176\u5b9e\u975e\u5e38\u7b80\u5355\uff0c\u8fd9\u91cc\u4ee5OpenWRT\u793a\u4f8b\uff0c\u5c31\u5728PVE\u7684shell\u73af\u5883\u4e0b\uff0c\u521b\u5efa\u4e00\u4e2a\u865a\u673a\uff08\u4e0d\u542b\u786c\u76d8\uff09\uff0c\u901a\u5e38\u89c4\u683c\u6765\u8bf42\u6838\u5fc32GB\u5185\u5b5810GB\u78c1\u76d8\uff0c\u8db3\u591fOpenWRT\u4f7f\u7528\uff0c\u786e\u4fddVMID\u65e0\u8bef\uff0c\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\uff0c\u8fdb\u884c\u521b\u5efa\u78c1\u76d8\u7684\u8fc7\u7a0b<\/p>\n\n\n\n<p>\u53c2\u6570 102\uff0c\u9700\u8981\u4fee\u6539\u4e3a\uff0c\u4f60\u81ea\u5df1OpenWRT\u7684VMID<\/p>\n\n\n\n<p>\u53c2\u6570 \/var\/lib\/vz\/template\/iso\/openwrt-22.03.4-x86-generic-generic-squashfs-combined.img\uff0c\u662f\u5728\u4e0a\u4f20img\u955c\u50cf\u5230PVE\u65f6\u5019\uff0c\u53ef\u4ee5\u770b\u5230\u7684\u4e0a\u4f20\u8def\u5f84<\/p>\n\n\n\n<p>\u53c2\u6570 local-lvm\uff0c\u4e00\u822c\u5c31\u662f\u9ed8\u8ba4\u7684\uff0c\u540e\u7eedVM\u7684\u78c1\u76d8\uff0c\u53ef\u4ee5\u8fc1\u79fb\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">qm importdisk 102 \/var\/lib\/vz\/template\/iso\/openwrt-22.03.4-x86-generic-generic-squashfs-combined.img local-lvm<\/pre>\n\n\n\n<p>\u5728OpenWRT\u865a\u673aVM\uff0c\u786c\u4ef6\u754c\u9762\uff0c\u9009\u62e9\u521a\u521a\u751f\u6210\u7684\u786c\u76d8\uff0c\u52a0\u8f7d\uff0c\u4e00\u822c\uff0c\u6211\u559c\u6b22\u628a\u5b83\u5bb9\u91cf\u589e\u52a0\u4e00\u70b9\uff0c\u70b9\u51fb\u8be5\u786c\u76d8\uff0c\u78c1\u76d8\u64cd\u4f5c\uff0c\u589e\u52a0\u5bb9\u91cf\u523011GB\u3002<\/p>\n\n\n\n<p>\u5728OpenWRT\u865a\u673aVM\uff0c\u9009\u9879\u754c\u9762\uff0c\u5f00\u673a\u81ea\u542f\u52a8\uff08\u5f00\u542f\uff09\uff0c\u5f15\u5bfc\u987a\u5e8f\uff08\u9009\u62e9\u521a\u521a\u6269\u5bb9\u597d\u7684\u90a3\u4e2a\u78c1\u76d8scsi0\uff09<\/p>\n\n\n\n<p>\u5728OpenWRT\u865a\u673aVM\uff0c\u786c\u4ef6\u754c\u9762\uff0c\u6dfb\u52a0\u7f51\u5361\u76f4\u901a\uff0c\u9009\u62e9\u6dfb\u52a0\uff0c\u9009\u62e9PCI\u8bbe\u5907\uff0c\u9009\u4e2d\u8981\u76f4\u901a\u7684\u7f51\u53e3<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"824\" height=\"390\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-53-02.png\" alt=\"\" class=\"wp-image-3271\" srcset=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-53-02.png 824w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-53-02-768x363.png 768w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-53-02-624x295.png 624w\" sizes=\"(max-width: 824px) 100vw, 824px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"891\" height=\"410\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-55-31.png\" alt=\"\" class=\"wp-image-3272\" srcset=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-55-31.png 891w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-55-31-768x353.png 768w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-22-55-31-624x287.png 624w\" sizes=\"(max-width: 891px) 100vw, 891px\" \/><\/figure>\n\n\n\n<p>\u5b8c\u6210\u4e0a\u9762\u7684\u8bbe\u7f6e\u540e\uff0c\u5c31\u53ef\u4ee5\u5f00\u673a\u8fd9\u53f0OpenWRT\u4e86\u3002<\/p>\n\n\n\n<p>\u5728OpenWRT\u865a\u673aVM\uff0c\u63a7\u5236\u53f0\u9875\u9762<\/p>\n\n\n\n<p>\u4fee\u6539LAN\u7684\u5730\u5740\u6bb5\uff0c\u8fd9\u4e2a\u6709\u4e86\uff0c\u8fd9\u4e2aVLAN\u7f51\u5173\u5c31\u6709\u4e86\uff0c\u5982\u6709\u5fc5\u8981passwd\u547d\u4ee4\uff0c\u4fee\u6539\u4e00\u4e0b\u7cfb\u7edf\u7684\u5bc6\u7801\uff0c\u4e0d\u4f7f\u7528\u9ed8\u8ba4\u5bc6\u7801\uff0c\u517b\u6210\u4e00\u4e2a\u5b89\u5168\u7684\u597d\u4e60\u60ef\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/etc\/config\/network  -->  LAN --> option ipaddr '10.25.50.1'<\/pre>\n\n\n\n<p>\u8fd9\u91cc\uff0c\u8bbe\u7f6e\u7f51\u5361\u65f6\u5019\uff0c\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5982\u6709eth0\uff0ceth1\u4e24\u4e2aOpenWRT\u5185\u90e8\u7f51\u5361\u540d\u79f0\uff0c\u4e00\u4e2a\u662f\u6865\u63a5vmbr0\u7684\u865a\u62df\u7f51\u5361\uff0c\u4e00\u4e2a\u662f\u76f4\u901a\u7f51\u53e3\uff0c\u53ef\u4ee5\u901a\u8fc7MAC\u5730\u5740\u533a\u5206\u54ea\u4e2a\u662f\u54ea\u4e2a\u3002<\/p>\n\n\n\n<p>\u6211\u4e0b\u56fe\u8bbe\u7f6e\u7684\uff0cLAN\u662f\u8d70\u7684\u6865\u63a5vmbr0\u7684 eth0 \uff0c\u4e0a\u8054\u7684WAN\u8d70\u7684\u76f4\u901a\u53e3\uff0c\u5de5\u4f5c\u5728\u62e8\u53f7PPPoE\u8fd8\u662fDHCP\uff0c\u5c31\u770b\u4f60\u81ea\u5df1\u5b9e\u9645\u60c5\u51b5\u4e86\u3002<\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"374\" height=\"219\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-23-02-13.png\" alt=\"\" class=\"wp-image-3277\"\/><\/figure><\/div>\n\n\n<p>\u81f3\u6b64\uff0c\u8fd9\u4e2a\u7f51\u7edc\u5c31\u7b97OK\u4e86\uff0c\u5176\u4ed6\u865a\u673a\uff0c\u53ea\u8981\u865a\u62df\u7f51\u5361\u6865\u63a5\u5230vmbr0\u8fd9\u4e2a\u5373\u53ef\u3002<\/p>\n\n\n\n<p><strong>\u6bb5\u843d4\u3001\u67b6\u6784\u793a\u610f\u56fe<\/strong><\/p>\n\n\n\n<p>\u5927\u81f4\u7684\u67b6\u6784\u62d3\u6251\u793a\u610f\u56fe\uff0c\u53ef\u6839\u636e\u5b9e\u9645\u9700\u8981\u4fee\u6539\u529f\u80fd<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-default\"><img decoding=\"async\" loading=\"lazy\" width=\"1894\" height=\"1052\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-23-20-18.png\" alt=\"\" class=\"wp-image-3296\" srcset=\"https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-23-20-18.png 1894w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-23-20-18-768x427.png 768w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-23-20-18-1536x853.png 1536w, https:\/\/dasmz.com\/wp-content\/uploads\/2023\/05\/Screenshot-from-2023-05-18-23-20-18-624x347.png 624w\" sizes=\"(max-width: 1894px) 100vw, 1894px\" \/><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n\n\n\n<p><strong>\u9644\u5f551\u3001<\/strong><\/p>\n\n\n\n<p>\u535a\u5ba2\u5185\uff0c\u6240\u6709\u6559\u7a0b\u4e3a\u624b\u6253\u539f\u521b\u6559\u7a0b\uff0c\u5982\u679c\u6280\u672f\u6559\u7a0b\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u6b22\u8fce\u6253\u8d4f\u4f5c\u8005<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u535a\u5ba2\u5185\u5df2\u63d0\u53ca\u7684\u4e13\u4e1a\u77e5\u8bc6\uff0c\u5982\u679c\u9700\u8981\u6280\u672f\u6307\u5bfc\uff0c\u6b22\u8fce\u8054\u7cfb\u6211\uff0c\u4ec5\u9700\u652f\u4ed8\u5de5\u65f6\u8d39<\/p>\n\n\n\n<p>Twitter: <a href=\"https:\/\/twitter.com\/fdmove\">Dasmz<\/a><\/p>\n\n\n\n<p>Youtube: <a href=\"https:\/\/www.youtube.com\/@DasmzStudio\" data-type=\"URL\" data-id=\"https:\/\/www.youtube.com\/@DasmzStudio\">@DasmzStudio<\/a><\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"574\" height=\"446\" src=\"https:\/\/dasmz.com\/wp-content\/uploads\/2020\/12\/DONATE.jpg\" alt=\"Donate\" class=\"wp-image-18\"\/><figcaption class=\"wp-element-caption\">\u4e91\u4e5e\u8ba8<\/figcaption><\/figure><\/div>","protected":false},"excerpt":{"rendered":"<p>\u6bb5\u843d1\u3001\u9700\u6c42\u63cf\u8ff0 \u57fa\u4e8e\u524d\u9762\u8bb2\u8fc7\u7684N5105\u8bbe\u5907\uff0c\u7531\u4e8e\u5b83\u56db\u4e2aLAN\u53e3\u90fd\u662f2.5Gbps\u7684\uff0c\u5411\u4e0b\u53ef\u4ee5\u81ea\u9002\u5e94\u5230\u5343\u5146\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/3201"}],"collection":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3201"}],"version-history":[{"count":14,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/3201\/revisions"}],"predecessor-version":[{"id":3299,"href":"https:\/\/dasmz.com\/index.php?rest_route=\/wp\/v2\/posts\/3201\/revisions\/3299"}],"wp:attachment":[{"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dasmz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}