I'm a bit new here and have recently been running 3 networks off my router running Open-WRT and it's been great.
I recently picked up a few servers and a cheap 8-port unmanaged switch. Currently, 3 of the servers and plugged directly into the switch with a cat6 ethernet cable and the first port of the switch is plugged into port 3 of my router.
My goal is to have inbound and outbound access to/from these 3 servers, but they should be on their own subnet. (192.168.70.0/20). Now I'm wondering, do I create a bridge device assigned to port 3 then an additional interface of type Static Address with it's own DHCP server?
Additionally, one of the nodes currently has an old IP assigned to it (192.168.1.185), but I was thinking it would inherit a new IP from the DHCP server, so I'm a bit confused. Any pointers would be awesome.
Port 3 of your current OpenWrt router will be connected to the unmanaged switch, correct? And you want all of the devices that are connected to that switch to be on the 192.168.70.0/20 subnet?
Why a /20 (I'd recommend a /24 which is just a bit more straightforward, unless you really need to deal with 4K hosts)?
To be clear -- the unmanaged switch should only have a single network (untagged) running through it, so the configuration should be pretty straight forward in that we'll take port 3 and allocate it to the new network.
Let's take a look at your configuration:
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
/24 works as well! That's correct. Currently, despite forcing DHCP renew on one of my nodes, it is still stuck with an IP of 192.168.1.90 or something in the main subnet of my home network, which I don't want.
I'm using Luci UI to manage this since it's a bit more comfortable for me, but pasted some config below.
Updated my OP with image of desired result, hopefully that makes it clear.
However, awesome! Your response made me realize I had conflicting things here as my other bridge had also assigned port 3, so I assume that's what made the IP assignment not work as intended?
I should already have a DHCP server for my mini cluster labeled as Cluster in the above response.
What's the protocol for rebooting here. Do I reboot the router? Save and apply, etc.
I hadn't seen that, actually... but, you can use the cluster bridge if you want, just don't use the port lan3 in more than one place.
That said, the problem with your cluster config was actually this:
The IP address was wrong --- the .0 address is invalid in a /24 network. Use .1 and you'll be golden.
Depends how you achieved the changes... but yes, save and apply usually works. I like a reboot because it restarts all services at the same time... so you'll know if things are working as expected.
Don't forget to bounce the ports for the servers (you could reboot those devices, force them to renew DHCP leases, unplug ethernet momentarily, or power cycle the switch).
Yes, you can't use real-VLANs on an unmanaged switch anyways. Technically you wouldn't even need a bridge (unless you want to bridge more ports or AP interfaces into it), just the plain lan3 interface.