# ⁣⁣route command (static routes configuration)

### Description <a href="#id-routecommand-staticroutesconfiguration-description" id="id-routecommand-staticroutesconfiguration-description"></a>

The "*route*" command provides with manual management of system routing tables. In the normal mode, when a dynamic routing is active, this command is not needed. However, in some cases it allows to achieve more precise, non-standard configuration.

**Syntax:**

```
cmd: add, delete
args: NET[/MASK] GATEWAY [-iface] [-nostatic]
```

### Parameters <a href="#id-routecommand-staticroutesconfiguration-parameters" id="id-routecommand-staticroutesconfiguration-parameters"></a>

<table><thead><tr><th width="231">Parameters</th><th>Description</th></tr></thead><tbody><tr><td><em><strong>add NET[/MASK] GATEWAY</strong></em></td><td><p>Adds a route to a table.</p><ul><li><p><em>"NET[/MASK]"</em> – destination network/host IP-address. The parameter can be specified in the following formats:</p><ul><li>network-address/mask length;</li><li>network-address:mask;</li><li>network-address;</li><li>default.</li></ul></li><li>"<em>GATEWAY" –</em> IP-address of a router through which a destination network/host is attainable.</li></ul></td></tr><tr><td><em><strong>delete NET[/MASK]</strong></em></td><td>Deletes a route from a table.</td></tr><tr><td><em><strong>[-iface]</strong></em></td><td>Routing through the network interface. An IP-address of the interface through which routing is assigned becomes a gateway IP-address.</td></tr><tr><td><em><strong>[-nostatic]</strong></em></td><td><p>All routes that are described using the "<em>route add</em>" command have absolute priority. No dynamic routing protocols including DHCP can replace the static route in the routing table. "<em>nostatic</em>" option deny that.</p><p>E.g. DHCP may place a new default route in the table, after it disappears a static route will be restored to the previous value.</p></td></tr></tbody></table>

### Examples <a href="#id-routecommand-staticroutesconfiguration-examples" id="id-routecommand-staticroutesconfiguration-examples"></a>

Add the route to the table.

```
route add default 195.38.44.129
route add 193.124.189.0/27 195.38.44.108
route add 193.124.189.0:255.255.255.224 195.38.44.108.
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.astrawireless.net/astra-wireless-documentation/technical-documentation/astraflex-technical-user-manual/layer-3-command-set-ip-networking/route-command-static-routes-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
