Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

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

Jun 26, 2014 06:02 PM

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

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.