单网口环境下二级路由配置IPTV

一级路由(其中port 0 为CPU,port 5 连接入户网线,port 4 连接二级路由):

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

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

config switch_vlan
    option device 'switch0'
    option vlan '3'
    option vid '43'
    option ports '4t 5t'

二级路由(其中port 0 为CPU,port 1 连接IPTV,port 5 连接一级路由):

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

网口与入户IPTV接口双接口环境下二级路由配置IPTV

一级路由(其中port 0 为CPU,port 5 连接入户网线,port 4 连接入户IPTV接口,port 3 连接二级路由):

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

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

二级路由(其中port 0 为CPU,port 1 连接IPTV,port 5 连接一级路由):

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