I setup OPNsense at the same time I got a new Internet connection, so it was side by side with the old router which remained as the gateway for the old internet connection.
Old router: 192.168.1.1
OPNsense LAN interface: 192.168.1.2
I got everything working then switched over all the clients to use 192.168.1.2 as default gateway. This worked great. I then decommissioned the old router.
Now I want to set the IP of OPNSense LAN interface to 192.168.1.1 with as little downtime as necessary.
So I added 192.168.1.1 and 192.168.1 2 as virtual IP addresses for the interface. I can ping both and use as either as default gateway for clients. I then set the LAN interface IPv4 address as 192.168.1.1 and expected this to be used as the preferred IP for DHCP and other services, but 192.168.1.2 seems to be stuck.
I thought maybe it would fix itself after a reboot, which I needed to do anyway with the 26.7.8 release. But that doesnt seem to have changed things. For example DNSmasq DHCP clients are still issued 192.168.1.2 as their default gateway without this being specified anywhere.
If I delete the Virtual IP address all clients with it as their default gateway will lose access to the Internet.
What is the best way to resolve this and stop using 192.168.1.2 altogether? What happens if I delete the VIP 192.168.1.1 now that is configured under LAN interface? Is that safe?