Armbian Linux add default gateway command

I have Armbian Linux and how do I add default gw (gateway or route) using this system?

Method # 1

You need to type the following command at the shell prompt

sudo armbian-config

When asked select networking > IP

Method # 2

Edit /etc/network/interfaces

sudo vi /etc/network/interfaces

Append the following line for your interface:

# replace with your actual router/gateway IP address

Save and close the file. Restart the networking service or reboot the box. I hope this helps.

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki