Hi everyone.
First post here, am relatively new to networking and OpenWrt.
I have a new Switch installed and connected to a Pi4 that runs OpenWrt as my router, its only a home network, and am very happy with how it works.
The dhcp server on the Pi is handing out IP addresses to anything connected to the switch.
I now want to try out VLANS, and I am not sure what static IP my switch needs to be set to in order to work with my router in regard to VLANS.
If my Routers IP was set to 10.40.40.4 and my Switch was set to 10.70.70.70 , would they work together for VLANS.
I currently can not ping my Switch from my computer when am hardwired to my Switch, I think this is because they are not on the same IP range as shown above.
I can ping all the connected device on the switch when am hardwired to it, just not the Switch its self.
When I manually change my computers IP to be in the same range as the Switch then I can ping my switch but not my router, this is why am asking will VLANS work with the two different IP ranges I currently have.
Two more questions. .1. is it ok to change the static IP on a Swith at any time, I have it set up now and am worried if I change its IP I might break what is currently working fine. DHCP is turned off on the Switch.
.2. Is it ok to change the Static IP on a Router, will doing so break anything.
Any help would be really appreciated.