Detach & Attach interface on a Ubuntu instance
Guide on how to detach and attach a network interface on a Ubuntu instance
Overview
If you need to change interface on a Ubuntu instance, then this is the procedure to use.
-
Run the following command in the instance.
sudo cloud-init clean
-
Shut down the instance
-
Detach / Attach the network interface
-
Start the instance
-
Reassociate Floating IP with the instance
Last modified April 22, 2024: added useful options (#171) (7e11b10)