找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 601|回复: 6

[求助] openwrt单线复用求助

[复制链接]
发表于 2022-8-30 09:57 | 显示全部楼层 |阅读模式
本帖最后由 xbsummer 于 2022-8-30 14:19 编辑

求助: 下面图是我的网络情况。 求指导下openwrt  DSA架构下怎么配置?
光猫: 192.168.1.1
路由器: 192.168.31.1



config interface 'loopback'  
        option ifname 'lo'  
        option proto 'static'  
        option ipaddr '127.0.0.1'  
        option netmask '255.0.0.0'  
        
config device  
        option name 'br-lan'  
        option type 'bridge'  
        option igmp_snooping '1'  
        option metric '1'  
        list ports 'lan1'  
        list ports 'lan2'  
        list ports 'lan3'  
      
config bridge-vlan  
        option device 'br-lan'  
        option vlan '1'  
        list ports 'lan1'  
        list ports 'wan'  
  
config bridge-vlan  
        option device 'br-lan'  
        option vlan '20'  
        list ports 'lan3:u'  
        list ports 'wan:t'  
  
config interface 'lan'  
        option device 'br-lan.1'  
        option proto 'static'  
        option netmask '255.255.255.0'  
        option gateway '192.168.1.1'  
        option dns '192.168.1.1'  
        option ipaddr '192.168.31.1'  
        option ifname 'eth0 lan2 wan'  
  
config interface 'iptv'  
        option device 'br-lan.20'  
        option proto 'unmanaged'  
        option auto '1'  
        option delegate '0'  
        option type 'bridge'  
        option ifname 'br-lan.20 lan1'

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-8-30 12:27 | 显示全部楼层
贴配置,不是贴配置图片,看不清
官方DSA vlan指南

点评

贴了。大佬帮看看  详情 回复 发表于 2022-8-30 14:19
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-8-30 14:19 | 显示全部楼层
avin4 发表于 2022-8-30 12:27
贴配置,不是贴配置图片,看不清
官方DSA vlan指南

贴了。大佬帮看看
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-31 11:32 | 显示全部楼层
DSA语法变了,你这段没法识别吧
  1. config bridge-vlan  
  2.         option device 'br-lan'  
  3.         option vlan '20'  
  4.         list ports 'lan3:u'  
  5.         list ports 'wan:t'
复制代码


我自己用的VLAN但是没用IPTV,LAN1设置VLAN ID 57,对应配置是这样

  1. config interface 'LANex'
  2.         option proto 'static'
  3.         option ipaddr '192.168.57.99'
  4.         option netmask '255.255.255.0'
  5.         option delegate '0'
  6.         option device 'br-57'
  7.         option force_link '0'

  8. config device
  9.         option type '8021q'
  10.         option ifname 'lan1'
  11.         option vid '57'
  12.         option name 'lan1.57'
复制代码
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-31 11:35 | 显示全部楼层
DSA架构要加VLAN,要么直接用config配置,如果用luci界面,先在网络-接口-设备里添加设备配置,类型选VLAN 802.11Q,基础设备选对应LAN口,然后确定,保存,会出来新设备
切换页面到接口,用刚才的新设备配置添加新接口

点评

我这个界面为啥找不到设备和VLAN设置的地方。 我通过编辑/etc/config/network试试。  详情 回复 发表于 2022-8-31 14:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2022-8-31 14:57 | 显示全部楼层
avin4 发表于 2022-8-31 11:35
DSA架构要加VLAN,要么直接用config配置,如果用luci界面,先在网络-接口-设备里添加设备配置,类型选VLAN  ...

我这个界面为啥找不到设备和VLAN设置的地方。

我通过编辑/etc/config/network试试。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-31 20:37 | 显示全部楼层
第三方魔改的wrt就不清楚了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-20 10:36

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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