Vlan configuration

I have been using openwrt based router,it has 4 ports 1 wan and 3 Lan
Lan 1 and Lan 2 is bridged Lan3 can be used as secondary WAN

I need to create LAN 1 with VLAN 10 untagged,Lan 2 with VLAN 20 untagged

And LAN3 as trunk to allow these VLANs

Also i have one more router with same pattern of above router,in this second router in LAN 1 i need to do inter-vlan routing for VLAN 10 and VLAN 20

Can anyone suggest the steps to configuration as iam new to openwrt

We need more info...
Do you have a managed switch or other VLAN aware device to connect to lan3? Also, you said that lan3 can be a secondary wan, but you're also saying it would be used as a trunk... maybe you can draw up a quick topology diagram to make it clear how the ports will be used.

Next, let's get info about your device/config....(don't forget to redact passwords and keys)

ubus call system board
cat /etc/config/network
cat /etc/config/firewall
cat /etc/config/wireless
cat /etc/config/dhcp
1 Like