I have a number of branches with a Cisco Catalyst 2960 switch and a Cisco ISR for DMVPN. The ISRs are getting swapped out for Meraki MX's. The trick is that I want to change
the LAN IPs for the branches during the remote change as they were not originally scaled properly.
So on the switch the current relevant config would be..
switchport trunk native vlan 10
switchport mode trunk
ip address 10.52.10.2 255.255.255.0
ip default-gateway 10.52.10.1
The vlan 10 gateway on the MX would change to say 10.1.100.1/24. I only have SSH
for connecting to the switch. One way to keep the switch manageable would be change the VLAN 10 IP to be IP adress DHCP and it could grab an address (perhaps static mapped) from the Meraki MX DHCP. But if I changed the address on SVI 10 to DHCP the default-gateway would still be 10.52.10.1 possibly interfering with the default gateway handed out by DHCP. If I negate the default-gateway first then I'd lose connectivity and not be able to change the ip addressing of SVI VLAN 10. Cold there be some method of being able to change those two lines at once - the ip address of VLAN 10 and the defaul-gateway? Or some other method of getting to my desired state in spite of connecting over ssh?