Armbian Linux add default gateway command

networking
arm
debian

#1

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


#2

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 192.168.1.254 with your actual router/gateway IP address
gateway 192.168.1.254

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