search cancel

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


Article ID: 254904


Updated On:




You may 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).

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, the admin password for the monitoring point is:


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 "{}"


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: