Is there a way to change the server's network settings (IP address, Gateway, DNS, etc.) from the command line?
You can change network settings from the AMP GUI on the AMP Setup > Network page, or from the command line using the following command:
(bin is an alias for: cd /root/svn/mercury/bin)
You will see the same display you see during initial installation / setup which looks something like this:
------------------ Primary Network Interface Configuration ---------------
1) IP Address : 18.104.22.168
2) Netmask : 255.255.255.0
3) Gateway : 22.214.171.124
4) Primary DNS : 126.96.36.199
5) Secondary DNS: 188.8.131.52
9) Commit Changes
0) Exit (discard changes)
NOTE: If you change the server's IP address --either from the GUI or from the command line-- your session may appear to hang after saving / committing changes as your browser / SSH session may no longer be able to reach the server with the address specified to initiate the session. You may need to log in again with the new address to continue.
If you do not lose connectivity, the changes may not have taken full effect. You may need to reboot the server, or at least restart network services:
# service network restart