Skip to content

Use bash to change an IP address from dynamic to static on Linux

Changing the IP address of a Linux system from dynamic to static is not difficult, but requires a little care and a set of commands that you likely rarely use. This post provides a bash script that will run through the process, collect the needed information and then issue the commands required to make the changes while asking as little as possible from the person running it.

The bulk of the script focusses on making sure that the correct settings are used. For example, it collects the 36-charater universally unique identifier (UUID) from the system so that you never have to type it in or copy and paste it into place.

[ Get regularly scheduled insights by signing up for Network World newsletters. ]

To read this article in full, please click here

Source:: Network World – Data Center