Logo

EcoRouter

EcoNAT

EcoQOE

EcoBypass

English

Static routes configuring EcoRouter Documentation / Routing / Static routes configuring

Static route is a fixed route to the destination network set up manually or by administrator.

Static routes are used in the different scenarios, mainly on simple designed and having predictable traffic behavior network segments. Standard usecase is missing dynamic route to the destination network or necessity to rebuild route made by using a dynamic protocol. Static routes use bandwidth smaller than dynamic ones and require no processor time for route refresh evaluating and analyzing.Static route is described by command line in configure mode: ip route (ip-prefix | ip-addr ip-mask ) (ip-gateway | interface) (<0-255>) (description <description>) (tag <0-4294967295>), where (0-255) is administrative distance value.

Basic static route setup

ecorouter>en 
ecorouter#conf t

Setup can be made in global configuring mode.

Enter configuration commands, one per line.  End with CNTL/Z.ecorouter(config)#ip route 192.168.1.0 255.255.255.0 172.16.10.1

The command is similar to the one below: 

ecorouter(config)#ip route 192.168.1.0/24 172.16.10.1
 
In this command destination network is described by prefix. 
ecorouter(config-if)#ip route 192.168.1.0/24 e1

In this command interface link for available gateway address is used instead of gateway address.

Static route administrative distance

By default, a static route has an administrative distance value of 1 which gives the highest priority to the such type of route as compared with any other.The administrative distance value can be changed using a configure static route command listed below (the needed value is set at the right end of the string).
ecorouter(config)#ip route 192.168.1.0 255.255.255.0 172.16.10.1 125

See an example below:

If there’re dynamic routes having administrative distance value of 120 and there’s necessity to use it instead of static route, user should specify administrative distance value bigger than 120.