找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3479|回复: 2

多SSID加VLAN,单个网口上联,无VLAN的接口会失效

[复制链接]
发表于 2015-12-13 10:40 | 显示全部楼层 |阅读模式
先看看网络拓扑,MW305R+刷OP,单口上联ROS。设置两个SSID,一个是无VLAN,一个VLAN ID 200

下面是OP的网络配置:
config interface 'lan'
        option type 'bridge'
        option _orig_ifname 'eth0 radio0.network1'
        option _orig_bridge 'true'
        option proto 'none'
        option delegate '0'
        option ifname 'eth0'

config interface 'wan'
        option ifname 'eth1'
        option proto 'dhcp'
        option delegate '0'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

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

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '200'
        option ports '0t 1t'

config interface 'VLan_200'
        option type 'bridge'
        option proto 'none'
        option ifname 'eth0.200'
        option delegate '0'

无线部分配置:
config wifi-device 'radio0'
        option type 'mac80211'
        option hwmode '11g'
        option path 'platform/qca953x_wmac'
        option htmode 'HT20'
        option channel 'auto'
        option txpower '12'
        option country 'US'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option encryption 'none'
        option ssid 'OpenWrt_Lan'
        option network 'lan'
        option isolate '1'

config wifi-iface
        option device 'radio0'
        option mode 'ap'
        option encryption 'none'
        option ssid 'OpenWrt_200'
        option network 'VLan_200'
        option isolate '1'


这样设置后,无VLan的接口会失效,不能从ROS获取IP。如果两个SSID都设置VLAN ID,ROS也增加对应接口,这样就没有问题。

该如何设置才能使得无VLAN的接口可以正常上联

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2015-12-13 16:06 | 显示全部楼层
这相当于单臂路由了吧,OpenWrt作为交换机和ROS经过trunk相连,ROS的ether5做子接口响应对应的VID,如果OpenWrt的某个接口没有配置VLAN,似乎走的是Native VLAN。
这个维基百科上写的:
Each frame must be distinguishable as being within exactly one VLAN. A frame in the VLAN-aware portion of the network that does not contain a VLAN tag is assumed to be flowing on the native (or default) VLAN.

这是OpenWrt Wiki上写的:
The relevant standards document is 801.2q which says that VID values 0 and 4095 may not be used for tagging packets as they denote reserved values - VID 0 is the default 'native' vlan - leaving 4094 valid values in between, although VID 1 is often reserved for network management (see Dell 2708 for example). This means vlan0 can be used as a VLAN within or between devices, but you cannot tag packets with it.

我觉得你这个问题应该是ROS对于VLAN 0是如何处理的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2015-12-13 16:53 | 显示全部楼层
你这至少是有一侧不支持hybrid,记得op好像是不支持的吧。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-19 20:42

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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