Hi all,
In a few hours, I will be changing my router/firewall from a Virgin Media Hub 5 to a Ubiquiti Cloud Gateway Ultra. In preparation, I have been reading forum threads from people having had issues with changing IPs, therefore losing web console connection after the switch.
I was hoping the community could help me understand all of the steps I need to take in preparation to ensure I don't fall into any traps!
So far:
Let me know if I'm missing anything or can prepare in a better way to cause less headaches! It would be incredibly useful to have a source of truth for best practices when changing routers (point me in the direction if there already is one and I've missed it), as I will likely be moving soon and may have to go through this again.
Many thanks in advance,
Altorvo
In a few hours, I will be changing my router/firewall from a Virgin Media Hub 5 to a Ubiquiti Cloud Gateway Ultra. In preparation, I have been reading forum threads from people having had issues with changing IPs, therefore losing web console connection after the switch.
I was hoping the community could help me understand all of the steps I need to take in preparation to ensure I don't fall into any traps!
So far:
- I have multiple copies of each container's backup (tar.zst file)
- Listed current IPs of each service I'm running
- After having read @UdoB's brilliant tutorial on the subject (here), I have compiled the current outputs of each cmd in order to compare/have all info upfront.
- Previously, I had heard of copying across the /etc/ directory, but unsure if this is of each container/vm or on the host (as a backup of the pve config)?
- Leave my PvE server running
- Unplug the ethernet cable
- Switch over to the new router (putting the previous one in modem mode)
- Setup the new router to follow the same netmask/gateway as the previous one; i.e;
Subnet Mask . . . . . . . . . . . : 255.255.255.0 - Default Gateway . . . . . . . . . : 192.168.0.1
- Plug the pve server ethernet cable into the new router/switch and hope the new server adopts the IP that the server is currently on: i.e: 192.168.0.239 (this worked when changing from Hub 3 to Hub 5 a month ago)
/etc/network/interfaces
& /etc/hosts
of the host and change the ip/gateway to whatever the new router has assigned, post router change - assuming I have to do the same to all of the lxcs/vms also? (unsure where I do that) and restart network service via: systemctl restart networking
Let me know if I'm missing anything or can prepare in a better way to cause less headaches! It would be incredibly useful to have a source of truth for best practices when changing routers (point me in the direction if there already is one and I've missed it), as I will likely be moving soon and may have to go through this again.
Many thanks in advance,
Altorvo