Cisco Static Route Example
Below is a simple static routing example. The basic syntax for a static route is:
ip route [destination_network] [mask] [next-hop_address or exitinterface] [administrative_distance] [permanent]
ip route The command used to create the static route.
destination_network The network you’re placing in the routing table. mask The subnet mask being used on the network.
next-hop_address The address of the next-hop router that will receive the packet and for- ward it to the remote network. This is a router interface that’s on a directly connected net- work. You must be able to ping the router interface before you add the route. If you type in the wrong next-hop address or the interface to that router is down, the static route will show up in the router’s configuration but not in the routing table.
exitinterface Used in place of the next-hop address if you want, and shows up as a directly connected route.
administrative_distance By default, static routes have an administrative distance of 1 (or even 0 if you use an exit interface instead of a next-hop address). You can change the default value by adding an administrative weight at the end of the command.
permanent If the interface is shut down or the router can’t communicate to the next-hop router, the route will automatically be discarded from the routing table. Choosing the permanent option keeps the entry in the routing table no matter what happens.

Tulsa(config)# ip route 10.10.0.0 255.255.0.0 172.16.16.2 [AD]
Dallas(config)# ip route 192.168.2.0 255.255.255.0 172.16.16.1 [AD]
-
iprefertolaugh posted this