IP_change in Offline Server

The script is for changing the IP of the offline server. The server initially has IP where it is working as a dhcp server. This script can make the offline server a client in other networks and can bring back to the initial server state.