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(bin is an alias for: cd /root/svn/mercury/bin)# network_setupYou will see the same display you see during initial installation / setup which looks something like this:------------------ Primary Network Interface Configuration ---------------1) IP Address : 1.1.1.1112) Netmask : 255.255.255.03) Gateway : 1.1.1.14) Primary DNS : 1.1.1.115) Secondary DNS: 1.1.1.109) Commit Changes0) 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--OR--# reboot
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.