My understanding of VLANs may need improved, but isn't the idea that you can run multiple LANs at layer 2 level over the same router if VLANs are setup correctly on the SG300? If so, I fail to see how that can be enabled for my incredibly trivial use case:
I have two separate LANs with separate DHCP servers (and separate IP ranges).
To simplify my hardware setup, I've purchased an SG300 router, thinking I can assign each port on that router to be part of one or several VLANs (just one in my case). But I seem to be getting the options wrong?
Can some patient soul please explain how I can configure two ports (let's assume GE1 and GE2 for the purpose of this exercise) to emulate what used to be LAN 1 and make that be in one VLAN so that none of the traffic in that VLAN is seen on any of the other ports, and DHCP clients connected behind port GE2 are seeing their DHCP requests answered by the server which is on GE1?
Using the web config screens, I've added a new VLAN with ID 10, then went into the port to VLAN screen and set GE1 and GE2 to tagged for VLAN 10, and to forbidden for the default VLAN 1.
While that resulted in me no longer being able to see the SG300 management interface when on VLAN 10, it doesn't seem to work for the DHCP clients on GE2: They never get their queries answered by the server on GE1, nor can they ping/see anything that's on GE1 (after setting the IP manually). "No route to host" results when trying that.
Plugging the same two cables that go into the SG300 into an unmanaged switch (as before), it works no problem.
Is perhaps the IP range of relevance? The SG300's management interface IP is on 192.168.0.1. VLAN 10 is 192.168.10.xx VLAN 20 is 192.168.0.xx (same as VLAN 1 - is that gonna bite when I set up VLAN 20?)