Static routing operations are organized into three parts:
- The network administrator configures the road
- The router inserts the route in the routing table
- The packets are routed using the static route
Since a static route is configured manually, the administrator must configure the routerusing the ip route command. The correct syntax of the command ip route is shown
click the picture to enlarge
The administrative distance is an optional parameter which gives a measure of the reliability of the road. The higher the value of the administrative distance is low and the road is more reliable. So a road whose administrative distance is low will be inserted before a route identical with administrative distance is high. The default administrative distance is 1 when using a static route. When output interface is configured as a gateway into a static route, the static route appears to be directly connected. This can sometimes be confusing because a directly connected route really has an administrative distance of 0. To check the administrative distance of a route. Use the command show ip route address, the option is the IP address of this road. If we want an administrative distance other than the default, enter a value between 0 and 255 after the next hop or outgoing interface:
Waycross (config) # ip route 172.16.3.0 255.255.255.0 172.16.4.1 130
If the router can not reach the outgoing interface is taken on the road, the road is not installed in the routing table. This means that if the interface is down, the road is not inserted in the routing table.
Static routes are sometimes used for backup. It is possible to configure a router on a static route that will be used in case of failure of the road acquired dynamically. To use a static route in this way, simply assign an administrative distance value greater than the dynamic routing protocol used.