Network interface
Caution
If you are using SSH to access you gateway, keep in mind that any modification in the network interfaces service could stop temporarily or definitively you SSH access. This manipulation is then not a problem if you can access the terminal through USB but can be very risky if the product is already in the cloud.
Edit the configuration file
The network interface configuration parameters are located in the file /etc/network/interfaces which is a text file. You can edit it using Vi or Nano:
Static configuration
For a static configuration, you can edit the eth0 interface section as follow:
The default value after a factory RESET:
Dynamic configuration (DHCP)
For a dynamic configuration, you can edit the eth0 interface section as follow:
Applying the modifications
Once the configuration file modified, you need to restart the networking service using the following command:
The service can be stopped or started as well with the "stop" or "start" argument but be careful with stop which could stop definitely you SSH connection once applied.