Static Routes

CONFIGURE > NETWORK CONNECTIONS > Static Routes

Static routes are predefined paths that traffic can be configured to take through the network for purposes such as security, cost or to override the default route.

The list of configured static routes are displayed in a table with their current status indicated by the status column.

Status Meaning

Installed

The route is installed in the routing table.

Not Installed

The route may not be currently installed, but should update in a moment.

Error

The route failed to be installed.

Failed to fetch status

There is an error with the system and status failed to be obtained. This is a temporary error and should update in a moment.

The network interface is disabled

The static route is bound to an interface which is not enabled.

The network interface is disconnected

The static route is bound to an interface which is not connected.

The network interface has no active connections

The route cannot be installed as there are no active connections on this interface.

Configure Static Routes

On the Static Routes page you can add, edit or delete static routes.

Note:Only basic validation is performed when static routes are saved. Check the status column to ensure your route is installed and working correctly.

Create a static route

  1. Click the Add button to navigate to the creation page.

  2. Enter a valid IPv4 or IPv6 destination address or network, followed by the netmask in CIDR notation. The destination address/network must be unique.

  3. Enter the gateway or select an interface for the static route to use.

  4. Optionally, provide a metric for the route. Routes with a lower metric value are higher priority.

    Destination Address

    Default Metric

    IPv4

    0

    IPv6

    1024

  5. Click the Apply button to save the changes.

  6. If the changes are saved successfully you are returned to the Static Routes list page.

    • If there is an error with the configuration and the route fails to install, a red banner is displayed.

    • If the route installed successfully, a green success banner is displayed.

  7. The current status of the configured route is displayed in the table, which may change depending on the status of the network configuration.

Edit a static route

  1. Click the description of the desired static route in the list to access the Edit page.

  2. Update the details of the static route.

  3. Click apply to save the changes.

Delete a static route

  1. Click the description of the desired static route in the list to access the Edit page.

  2. Click the Delete button at the top-right of the page.

  3. Click Yes to confirm the action.

  4. If the route was removed from the routing table as expected, a green success banner is displayed.

Managing Static Routes via Command Line

Administrative users can also view the status and perform configuation of static routes via the command line interface.

After creating or modifying a route via the command line, you should take note of the route id and confirm that it has been installed successfully in the routing table.

Description

Command

Display IPv4 installed routes

ip route

Display IPv6 installed routes

ip -6 route

Display all route information

ip route show table all

Show status of configured routes via ogcli

ogcli get monitor/static_routes/status

Get static route configuration via ogcli

ogcli get static_routes

Create static route via ogcli

ogcli create static_route << END
destination_address="1.1.1.1"
destination_netmask=32
gateway_address="1.1.1.1"
interface="net1"
metric=0
END

Update static route via ogcli

ogcli update static_route "1.1.1.1" << END
interface="net2"
metric=100
END

Delete static route via ogcli

ogcli delete static_route "1.1.1.1"