# ⁣⁣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.
```
