I have a DSL connection, my old setup used to be:
- DrayTek Vigor 165 DSL modem in bridge mode
- D-Link DIR-842 running OpenWrt as dumb AP
- x86 server with quad-port NIC running an OpenWrt VM
The modem sits right next to the DSL jack, and that spot is also perfect for the WiFi AP, but there is only one Ethernet run between there and the storage room where the server sits. I solved it using DIR-842's onboard managed switch by configuring it in the following way:
- Port 0 (to eth0): VLANs 30 & 40 tagged
- Port 1 (to modem): VLAN 20 untagged, VLAN 7 tagged
- Port 2 (to server): VLANs 7, 20, 30, 40 tagged
VLANs 30 & 40 are for WiFi subnets, 20 is for the modem web interface, and 7 is for Telekom PPPoE. VLANs 7 & 20 stayed entirely on the switch, never went to eth0 and allowed a more or less direct connection from the server to the modem.
Now I have replaced the DIR-842 with a COVR-X1860, also running OpenWrt. It uses DSA instead of swconfig, and has interfaces "internet" and "ethernet" (corresponding to labels on device) instead of just eth0.whatever and swconfig. For now I've used the device normally as router+AP, but I want to go back to having the router on the server, and I'm struggling to replicate the switch configuration since I'm very new to DSA.
Could someone help me do this? Thanks in advance for all the help!