V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
OpenWrt 是一个专门面向嵌入式设备的 Linux 发行版。你可以将 OpenWrt 支持的型号的嵌入式设备,比如各种路由器上的系统,换成一个有更多可能性可以折腾的 Linux 系统。
OpenWrt 官方网站
bonnyandsky
V2EX  ›  OpenWrt

请教上海电信光猫桥接, iptvp 走路由设置问题。OpenWrt R21.7.26,现在交换机构架改成了 DSA。原来的配置方法失效了。

  •  
  •   bonnyandsky · Jul 29, 2021 · 1247 views
    This topic created in 1739 days ago, the information mentioned may be changed or developed.

    之前不是 DSA 的时候只需要修改以下内容 /etc/config/network

    config switch_vlan option device 'switch0' option vlan '3' option vid '85' option ports '0t 1t 2t 3t 4t'

    config switch_vlan option device 'switch0' option vlan '4' option ports '0t 1t 2t 3t 4t' option vid '51'

    /etc/dnsmasq.conf 另外请问下这里的“=”后面是不是需要“lan,”我看有的教程是有的,有的又不需要。

    dhcp-option-force=lan,125,00:00:00:00:1a:02:06:48:47:57:2d:43:54:0a:02:20:00:0b:02:00:55:0d:02:00:2e dhcp-option=lan,60,00:00:01:00:02:03:43:50:45:03:0e:45:38:20:47:50:4f:4e:20:52:4f:55:54:45:52:04:03:31:2E:30 dhcp-option=lan,15 dhcp-option=lan,28

    但是现在变成 das 后就不知道怎么修改了。看了下官方文档,network 的内容和现在的也有出入,实在不会依葫芦画瓢。

    下面是现有的 /etc/config/network 部分内容,仅供参考

    config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0'

    config globals 'globals' option packet_steering '1'

    config interface 'lan' option type 'bridge' option ifname 'lan1 lan2 lan3 lan4' option proto 'static' option ipaddr '192.168.0.1' option netmask '255.255.255.0' option ip6assign '60' option dns '202.96.209.133 202.96.209.6' option delegate '0'

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2634 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 03:41 · PVG 11:41 · LAX 20:41 · JFK 23:41
    ♥ Do have faith in what you're doing.