[SOLVED] How to use UCI to configure VLANs on a large installation?

Well, it took me some time because I was busy with other matters. But I am reporting that it works. Below is the final /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config switch_vlan
        option device 'switch0'
        option vlan '7'
        option vid '203'
        option ports '0t 1t'

config switch_vlan
        option device 'switch0'
        option vlan '8'
        option vid '203.5'
        option ports '0t 1t'

config switch_vlan
        option device 'switch0'
        option vlan '9'
        option vid '205'
        option ports '0t 1t

'config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'dhcp'
        option hostname 'ap0604'
 
config interface 'cadastro'
        option type 'bridge'
        option proto 'none'
        option ifname 'eth0.203.5'
    
config interface 'visitante'
        option type 'bridge'
        option proto 'none'
        option ifname 'eth0.203'

config interface 'dados'
        option type 'bridge'
        option proto 'none'
        option ifname 'eth0.205'

There was no need to use the config port settings. QinQ worked fine.

I would like to thank everyone who helped.

S.

1 Like