[Help]Setup OpenWrt router as managed switch

Any idea how i should setup as switch with vlan at network config?
From "swconfig dev switch0 show " i figured that:
Router port - OpenWrt port
eth1-------------------port5
eth2-------------------port4
eth3-------------------port3
eth4-------------------port2
cpu(?)----------------port0
port0 is always connected although no ethernet cables or wifi is connected. Is that the cpu port?
And "dmesg | grep eth" output is:

[    0.584000] eth0: Atheros AR8216 switch driver attached.
[    0.684000] eth0: attached PHY [Atheros AR8216/AR8236/AR8316] (phy_addr=ltq_etop-fffffff:00, irq=-1)
[   20.348000] device eth0 entered promiscuous mode
[   20.356000] br-lan: port 1(eth0) entered listening state
[   20.360000] br-lan: port 1(eth0) entered listening state
[   20.380000] device eth0.1 entered promiscuous mode
[   20.384000] br-lan: port 2(eth0.1) entered listening state
[   20.392000] br-lan: port 2(eth0.1) entered listening state
[   22.364000] br-lan: port 1(eth0) entered learning state
[   22.396000] br-lan: port 2(eth0.1) entered learning state
[   24.368000] br-lan: port 1(eth0) entered forwarding state
[   24.400000] br-lan: port 2(eth0.1) entered forwarding state
[  206.480000] device eth0.5 entered promiscuous mode
[  206.484000] br-lan: port 4(eth0.5) entered listening state
[  206.488000] br-lan: port 4(eth0.5) entered listening state
[  208.492000] br-lan: port 4(eth0.5) entered learning state
[  210.496000] br-lan: port 4(eth0.5) entered forwarding state
[  268.792000] device eth0.1 left promiscuous mode
[  268.796000] br-lan: port 2(eth0.1) entered disabled state
[  268.824000] device eth0.5 left promiscuous mode
[  268.824000] br-lan: port 4(eth0.5) entered disabled state
[ 3279.828000] device eth0.1 entered promiscuous mode
[ 3279.832000] br-lan: port 3(eth0.1) entered listening state
[ 3279.836000] br-lan: port 3(eth0.1) entered listening state
[ 3281.840000] br-lan: port 3(eth0.1) entered learning state
[ 3283.844000] br-lan: port 3(eth0.1) entered forwarding state

Ok...so i made an assumption from reading the above info and made a new Interface inside luci and bridged the two different vlans i can see (eth0.1 and eth0.5). When i tried to bridge those two along side eth0 at the Lan interface, everything would lose connection except wlan0. And then i had to go and restore settings. But now i created a new interface and bridged them inside the new interface. And everything works fine.

If anyone could please explain why this worked but when i bridged eth0.1, eth0.5 and eth0 inside lan interface, would be greatfull.

Thanks a lot for your help!

https://forum.archive.openwrt.org/viewtopic.php?id=22742&p=42