{"id":416,"date":"2026-07-20T20:00:41","date_gmt":"2026-07-20T12:00:41","guid":{"rendered":"http:\/\/www.tantan.ink\/index.php\/2026\/07\/20\/%e6%8a%8a%e5%b1%80%e5%9f%9f%e7%bd%91%e9%87%8c%e7%9a%84%e8%ae%be%e5%a4%87%e5%85%a8%e7%99%bb%e8%ae%b0%e4%ba%86%e4%b8%80%e9%81%8d\/"},"modified":"2026-07-20T20:00:43","modified_gmt":"2026-07-20T12:00:43","slug":"%e6%8a%8a%e5%b1%80%e5%9f%9f%e7%bd%91%e9%87%8c%e7%9a%84%e8%ae%be%e5%a4%87%e5%85%a8%e7%99%bb%e8%ae%b0%e4%ba%86%e4%b8%80%e9%81%8d","status":"publish","type":"post","link":"https:\/\/www.tantan.ink\/index.php\/2026\/07\/20\/%e6%8a%8a%e5%b1%80%e5%9f%9f%e7%bd%91%e9%87%8c%e7%9a%84%e8%ae%be%e5%a4%87%e5%85%a8%e7%99%bb%e8%ae%b0%e4%ba%86%e4%b8%80%e9%81%8d\/","title":{"rendered":"\u628a\u5c40\u57df\u7f51\u91cc\u7684\u8bbe\u5907\u5168\u767b\u8bb0\u4e86\u4e00\u904d"},"content":{"rendered":"<p>\u5bb6\u91cc\u7684\u8bbe\u5907\u8d8a\u6765\u8d8a\u591a\uff0c\u8def\u7531\u5668\u540e\u53f0\u4e00\u6253\u5f00\u5c31\u662f\u51e0\u5341\u4e2a IP \u548c MAC \u5730\u5740\uff0c\u80fd\u8ba4\u51fa\u6765\u7684\u6ca1\u51e0\u4e2a\u3002NAS \u662f\u54ea\u4e2a\uff1f\u667a\u80fd\u97f3\u7bb1\u662f\u54ea\u4e2a\uff1f\u7535\u89c6\u76d2\u5b50\u662f\u54ea\u4e2a\uff1f\u5168\u7cca\u5728\u4e00\u8d77\u3002\u6709\u65f6\u5019\u591a\u4e86\u4e00\u53f0\u8bbe\u5907\u4e5f\u4e0d\u77e5\u9053\u4ec0\u4e48\u65f6\u5019\u8fde\u4e0a\u6765\u7684\u3002<\/p>\n<p>\u524d\u51e0\u5929\u5728 GitHub \u4e0a\u770b\u5230 <strong>LanLens<\/strong>\uff0c\u4e00\u4e2a\u4e13\u95e8\u505a\u5c40\u57df\u7f51\u8bbe\u5907\u76d8\u70b9\u7684\u81ea\u6258\u7ba1\u5de5\u5177\u3002\u626b\u4e86\u4e00\u4e0b\u4ee3\u7801\u5e93\uff0c353 \u6b21\u63d0\u4ea4\uff0cMIT \u534f\u8bae\uff0c\u66f4\u65b0\u5f88\u52e4\u5feb\u2014\u2014\u6700\u65b0\u4e00\u6b21\u63d0\u4ea4\u5c31\u4e24\u5929\u524d\u3002\u51b3\u5b9a\u5728 NAS \u4e0a\u8dd1\u8d77\u6765\u8bd5\u8bd5\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/dashboard.png\" alt=\"LanLens \u4eea\u8868\u76d8\" \/><\/p>\n<h2>\u90e8\u7f72\u4e0d\u7b97\u590d\u6742\uff0c\u4f46\u6709\u51e0\u4e2a\u5751<\/h2>\n<p>LanLens \u7528 Docker \u8dd1\uff0c\u4e00\u6761\u547d\u4ee4\u7684\u4e8b\u3002\u4f46\u5b83\u8981\u505a ARP \u626b\u63cf\uff0c<strong>\u5fc5\u987b\u7528 host \u7f51\u7edc\u6a21\u5f0f<\/strong>\uff0c\u4e0d\u80fd\u8d70 bridge\u2014\u2014\u5426\u5219\u6293\u4e0d\u5230 MAC \u5730\u5740\u3002\u8fd9\u610f\u5473\u7740\u5bb9\u5668\u76f4\u63a5\u5171\u4eab\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u6808\uff0c\u7aef\u53e3\u51b2\u7a81\u8981\u6ce8\u610f\u3002<\/p>\n<p>\u6211\u7684 NAS \u4e0a\u5df2\u7ecf\u8dd1\u4e86\u4e0d\u5c11\u670d\u52a1\uff0c7765 \u7aef\u53e3\u5012\u6ca1\u88ab\u5360\uff0c\u76f4\u63a5\u542f\u52a8\u5c31\u597d\u3002\u7b2c\u4e00\u6b21\u8bbf\u95ee\u7528 <code>admin \/ admin<\/code> \u767b\u5f55\uff0c\u8fdb\u53bb\u540e\u5f3a\u5236\u6539\u5bc6\u7801\u2014\u2014\u8fd9\u70b9\u6bd4\u5f88\u591a\u540c\u7c7b\u5de5\u5177\u9760\u8c31\uff0c\u81f3\u5c11\u6ca1\u5fd8\u4e86\u6700\u57fa\u672c\u7684\u5b89\u5168\u3002<\/p>\n<p>\u53e6\u4e00\u4e2a\u5bb9\u6613\u5ffd\u7565\u7684\u70b9\uff1a\u5982\u679c\u4f60\u7528\u7684\u662f Docker Compose\uff0c\u8bb0\u5f97\u6302 <code>\/data<\/code> \u76ee\u5f55\u505a\u6301\u4e45\u5316\u3002LanLens \u7528 SQLite \u5b58\u6240\u6709\u6570\u636e\uff0c\u76ee\u5f55\u4e22\u4e86\u5c31\u767d\u626b\u4e86\u3002\u5b98\u65b9\u7684\u4e00\u952e\u542f\u52a8\u811a\u672c\u5df2\u7ecf\u5e2e\u4f60\u5904\u7406\u597d\u4e86\uff0c\u76f4\u63a5\u7528\u5c31\u884c\u3002<\/p>\n<p>\u542f\u52a8\u4e4b\u540e\u5b83\u4f1a\u81ea\u52a8\u68c0\u6d4b\u4f60\u5f53\u524d\u6240\u5728\u7684\u5b50\u7f51\u5e76\u7acb\u5373\u5f00\u59cb ARP \u626b\u63cf\u3002\u6211\u7b49\u4e86\u5927\u6982 30 \u79d2\uff0cdashboard \u4e0a\u5df2\u7ecf\u5f00\u59cb\u51fa\u73b0\u8bbe\u5907\u4e86\u3002<\/p>\n<h2>\u5b83\u80fd\u5e72\u4ec0\u4e48<\/h2>\n<p>\u6700\u6838\u5fc3\u7684\u529f\u80fd\u5c31\u4e00\u4e2a\uff1a<strong>\u7ed9\u5c40\u57df\u7f51\u91cc\u7684\u6bcf\u53f0\u8bbe\u5907\u5efa\u6863<\/strong>\u3002LanLens \u901a\u8fc7 ARP \u626b\u63cf\u53d1\u73b0\u8bbe\u5907\uff0c\u7528 MAC \u5730\u5740\u67e5 IEEE OUI \u6570\u636e\u5e93\u8bc6\u522b\u5382\u5546\uff0c\u7136\u540e\u4f60\u53ef\u4ee5\u7ed9\u6bcf\u53f0\u8bbe\u5907\u52a0\u540d\u5b57\u3001\u5907\u6ce8\u3001\u6807\u7b7e\u3001\u4f4d\u7f6e\uff0c\u751a\u81f3\u8bb0\u5f55\u5b83\u8dd1\u4e86\u54ea\u4e9b\u670d\u52a1\u3001\u5f00\u4e86\u54ea\u4e9b\u7aef\u53e3\u3002<\/p>\n<p>\u6bd4\u8def\u7531\u5668\u540e\u53f0\u5f3a\u7684\u5730\u65b9\u5728\u4e8e\uff1a<\/p>\n<ul>\n<li>\u80fd\u8bc6\u522b\u5382\u5546\u2014\u2014iPhone \u662f Apple \u7684\uff0c\u7535\u89c6\u662f Samsung \u7684\uff0c\u4e0d\u7528\u731c<\/li>\n<li>\u80fd\u770b\u5230\u6bcf\u53f0\u8bbe\u5907\u7684 IP \u53d8\u66f4\u5386\u53f2\u548c\u5728\u7ebf\u65f6\u95f4\u7ebf\uff0c\u6bd4\u5982&#8221;NAS \u6628\u5929\u51cc\u6668\u65ad\u7f51\u4e86 3 \u5206\u949f&#8221;<\/li>\n<li>DHCP \u76d1\u63a7\u80fd\u53d1\u73b0\u7f51\u5185\u6709\u6ca1\u6709\u4e0d\u660e DHCP \u670d\u52a1\u5668\u2014\u2014\u8fd9\u5728\u5bb6\u7528\u573a\u666f\u4e0d\u5e38\u89c1\uff0c\u4f46\u5982\u679c\u8f6f\u8def\u7531\u914d\u7f6e\u4e71\u4e86\u5c31\u53ef\u80fd\u51fa\u95ee\u9898<\/li>\n<li>\u62d3\u6251\u56fe\u53ef\u4ee5\u770b\u8bbe\u5907\u4e4b\u95f4\u7684\u8fde\u63a5\u5173\u7cfb\u2014\u2014\u524d\u63d0\u662f\u542f\u7528\u4e86 SNMP \u6216 LLDP\uff08\u5927\u90e8\u5206\u5bb6\u7528\u4ea4\u6362\u673a\u6ca1\u6709\uff09<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/topology.png\" alt=\"LanLens \u7f51\u7edc\u62d3\u6251\" \/><\/p>\n<p>\u8fd8\u6709\u4e00\u4e2a\u8ba9\u6211\u89c9\u5f97\u633a\u5b9e\u7528\u7684\u7ec6\u8282\uff1a\u8bbe\u5907\u8be6\u60c5\u9875\u91cc\u80fd\u770b\u5230 24 \u5c0f\u65f6\u5728\u7ebf\u65f6\u95f4\u7ebf\u3002\u6392\u67e5\u8bbe\u5907\u534a\u591c\u6389\u7ebf\u518d\u4e5f\u4e0d\u7528\u7ffb\u8def\u7531\u5668\u65e5\u5fd7\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.tantan.ink\/wp-content\/uploads\/2026\/07\/device-detail.png\" alt=\"LanLens \u8bbe\u5907\u8be6\u60c5\" \/><\/p>\n<h2>\u8bf4\u5b9e\u8bdd\uff0c\u6709\u4e9b\u529f\u80fd\u6211\u7528\u4e0d\u4e0a<\/h2>\n<p>LanLens 1.5.6 \u4e4b\u540e\u7684\u7248\u672c\u52a0\u4e86\u4e0d\u5c11\u4f01\u4e1a\u7ea7\u529f\u80fd\u2014\u2014SNMP \u4ea4\u6362\u673a\u7aef\u53e3\u7edf\u8ba1\u3001LLDP\/CDP \u88ab\u52a8\u53d1\u73b0\u3001CMDB\/i-doit \u5bfc\u51fa\u2014\u2014\u8fd9\u4e9b\u5728\u5bb6\u7528\u73af\u5883\u57fa\u672c\u7528\u4e0d\u5230\u3002\u9664\u975e\u4f60\u5bb6\u4ea4\u6362\u673a\u652f\u6301 SNMP \u4e14\u4f60\u6709\u5fc3\u60c5\u53bb\u914d\uff0c\u5426\u5219\u8fd9\u4e9b\u53ea\u662f\u589e\u52a0\u4e86\u83dc\u5355\u680f\u7684\u590d\u6742\u5ea6\u3002<\/p>\n<p>\u4f46\u597d\u5728\u5b83\u662f\u6a21\u5757\u5316\u7684\uff0c\u4e0d\u914d\u7f6e\u5c31\u4e0d\u4f1a\u6253\u6270\u4f60\u3002\u6838\u5fc3\u7684 ARP \u626b\u63cf + \u8bbe\u5907\u5efa\u6863 + \u5728\u7ebf\u65f6\u95f4\u7ebf\u5df2\u7ecf\u8db3\u591f\u6ee1\u8db3&#8221;\u641e\u6e05\u695a\u5bb6\u91cc\u5230\u5e95\u6709\u591a\u5c11\u8bbe\u5907&#8221;\u8fd9\u4e2a\u9700\u6c42\u4e86\u3002<\/p>\n<p>\u901a\u77e5\u529f\u80fd\u652f\u6301 Telegram\u3001Webhook \u548c\u90ae\u4ef6\u3002\u6211\u914d\u4e86 Telegram\uff0c\u65b0\u8bbe\u5907\u4e0a\u7ebf\u65f6\u63a8\u4e00\u6761\u6d88\u606f\u3002\u914d\u8d77\u6765\u4e0d\u9ebb\u70e6\uff0c\u5728 Settings \u91cc\u586b\u4e2a bot token \u548c chat ID \u5c31\u884c\u3002<\/p>\n<h2>\u8ddf\u5176\u4ed6\u5de5\u5177\u5bf9\u6bd4<\/h2>\n<p>\u540c\u7c7b\u4ea7\u54c1\u91cc\u6211\u8bd5\u8fc7\u51e0\u4e2a\u3002Pi-hole \u66f4\u591a\u662f DNS \u5c42\u9762\u7684\u5e7f\u544a\u62e6\u622a\uff0c\u8bbe\u5907\u5217\u8868\u53ea\u662f\u9644\u5e26\u529f\u80fd\u3002NetAlertX \u529f\u80fd\u66f4\u590d\u6742\u4f46 UI \u592a\u8001\u4e86\u3002LanLens \u7684\u5b9a\u4f4d\u5f88\u660e\u786e\u2014\u2014<strong>\u8bbe\u5907\u76d8\u70b9\u7b2c\u4e00\uff0c\u76d1\u63a7\u7b2c\u4e8c<\/strong>\uff0c\u4e0d\u662f\u76d1\u63a7\u7cfb\u7edf\uff0c\u800c\u662f\u4e00\u4e2a&#8221;\u4f60\u5bb6\u91cc\u90fd\u8fde\u4e86\u5565&#8221;\u7684\u6863\u6848\u672c\u3002<\/p>\n<p>\u8d44\u6e90\u5360\u7528\u4e5f\u4e0d\u9ad8\u3002\u5728\u6211\u7684 NAS \u4e0a\u8dd1\u4e86\u51e0\u5929\uff0c\u5185\u5b58\u5927\u6982 80-100MB\uff0cCPU \u51e0\u4e4e\u4e0d\u52a8\u3002SQLite \u6570\u636e\u5e93\u5230\u73b0\u5728\u4e0d\u5230 5MB\u3002<\/p>\n<h2>\u5e95\u7ebf<\/h2>\n<p>\u5982\u679c\u4f60\u7684\u8def\u7531\u5668\u540e\u53f0\u5df2\u7ecf\u6709\u6e05\u6670\u7684\u8bbe\u5907\u5217\u8868\u548c\u5382\u5546\u8bc6\u522b\uff08\u6bd4\u5982\u90e8\u5206\u9ad8\u7aef\u8def\u7531\u5668\u7684\u624b\u673a App \u505a\u5f97\u4e0d\u9519\uff09\uff0cLanLens \u6ca1\u4ec0\u4e48\u7279\u522b\u7684\u4ef7\u503c\u3002\u4f46\u5982\u679c\u4f60\u8ddf\u6211\u4e00\u6837\uff0c\u8def\u7531\u5668\u540e\u53f0\u53ea\u662f\u51b7\u51b0\u51b0\u7684 IP \u548c MAC \u5730\u5740\uff0c\u90a3\u82b1 5 \u5206\u949f\u90e8\u7f72\u4e00\u4e2a LanLens\uff0c\u628a\u5bb6\u91cc\u7684\u8bbe\u5907\u6328\u4e2a\u6807\u4e0a\u540d\u5b57\uff0c\u8fd8\u662f\u633a\u723d\u7684\u3002<\/p>\n<p>\u9879\u76ee\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/AlexRosbach\/LanLens\" target=\"_blank\" rel=\"noopener\">github.com\/AlexRosbach\/LanLens<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5bb6\u91cc\u7684\u8bbe\u5907\u8d8a\u6765\u8d8a\u591a\uff0c\u8def\u7531\u5668\u540e\u53f0\u4e00\u6253\u5f00\u5c31\u662f\u51e0\u5341\u4e2a IP \u548c MAC \u5730\u5740\uff0c\u80fd\u8ba4\u51fa\u6765\u7684\u6ca1\u51e0\u4e2a\u3002NAS \u662f\u54ea\u4e2a\uff1f\u667a\u80fd &#8230; <a title=\"\u628a\u5c40\u57df\u7f51\u91cc\u7684\u8bbe\u5907\u5168\u767b\u8bb0\u4e86\u4e00\u904d\" class=\"read-more\" href=\"https:\/\/www.tantan.ink\/index.php\/2026\/07\/20\/%e6%8a%8a%e5%b1%80%e5%9f%9f%e7%bd%91%e9%87%8c%e7%9a%84%e8%ae%be%e5%a4%87%e5%85%a8%e7%99%bb%e8%ae%b0%e4%ba%86%e4%b8%80%e9%81%8d\/\" aria-label=\"\u9605\u8bfb \u628a\u5c40\u57df\u7f51\u91cc\u7684\u8bbe\u5907\u5168\u767b\u8bb0\u4e86\u4e00\u904d\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":2,"featured_media":417,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[176,163],"tags":[],"class_list":["post-416","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hands-on","category-network"],"_links":{"self":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/416","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/comments?post=416"}],"version-history":[{"count":1,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/416\/revisions"}],"predecessor-version":[{"id":420,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/posts\/416\/revisions\/420"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media\/417"}],"wp:attachment":[{"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/media?parent=416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/categories?post=416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tantan.ink\/index.php\/wp-json\/wp\/v2\/tags?post=416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}