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. 1002740304 by Belwine: Unexplained content removal (RW 16)
Line 24:
== Example ==
 
To route IP traffic destined for the network ''k10.10.20.0/24'' via the next-hop router with the IPv4 address of ''192.168.100.1'', the following configuration commands or steps can be used:
 
=== Linux ===
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/bs1-networkscripts-static-routes.html</ref>
 
<syntaxhighlight lang="console">root@router:~# ip route add 10.10.20.0 via 192.168.100.1</syntaxhighlight>
 
<
=== Cisco ===
Enterprise-level [[Cisco Systems|Cisco routers]] are configurable using the Cisco IOS command line, rather than a web management interface.
Line 39 ⟶ 40:
'''Router>''' enable
'''Router#''' configure terminal
'''Router(config)#''' ip route 10.10.20.0 255.255.255.0 192.168.1100.1
 
Network configurations are not restricted to a single static route per destination:<ref name="ip route"/>
Line 45 ⟶ 46:
'''Router>''' enable
'''Router#''' configure terminal
'''Router(config)#''' ip route 197.164.73.0 255.255.255.0 192197.168164.72.2
'''Router(config)#''' ip route 197.164.74.0 255.255.255.0 197.164.72.2