Monitoring, Management & Location Tracking

Is there a way to change the server's network settings (IP address, Gateway, DNS, etc.) from the command line?
Question  

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_setup

You 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.111
2) Netmask : 255.255.255.0
3) Gateway : 1.1.1.1
4) Primary DNS : 1.1.1.11
5) Secondary DNS: 1.1.1.10

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

--OR--

# reboot

Version history
Revision #:
1 of 1
Last update:
‎06-26-2014 03:02 PM
 
Labels (1)
Contributors
Search Airheads
Showing results for 
Search instead for 
Did you mean: 
Is this a frequent problem?

Request an official Aruba knowledge base article to be written by our experts.