Static routing: Difference between revisions

Content deleted Content added
Tags: Reverted Mobile edit Mobile web edit
Reverting edit(s) by 2001:16A2:C149:1024:FDA6:3A1A:232D:4DB0 (talk) to rev. 1002740825 by Belwine: Unexplained content removal (RW 16)
Line 29:
In most Linux distributions, a static route can be added using the [[iproute2]] command. The following is typed at a terminal:-<ref name=Linux>https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/5/html/Deployment_Guide/s1-networkscripts-static-routes.html</ref>
 
<syntaxhighlight lang="console">root@router:~# ip route add 10.10.20.0 via 192.168.100.1</syntaxhighlight>
<syntaxhighlight h
 
=== Cisco ===
Line 51:
==== Configuring administrative distance ====
 
The administrative distance can be manually (re)configured so that the static route can be configured as a backup route, to be used only if the dynamic route is unavailable.<ref name=distance>Cisco Systems (2013), [http://www.cisco.com/en/US/tech/tk365/technologies_tech_technologies_tech_note09186a0080094195.shtml What is Administrative Distance?], retrieved 12 June 2014</ref>
 
<code>'''Router(config)#''' ip route 10.10.20.0 255.255.255.0 exampleRoute 1 .254</code>
 
Setting the administrative distance to 254 will result in the route being used only as a backup.
 
== See also ==