找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1089|回复: 1

请问原版openwrt 21.02 的iptv vlan应该如何设置

[复制链接]
发表于 2022-1-12 13:12 | 显示全部楼层 |阅读模式
本帖最后由 bonnyandsky 于 2022-1-12 13:19 编辑

固件我编译的important]immortalwrt的源代码:immortalwrt/immortalwrt at openwrt-21.02 (github.com)
我以前用7621的时候vlan设置如下:
  1. config interface 'lan'
  2.         option type 'bridge'
  3.         option ifname 'lan1 lan2 lan3 lan4'
  4.         option proto 'static'
  5.         option ipaddr '192.168.0.1'
  6.         option netmask '255.255.255.0'
  7.         option ip6assign '60'

  8. config interface 'wan'
  9.         option ifname 'wan'
  10.         option _orig_ifname 'wan'
  11.         option _orig_bridge 'false'
  12.         option proto 'pppoe'
  13.         option username 'xxxxxx'
  14.         option password 'xxxxx'
  15.         option ipv6 'auto'
  16.         option keepalive '0'

  17. config switch_vlan
  18.         option device 'switch0'
  19.         option vlan '3'
  20.         option vid '85'
  21.         option ports '0t 1t 2t 3t 4t'

  22. config switch_vlan
  23.         option device 'switch0'
  24.         option vlan '4'
  25.         option ports '0t 1t 2t 3t 4t'
  26.         option vid '51'
复制代码


后来用x86的4口软路由,用lean的18.06编译的固件vlan设置如下:
  1. config interface 'lan'
  2.         option type 'bridge'
  3.         option proto 'static'
  4.         option netmask '255.255.255.0'
  5.         option _orig_ifname 'eth0'
  6.         option _orig_bridge 'true'
  7.         option ifname 'eth0 eth2 eth3'
  8.         option dns '119.29.29.29 223.5.5.5'
  9.         option ipaddr '192.168.0.1'
  10.         option ip6assign '64'

  11. config interface 'wan'
  12.         option ifname 'eth1'
  13.         option _orig_ifname 'eth1'
  14.         option _orig_bridge 'false'
  15.         option proto 'pppoe'
  16.         option username 'xxxxxx'
  17.         option password 'xxxx'
  18.         option ipv6 'auto'
  19.         option keepalive '0'

  20. config interface 'iptv85'
  21.         option type 'bridge'
  22.         option ifname 'eth0.85 eth1.85 eth2.85 eth3.85'
  23.         option _orig_ifname 'eth0.85 eth1.85 eth2.85 eth3.85'
  24.         option _orig_bridge 'true'
  25.         option proto 'dhcp'

  26. config interface 'iptv51'
  27.         option type 'bridge'
  28.         option proto 'none'
  29.         option ifname 'eth0.51 eth1.51 eth2.51 eth3.51'
  30.         option auto '1'
复制代码
但是现在换了21.02后 不知道怎么设置了。尝试过下面这个设置方法,iptv可以用了,但是上网都不行了。
  1. config interface 'loopback'
  2.         option device 'lo'
  3.         option proto 'static'
  4.         option ipaddr '127.0.0.1'
  5.         option netmask '255.0.0.0'

  6. config globals 'globals'

  7. config device
  8.         option name 'br-lan'
  9.         option type 'bridge'
  10.         list ports 'eth0'
  11.         list ports 'eth2'
  12.         list ports 'eth3'

  13. config interface 'lan'
  14.         option proto 'static'
  15.         option ipaddr '192.168.0.1'
  16.         option netmask '255.255.255.0'
  17.         option ip6assign '60'
  18.         list dns '119.29.29.29'
  19.         option device 'br-lan'

  20. config interface 'wan'
  21.         option proto 'pppoe'
  22.         option username 'xxxxxxx'
  23.         option password 'xxxxxxx'
  24.         option ipv6 'auto'
  25.         option device 'eth1'

  26. config interface 'wan6'
  27.         option device 'eth1'
  28.         option proto 'dhcpv6'

  29. config device
  30.         option type '8021q'
  31.         option ifname 'eth0'
  32.         option vid '85'
  33.         option name 'eth0.85'
  34.         option ipv6 '0'

  35. config device
  36.         option type '8021q'
  37.         option ifname 'eth1'
  38.         option vid '85'
  39.         option name 'eth1.85'
  40.         option ipv6 '0'

  41. config device
  42.         option type '8021q'
  43.         option ifname 'eth2'
  44.         option vid '85'
  45.         option name 'eth2.85'
  46.         option ipv6 '0'

  47. config device
  48.         option type '8021q'
  49.         option ifname 'eth3'
  50.         option vid '85'
  51.         option name 'eth3.85'
  52.         option ipv6 '0'

  53. config device
  54.         option type 'bridge'
  55.         option name 'br-vlan85'
  56.         list ports 'eth0.85'
  57.         list ports 'eth1.85'
  58.         list ports 'eth2.85'
  59.         list ports 'eth3.85'
  60.         option ipv6 '0'

  61. config interface 'iptv85'
  62.         option proto 'dhcp'
  63.         option device 'br-vlan85'
复制代码


发表于 2022-3-28 21:02 来自手机 | 显示全部楼层
楼主,请问机顶盒连接openwrt怎么才能看电视呢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-6-16 18:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com

快速回复 返回顶部 返回列表