Static routing

On the 'Routing' page, you can add custom static routes, for example, to the local resources of the provider or other IP networks and nodes, as well as see the current IPv4/IPv6 routes. A static route defines a rule for sending IP packets through a specified gateway or network interface.

Click on 'Create route' to add a custom route.

sr01_en.png

In the 'Static route parameters' section, select the route type and specify the destination address. Enter the gateway address or select the interface through which the corresponding traffic will be routed. Several options are available in the 'Route type' field: 'Route to host', 'Route to network' and 'Default route'. Select the required option depending on your task. In the 'Destination network address' field, enter the IP address of the network or destination node. Then, enter the gateway address or select the interface through which the traffic will be transmitted.

sr02_en.png

Check the 'Add automatically' option to apply the route when the specified gateway is available.

For example, let's add a route to the remote network segment available through the configured SSTP connection.

sr03_en.png

In the 'Interface' field, there will be connections, interfaces and segments available on the device, as well as the value 'Any'.

Besides adding static routes manually, you can upload a list of routes from a batch file created in advance. This feature is handy when you add a lot of routes.

Important! There is a limit to the number of lines in a bat file; they should not be more than 1024.

The file with the .bat extension should have a classic view with the syntax of the Windows operating system. Example of command from a batch file:

route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1


For example, let's make a batch file with a list of routes.

sr-bat_en.png

To load routes from a file, click 'Load from file'.

sr04_en.png

In the 'Interface' field of the 'Load from file' window, you should select the interface for which the routes will be applied (as usual, ISP gives a list of routes for the local network, i.e. it should be the interface through which Keenetic connects to the Internet). Then click the 'Select file' button and specify the path to the batch file on your computer. Then click 'Upload'.

sr05_en.png

As a result, all static routes from the batch file will be added to the Keenetic routing table.

sr06_en.png

TIP: Note

Starting with KeeneticOS 3.8, you can see the current status indicator next to some active routes. This indication appears only for 'exclusive routes'. Indicators allow you to monitor and diagnose the performance of certain static routes.

A green indicator means the route is operational, and a red indicator shows that data to the destination address cannot be transmitted.

Exclusive route - In this mode, the system can only use a selected interface to route traffic to a specified destination. If the selected interface is inactive or unavailable, such traffic will not be routed.

exclusive route 1 en.jpg

'Exclusivity' can be specified when adding a static route (the 'Add automatically' option must be enabled beforehand):

exclusive route 2 en.jpg

Was this article helpful?

65 out of 124 found this helpful