@
jasontse 之前也有人提到说vlan+路由器透传,但是我就是这方面比较小白,vlan设置都是通过tag, untag来设的,我不太懂什么意思,能教教我吗
这是我的路由器,0 1是LAN口,4是WAN口
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 ula_prefix 'auto'
config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
option macaddr '20:76:93:29:36:b8'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option macaddr '20:76:93:29:36:b9'
config interface 'wan6'
option ifname '@wan'
option proto 'dhcpv6'
config switch
option name 'mt762x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'mt762x'
option vlan '1'
option ports '0 1 2 3 5 6t'
config switch_vlan
option device 'mt762x'
option vlan '2'
option ports '4 6t'