According to https://doc.turris.cz/doc/_media/navody/nastaveni_vlan/network.png the WAN socket is hardwired to eth1, and in TOS3 it was like that. Whereas in TOS4 I see my WAN port assigned to eth2 and it works.
config interface 'wan' option ifname 'eth2'
Did labeling or something change?
And another thing is - I’m trying to understand the new internal switch config - /etc/config/network
- WAN = eth2 [why not lan5?]
- LAN = lan0 lan1 lan2 … [why not eth0?]
- VLAN = lan0.3 [why not eth0.3?]
Why it is referenced sometime as ethX… and othertime as lanX…?
How can the processor determine, when sending data to the switch via eth0, whether it will reach lan0 or lan1 etc.? I mean when I have
config interface 'probe' option proto 'static' option ifname 'lan4' option ipaddr '192.168.222.222' option netmask '255.255.255.252' option ip6assign '64' option ip6hint '88'
how can the processor route particular data only to LAN4 socket when there is no VLAN involved?