{"id":219,"date":"2019-07-15T17:21:46","date_gmt":"2019-07-15T09:21:46","guid":{"rendered":"http:\/\/jc.a300.cn/luyouwang\/?p=219"},"modified":"2019-07-15T17:23:43","modified_gmt":"2019-07-15T09:23:43","slug":"lede%e5%9b%ba%e4%bb%b6%ef%bc%9a%e4%b8%8d%e7%94%a8vlan%e4%ba%a4%e6%8d%a2%e6%9c%ba%e7%9a%84%e5%8d%95%e7%ba%bf%e5%a4%8d%e7%94%a8%ef%bc%8c%e7%94%b5%e4%bf%a1%e7%a7%bb%e5%8a%a8iptv","status":"publish","type":"post","link":"http:\/\/jc.a300.cn/luyouwang\/219.html","title":{"rendered":"LEDE\u56fa\u4ef6\uff1a\u4e0d\u7528vlan\u4ea4\u6362\u673a\u7684\u5355\u7ebf\u590d\u7528\uff0c\u7535\u4fe1+\u79fb\u52a8+IPTV"},"content":{"rendered":"
\u7ecf\u5e38\u770b\u5230\u8bba\u575b\u91cc\u5355\u7ebf\u590d\u7528\u90fd\u662f\u7f51\u4ef6vlan\u4ea4\u6362\u673a\uff0c\u52a8\u8f84\u5927\u51e0\u767e\u7684\u7f51\u7ba1\u4ea4\u6362\u673a\uff0c\u6211\u770b\u4e86\u5b9e\u5728\u662f\u4e0b\u4e0d\u53bb\u8fd9\u4e2a\u624b\u3002
\u800c\u4e14\u6211\u76842\u8def\u5bbd\u5e26\u5404200\u5146\uff0c\u4e24\u4e2a\u53e0\u52a0\u8dd1\u6ee1\u4e86\u6491\u6b7b500M\u3002
\u51ed\u7740\u9605\u8bfb\u4e86\u65e0\u6570\u7684vlan\u3001iptv\u3001\u5355\u7ebf\u590d\u7528\u7684\u5e16\u5b50\uff0c\u7ec8\u4e8e\u878d\u4f1a\u8d2f\u901a\uff0c\u5f97\u51fa\u4e86\u4e00\u4e2a\u4e0d\u7528\u4ea4\u6362\u673a\uff0c\u80fd\u591f\u5355\u7ebf\u590d\u7528\u4f20\u8f93\u7535\u4fe1+\u79fb\u52a8+iptv\u7684\u65b9\u6848\u3002
\u7406\u8bba\u4e0a\uff0c\u53ea\u8981\u4e3b\u8def\u7531\u652f\u6301vlan\u8bbe\u7f6e\uff0c\u90fd\u80fd\u6210\u529f\uff0c\u4efb\u4f552\u8def\u5bbd\u5e26+iptv\u4e5f\u90fd\u80fd\u8d70\u8fd9\u4e2a\u65b9\u6848
\u5148\u4e0a\u4e2a\u56fe\u8bb2\u4e00\u4e0b\u6211\u7684\u601d\u8def<\/p>\n
<\/p>\n
a\u7ebf\u8def\u7535\u4fe1
\u719f\u6089\u7684\u8d1d\u5c14E-140W-P\uff0c\u5149\u732bIP\u5b9a\u4e49\u4e3a192.168.1.X\uff0c\u540c\u65f6\u5173\u95edDHCP<\/p>\n
\u4e00\u3001IPTV\u7684vlan<\/strong><\/p>\n \u7531\u4e8e\u6211\u9700\u8981\u4e00\u4e2a4k\u548c\u4e00\u4e2a\u6807\u6e05\uff0c\u6240\u4ee5lan2\u7aef\u53e3\u7ed1\u5b9a\uff0clan3\u4e0a\u7ed1\u5b9avlan85\uff0c\u540c\u65f6\u6211\u8fd8\u9700\u8981\u5728\u8f6f\u8def\u7531\u4e0a\u5b9e\u73b0udpxy\u4e2d\u8f6c\uff0c\u8ba9\u6240\u6709\u8bbe\u5907\u90fd\u53ef\u4ee5\u89c2\u770biptv\uff0c\u5e94\u6b64\u6211\u5728lan1\u4e0a\u4e5f\u7ed1\u5b9a\u4e86vlan85<\/p>\n <\/p>\n \u4e8c\u3001PPPOE\u7684vlan<\/strong><\/p>\n \u6211\u4f7f\u7528\u7684\u662f\u4e0a\u6d77\u7535\u4fe1\uff0cinternet\u662f\u6ca1\u6709vlan\u7684\uff0c\u597d\u5728\u8d1d\u5c14E-140W-P\u662f\u652f\u6301\u81ea\u5df1\u5b9a\u4e49\u4e00\u4e2avlan\u7684\uff0c\u5148\u628a\u670d\u52a1\u6a21\u5f0f\u6539\u4e3aother\uff0c\u518d\u5728lan1\u7684vlan1\u7684\u6846\u91cc\u8f93\u51652\uff0c\u8fd9\u6837\u7535\u4fe1\u7684PPPOE\u5c31\u88ab\u6211\u81ea\u5b9a\u4e49\u6210\u4e86vlan2<\/p>\n <\/p>\n \u4e09\u3001lan4\u7559\u7740\u63a5\u5176\u4ed6\u8fd0\u8425\u5546\u7684\u5bbd\u5e26<\/strong><\/p>\n b\u7ebf\u8def\u79fb\u52a8 <\/p>\n 2\u3001<\/strong>\u4ece\u4efb\u610f\u53e3\u63a5\u7ebf\u5230\u7535\u4fe1\u5149\u732b\u7684lan4\uff0c\u6211\u662f\u4ece\u79fb\u52a8\u7684lan2\u63a5\u5230\u7535\u4fe1\u7684lan4\uff0c\u79fb\u52a8lan3\u7559\u7740\u8d70\u79fb\u52a8\u7684iptv<\/p>\n <\/p>\n a\u3001\u5bbf\u4e3b\u673a\u4e0a\u7684\u300e\u7f51\u7edc\u300f\u8bbe\u7f6e\uff0c\u5bbf\u4e3b\u673a\u6700\u4f4e\u8981\u6c42\u662f1\u4e2a\u7f51\u53e3\uff0c\u5f53\u7136\u53ea\u67091\u4e2a\u7f51\u53e3\u7684\u8bdd\uff0c\u65e0\u8bba\u662f\u5185\u7f51\u8fd8\u662f\u5916\u7f51\u80fd\u83b7\u5f97\u7684\u6700\u5927\u901f\u5ea6\u5e94\u8be5\u4e0d\u4f1a\u8d85\u8fc7500M\u3002\u591a\u7f51\u53e3\u7684\u8bdd\uff0c\u4ee5\u5168\u53cc\u5de5\u7684\u7406\u8bba\u901f\u5ea6\uff0c\u5185\u5916\u7f51\u7406\u8bba\u4e0a\u5e94\u8be5\u80fd\u8dd11000M\uff08\u5982\u679c\u6211\u7406\u89e3\u6709\u9519\uff0c\u6b22\u8fce\u6307\u6b63\uff09\uff0c\u6709\u4e07\u5146\u7684\u5e94\u8be5\u4e0d\u4f1a\u5728\u4e4e\u591a\u4e70\u4e2a\u7f51\u7ba1\u4ea4\u6362\u673a\u4e86\u3002<\/p>\n 1\u3001\u5148\u4f7f\u7528shell\u4fee\u6539\/etc\/network\/interfaces\uff0c\u7528shell\u6539\u662f\u56e0\u4e3a\u5728web\u754c\u9762\u662f\u6ca1\u6cd5\u52a0vlan\u7aef\u53e3\u7684\u3002iptv\u662fvlan85\uff0cpppoe\u6709\u4e00\u4e2a\u662fvlan2\uff0c\u6240\u4ee5\u8981\u5efa\u7acb2\u4e2alinux vlan\uff0c\u7531\u4e8e\u6211\u662f\u628aenp1s0\u4f5c\u4e3apve\u5bbf\u4e3b\u673a\u7684wan\u53e3\uff0c\u6240\u4ee5\u6211\u6dfb\u52a0\u7684vlan\u662fenp1s0.2\u548cenp1s0.85\u3002\u6539\u5b8c\u91cd\u542f\uff0c\u76f4\u63a5\u7528shell\u91cd\u542f\u7f51\u7edc\u670d\u52a1\u4e5f\u884c\uff0c\u4e0d\u8fc7\u6211\u91cd\u542f\u7f51\u7edc\u670d\u52a1\u5c31\u8fde\u4e0d\u4e0apve\u4e86\uff0c\u6700\u540e\u8fd8\u662f\u9009\u62e9\u91cd\u542f\u6574\u4e2apve<\/p>\n <\/p>\n 2\u3001<\/strong>\u91cd\u542f\u5b8c\uff0c\u76f4\u63a5\u5728\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc\u754c\u9762\u6dfb\u52a0linux bridge\uff0c\u628a\u521a\u624d\u65b0\u589e\u52a0\u7684\u4e24\u4e2alinux vlan\u5efa\u7acb\u5bf9\u5e94\u7684linux bridge\u3002 <\/p>\n <\/p>\n b\u3001LEDE\u865a\u62df\u673a\u8bbe\u7f6e<\/p>\n 1\u3001\u865a\u62df\u673a\u300e\u786c\u4ef6\u300f\u8bbe\u7f6e\uff0c\u628avmbr5\u6dfb\u52a0\u4e3anet5\uff0c\u628avmbr4\u6dfb\u52a0\u4e3anet4\u548cnet6\uff0c\u628avmbr7\u6dfb\u52a0\u4e3anet7<\/p>\n \u8fd9\u91cc\u8bb2\u4e00\u4e0b\u4e3a\u4ec0\u4e48vmbr4\u7528\u4e862\u6b21\uff0c\u56e0\u4e3a\u627f\u8f7dpppoe\u62e8\u53f7\u8fde\u63a5\u7684\u4ee5\u592a\u7f51\u5e27\u548c\u666e\u901a\u4f20\u8f93\u5185\u7f51\u6570\u636e\u7684\u4ee5\u592a\u7f51\u5e27\u7684\u5305\u5934\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u662f\u4e0d\u4f1a\u4e92\u76f8\u6df7\u6dc6\u7684\uff0c\u6240\u4ee5\u5728\u6211\u8fd9\u4e2a\u6848\u4f8b\u91cc\u4e0d\u6253vlan\u6807\u8bb0\u7684\u90e8\u5206\u4ecd\u7136\u627f\u8f7d\u4e862\u79cd\u4e0d\u540c\u7684\u6570\u636e\uff0c\u4e00\u79cd\u662f\u79fb\u52a8\u7684pppoe\u62e8\u53f7\u8fde\u63a5\uff0c\u4e00\u79cd\u662f\u901a\u8fc7pve\u5bbf\u4e3b\u673a\u7269\u7406wan\u53e3\u5411\u5149\u732b\u56de\u4f20\u7684lan\u6570\u636e\u3002<\/p>\n \u800c\u7531\u4e8e\u79fb\u52a8\u5149\u732b\u548c\u7535\u4fe1\u5149\u732b\u4ee5\u53caLEDE\u5185\u7f51\u90fd\u5b9a\u4e49\u5728\u540c\u4e00\u7f51\u6bb5\uff08192.168.1.xxx\uff09\uff0c\u56e0\u6b64\u57282\u4e2a\u5149\u732b\u4e0b\u4ecd\u7136\u53ef\u4ee5\u8fde\u63a5\u5230\u5185\u7f51\u3002<\/p>\n <\/p>\n 2\u3001LEDE\u7684\u8f6f\u4ef6\u8bbe\u7f6e<\/p>\n \u5982\u679cLEDE\u542f\u52a8\u540e\u7f51\u5361\u987a\u5e8f\u6ca1\u6709\u88ab\u6253\u4e71\u7684\u8bdd\uff0ceth0-3\u662f\u6b63\u5e38\u5bf9\u5e94\u7684\u7269\u7406lan\u53e3\uff0ceht4\u662f\u4ecepve\u5bbf\u4e3b\u673awan\u53e3\u56de\u4f20\u7684\u5185\u7f51\uff0ceth5\u5c31\u662f\u627f\u8f7dvlan2\u7684\u7535\u4fe1PPPOE\uff0ceth6\u5219\u662f\u5728pve\u5bbf\u4e3b\u673awan\u53e3\u4e0a\u627f\u8f7d\u7684\u79fb\u52a8PPPOE\uff0ceth7\u4f20\u8f93\u7684\u5c31\u662f\u7535\u4fe1IPTV\u7684UDP\u6570\u636e\u5305\u3002<\/p>\n <\/p>\n lan\u53e3\u5f00\u542fDHCP\uff0c\u5e76\u8bbe\u7f6e\u5f3a\u5236\u94fe\u8def\u548c\u5f3a\u5236DHCP\u3002<\/p>\n \u6700\u540e\u6d4b\u4e2a\u901f\uff1a<\/p>\n <\/p>\n <\/p>\n <\/p>\n \u5b8c\u7f8e\uff0c\u81f3\u6b64\uff0c\u4e0d\u8981\u591a\u82b1\u94b1\u7684\u5355\u7ebf\u590d\u7528\u5c31\u8bbe\u7f6e\u5b8c\u4e86\u3002\u5176\u4ed6\u7535\u4fe1iptv\u9700\u8981\u7684dnsmasq\u8bbe\u7f6e\uff0c\u4f18\u5316\u4ee5\u53ca\u7b56\u7565\u8def\u7531\u90e8\u5206\uff0c\u53ef\u4ee5\u53c2\u8003\u522b\u7684\u8d34\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":" \u7ecf\u5e38\u770b\u5230\u8bba\u575b\u91cc\u5355\u7ebf\u590d\u7528\u90fd\u662f\u7f51\u4ef6vlan\u4ea4\u6362\u673a\uff0c\u52a8\u8f84\u5927\u51e0\u767e\u7684\u7f51\u7ba1\u4ea4\u6362\u673a\uff0c\u6211\u770b\u4e86\u5b9e\u5728\u662f\u4e0b\u4e0d\u53bb\u8fd9\u4e2a\u624b\u3002\u800c\u4e14\u6211\u76842\u8def\u5bbd\u5e26\u5404200\u5146\uff0c\u4e24\u4e2a\u53e0\u52a0\u8dd1\u6ee1\u4e86\u6491\u6b7b500M\u3002\u51ed\u7740\u9605\u8bfb\u4e86\u65e0\u6570\u7684vlan\u3001i\u2026<\/p>\n","protected":false},"author":1,"featured_media":220,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[75,77,76],"attr":[],"class_list":["post-219","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-firmware","tag-lede","tag-77","tag-iptv","entry"],"views":26494,"_links":{"self":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":0,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/media\/220"}],"wp:attachment":[{"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/tags?post=219"},{"taxonomy":"attr","embeddable":true,"href":"http:\/\/jc.a300.cn/luyouwang\/wp-json\/wp\/v2\/attr?post=219"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
\u8bbe\u5907\u662f\u79fb\u52a8\u914d\u7684H2-2\uff0c\u7814\u7a76\u4e86\u4e00\u4e0b\u662fzte\u4ee3\u5de5\u7684\uff0c\u8bbe\u7f6e\u5149\u732bIP\u5b9a\u4e49\u4e3a192.168.1.Y\uff0c\u4e0e\u7535\u4fe1\u5149\u732b\u540c\u7f51\u6bb5\uff0c\u540c\u65f6\u5173\u95edDHCP
1\u3001<\/strong>PPPOE\u6539\u6865\u63a5\uff0c\u5148\u5220\u9664\u518d\u65b0\u5efa\uff0c\u4e0a\u6d77\u79fb\u52a8\u7684PPPOEvlan\u662f1101\uff0c\u4e0d\u7ed1\u5b9a\u4efb\u4f55\u7684\u7aef\u53e3\uff0c\u4e5f\u4e0d\u7ed1\u5b9avlan<\/p>\n\n
vlan2\u6211\u5b9a\u4e49\u4e3a\u4e86vmbr5\uff0cvlan85\u6211\u5b9a\u4e49\u4e3a\u4e86vmbr7\uff0c\u800cpve\u5bbf\u4e3b\u673a\u7269\u7406wan\u53e3\u4e0a\u6ca1\u6709vlan\u6807\u8bb0\u7684\u90e8\u5206\u6211\u5b9a\u4e49\u4e3a\u4e86vmbr4<\/p>\n