Support Downloads Community

UniFi Video is an obsolete product line.

This application and its related devices will no longer receive any manner of technical support, including functional and security updates. Additionally, there will be no further updates to Help Center content pertaining to UniFi Video.

EdgeRouter - How to Add a Static Route


Readers will learn how to add a static route to the EdgeRouter using the Web UI or Command Line Interface.

Applicable to the latest EdgeOS firmware on all EdgeRouter models. Please see the Related Articles below for more information.
Device used in this article:

Adding a Static Route

Static routes can be configured in the Routing tab in the Web UI and support the following options:

  • Destination network
  • Next-hop address or interface
  • Description
  • Distance
  • Enable/Disable

A commonly used static route is the default gateway ( Follow the steps below to add a static default gateway route:

GUI: Access the EdgeRouter Web UI.

Routing > Routes > + Add Static Route

Select Route Type: Gateway
Destination network:
Next-hop address: <gateway-address>
Description: default
Distance: 1
Enable: Checked
NOTE:The usage of next-hop interface routes is generally only recommended on Point-to-Point interfaces (for example PPPoE or VTI). 

The above configuration can also be set using the CLI:

CLI: Access the Command Line Interface.You can do this using the CLI button in the GUI or by using a program such as PuTTY.
set protocols static route next-hop <gateway-address> description default
set protocols static route next-hop <gateway-address> distance 1
commit ; save

Related Articles

Back to Top

Intro to Networking - How to Establish a Connection Using SSH

Was this article helpful?
33 out of 89 found this helpful