Disclaimer:-Every thing provided on this website is only for Educational purposes and Author "Ramiz Khan" is not responsible for any damage done.

Ramiz Khan

Ramiz Khan facebook.com/ramiz.khan.98478
Contact -E-mail: ramiz.khan.16@gmail.com

Search This Blog

Saturday, September 1, 2012


STATIC ROUTING COMMANDS


Static Routing Commands

Static routing algorithms are basically table mappings established by the network administrator before the beginning of routing. These mappings do not change unless the network administrator alters them. Algorithms that use static routes are simple to design and work well in environments where network traffic is relatively predictable and where network design is relatively simple. Because of this fact, static routing systems cannot react to network changes.
CONFIGURING A STATIC ROUTE (AD Value = 1):
Purpose: A manually configured route used when routing from a network to a stub network.
Stub network is a casual term describing a network (or a part) with no knowledge of other networks that will typically send all its traffic via a single path.
To configure a static route use the following command:  ip route
Router (config) # ip route <network-address subnet-mask> {ip-address | exit-interface}
Dissecting static route syntax
  • ip route – Static route command.
  • 1st network address – Destination network address.
  • subnet mask- Subnet mask of destination network.
  • last filed – the “next-hop” to this network.
SHOW COMMANDS:
Show running config: we can verify route configured in the routing table.
Show ip route: we can verify the static routes configured correctly or not by listing the router’s entire routing table.

MODIFYING A STATIC ROUTE:
If we need to modify or delete an existing static route; we can make use of the below sequence.
  1. Deleting the old existing route by using the command,
Router (config) #no ip route<network-address subnet-mask>{ip-address | exit-interface}
  1. Adding the new route,
Router (config) # ip route<network-address subnet-mask>{ip-address | exit-interface}

Note: Static routes remain in the routing table even if the specified gateway becomes unavailable. If the specified gateway becomes unavailable, you need to remove the static route from the routing table manually. However, static routes are removed from the routing table if the specified interface goes down, and are reinstated when the interface comes back up.

No comments: