this post was submitted on 28 Sep 2023
18 points (90.9% liked)
homelab
6651 readers
3 users here now
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
i had the idea that two gateways could work in the same network without issues... in my inexperience i tried it with three hosts on an hyperv virtual network and it worked.
my stupid idea it's like this:
why i do this? To have a "temporary" setup where i slowly move all the static ip addresses to opnsense and in this way everything can have a valid configuration
You can still do this but as others have said you need to have 2 separate lans. Your old Lan can go to PC 1 from old router. Then opnsense wan goes to your existing Lan and importantly you are now creating a new Lan on the lan side of opnsense. Here you can connect the PC 2 to test with. Each PC should only be on 1 Lan and each Lan should have a separate subnet.
See this post and the last comment even references a diagram to exactly what you want: https://forum.opnsense.org/index.php?topic=32774.0
There are all kinds of routing protocols and algorithms at play which don't like loops and multiple routers competing to control the same subnet.