swconfig dev switch0 show | grep -A1 ^[a-zA-Z] Global attributes: enable_vlan: 1 -- Port 0: MAC c0:4a:xx:xx:xx:xx Port 4: MAC 00:22:xx:xx:xx:xx Port 5: MAC 00:e0:xx:xx:xx:xx Port 5: MAC 58:9c:xx:xx:xx:xx Port 5: MAC 58:9c:xx:xx:xx:xx Port 6: MAC c0:4a:xx:xx:xx:xx
-- Port 0: mib: ??? -- Port 1: mib: ??? -- Port 2: mib: ??? -- Port 3: mib: ??? -- Port 4: mib: ??? -- Port 5: mib: ??? -- Port 6: mib: ??? -- VLAN 1: vid: 1 -- VLAN 2: vid: 2 -- VLAN 3: vid: 10 -- VLAN 4: vid: 26
tplink,tl-wr1043nd-v2|\
ucidef_add_switch "switch0" \
FROM: "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:wan" "6@eth0"
port 6 represented in the UI as CPU(eth0) is in fact the physical WAN connector
port 5 represented in the UI as WAN is in fact the CPU trunk
TO: "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "5:eth0" "6@wan"
I verified per the below configuration.
If WAN cable is removed;
connectivity between the LAN client and box remains in below config
If eth(0) is tagged for vlan10/26 and WAN is off, connectivity between the LAN client and box is lost
Conclusion is the WAN is therefore the CPU truck, and the CPU(eth0) is the WAN port.
Which also explains why the default config has eth0.2 as the wan interface.
I'm not quite following what is connected to each of the ports and what is connecting upstream vs downstream.
One thing I will note is that it is unusual to use the CPU untagged... I don't think it will cause issues, but the recommended configuration is to have the CPUs tagged.
But let's run the following test:
Create a backup
Reset the WR1043NDv2 to defaults
Connect a computer to one of the lan ports (no other connections on the device aside from power), login
Post the default /etc/config/network config file here
Observe and record the behavior of the pseudo-physical vs physical port mapping in the switch page by connecting your computer to each of the lan ports in turn (i.e. does port lan1 on the hardware match port lan1 on the switch page and so on).
connect your computer to the wan port... at this point, you shouldn't have access anymore. Please verify this
assuming 6 is as expected, connect your computer back to the lan port and then attach the wan port to an upstream network that provides dhcp. You should see the pesudo-physical wan port indicator show that it is connected and your 1043NDv2 should get an IP on the wan. Please confirm.