I am not sure I explained the issue well. When I am manually configuring VLAN, everything is working great, but when I compile the firmware using the files/etc/config method the two lans become merged. I attched my network config file and an image of the merged VALN
config interface ‘loopback’
option device ‘lo’
option proto ‘static’
option ipaddr ‘127.0.0.1’
option netmask ‘255.0.0.0’
option area_type ‘lan’
config globals ‘globals’
option ula_prefix ‘fd42:9955:ad76::/48’
config port ‘_lan2’
option enabled ‘1’
option autoneg ‘on’
option role ‘lan’
option port_num ‘2’
config port ‘_lan3’
option enabled ‘1’
option autoneg ‘on’
option role ‘lan’
option port_num ‘3’
config port ‘_lan4’
option enabled ‘1’
option autoneg ‘on’
option role ‘lan’
option port_num ‘4’
config port ‘_wan5’
option enabled ‘1’
option autoneg ‘on’
option role ‘wan’
option port_num ‘5’
option ifname ‘eth1’
config interface ‘lan’
option device ‘br-lan’
option area_type ‘lan’
option proto ‘static’
option ipaddr ‘192.168.1.1’
option netmask ‘255.255.255.0’
option ip6assign ‘60’
option name ‘recreational_lan’
config device ‘br_lan’
option name ‘br-lan’
option type ‘bridge’
list ports ‘eth0’
config interface ‘wan’
option device ‘eth1’
option proto ‘dhcp’
option metric ‘1’
option area_type ‘wan’
config interface ‘wan6’
option device ‘eth1’
option proto ‘dhcpv6’
option metric ‘2’
option area_type ‘wan’
config switch
option name ‘switch0’
option reset ‘1’
option enable_vlan ‘1’
config switch_vlan
option device ‘switch0’
option vlan ‘1’
option vid ‘1’
option ports ‘0t 2 3’
config switch_vlan
option device ‘switch0’
option vlan ‘2’
option vid ‘2’
option ports ‘0t 5’
config interface ‘mob1s1a1’
option proto ‘wwan’
option modem ‘3-1’
option metric ‘3’
option sim ‘1’
option dhcpv6 ‘0’
option pdptype ‘ipv4v6’
option method ‘nat’
option auth ‘none’
option area_type ‘wan’
option auto_apn ‘1’
config interface ‘mob1s2a1’
option proto ‘wwan’
option modem ‘3-1’
option metric ‘4’
option sim ‘2’
option dhcpv6 ‘0’
option pdptype ‘ipv4v6’
option method ‘nat’
option auth ‘none’
option area_type ‘wan’
option auto_apn ‘1’
config switch_vlan
option device ‘switch0’
option vlan ‘3’
option vid ‘3’
option ports ‘0t 4’
config interface ‘lan1’
option proto ‘static’
option area_type ‘lan’
option netmask ‘255.255.0.0’
option ipaddr ‘172.16.1.1’
option device ‘br-lan1’
option name ‘garmin_lan’
config device ‘br_lan1’
option name ‘br-lan1’
option type ‘bridge’
list ports ‘eth0.3’
config interface ‘wan1’
option proto ‘dhcp’
option name ‘wifi1’
option metric ‘5’
option area_type ‘wan’