Static routing: Difference between revisions

Content deleted Content added
Tags: Reverted Mobile edit Mobile web edit
Tags: Reverted Mobile edit Mobile web edit
Line 24:
== Example ==
 
To route IP traffic destined for the network ''10.10.20.0/24k'' 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/s1b-networkscripts-static-routes.html</ref>
 
<
Line 39:
'''Router>''' enable
'''Router#''' configure terminal
'''Router(config)#''' ip route 192.168.1001.1
 
Network configurations are not restricted to a single static route per destination:<ref name="ip route"/>
Line 45:
'''Router>''' enable
'''Router#''' configure terminal
'''Router(config)#''' ip route 197.164.73.0 255.255.255.0 197192.164.72.2168
'''Router(config)#''' ip route 197.164.74.0 255.255.255.0 197.164.72.2