AppNeta - How do I configure network settings over console, or by command line?
search cancel

AppNeta - How do I configure network settings over console, or by command line?


Article ID: 254904


Updated On:




You may find a situation where you need to factory reset your appliance causing you to loose your IP settings. 

In some circumstance you may need to resort to using the monitoring points console settings or command line (cli). 
Commands can be issued using curl in the following format:

curl -ku admin -X POST -H "Content-Type: application/json" -d '{"name": "eth0", "family": "inet", "method": "dhcp"}' ''


AppNeta Monitoring points:

Most models (M35, M50, M70, R90, R1000) use the following serial ports settings:  115200-8-N-1
Speed = 115200 Data bits = 8 Stop bits = 1 Parity = None Flow control = XON/XOFF

Some legacy appliance (M30, R45) use:  19200-8-N-1


Factory default settings on AppNeta monitoring points will set the the Primary Network Connection interface (typically Eth0) to use DHCP. 
After a factory reset, for software versions 13.11.0 and older the admin password for the monitoring point is:


For 13.12.0 and newer, the password will be the MAC address - Uppercase and no colons - so for example 00:00:12:34:56:7B  -> the password would be 00001234567B

More details on the password in 13.12.0 can be found here:


In circumstances where you may need to set Static IP's on various interfaces, the commands to set the interfaces are found below.

In our example, we'll use the following:

Interface: Eth0
Default Gateway:

1.  Add the static IP on eth0:

curl -k -u admin -X POST -H "Content-Type: application/json" -d '{"name": "eth0", "family": "inet", "method": "static", "address":"", "netmask":"", "gateway":""}' ''

You should be prompted for the admin password for the appliance.

2.  Changes to interfaces need to be followed by a Network Restart:

curl -k -u admin -X PUT -H 'Content-Type: application/json' -d {} ''


sudo systemctl restart networking


3.  Similarly you can change an interface to use DHCP.
Change eth0 to use DHCP:

curl -ku admin -X POST -H "Content-Type: application/json" -d '{"name": "eth0", "family": "inet", "method": "dhcp"}' ''

4.  Interfaces can also be deleted using the following command, which is removing the eth1 interface:

curl -k -u admin -X DELETE -H 'Accept: application/json' ''

5.  If you configured a second interface, you may need to set that interface to be the Default Interface:

curl -ku admin -X PUT "" -H "accept: application/json" -H "Content-Type: application/json" -d "{}"

6.  If you need to add proxy settings to your configuration, use the follow commands:

curl -ku admin 'POST'   ''   -H 'accept: application/json'   -H 'Content-Type: application/json'   -d '{
  "address": "",
  "port": 80,
  "username": "myusername",
  "password": "mypassword"

If your not using user/pass in the proxy, them just leave that section removed, which should configure null for those settings.

curl -ku admin 'POST'   ''   -H 'accept: application/json'   -H 'Content-Type: application/json'   -d '{
  "address": "",
  "port": 80

Additional Information

-  Remember to restart networking after any change; you need to apply settings
-  All commands can be changed to reflect other interfaces, such as the command below to set to eth1.  Please also note in this example that we are sending the curl command to 'localhost' in place of

curl -k -u admin -X POST -H "Content-Type: application/json" -d '{"name": "eth1", "family": "inet", "method": "static", "address":"", "netmask":"", "gateway":""}' 'https://localhost/api/v1/interface/'

*VLAN interfaces can also be created using the same methods

Once you have configure the IP, you can use command line to perform ping tests, and ultimately log into the monitoring point's WebUI through its configured IP: