co Static Routing ~ Technical Agenda

Sunday, 21 January 2018

Filled Under:

Static Routing

Routing


Static routing occurs when you manually add routes in each router’s routing table. There are pros and cons to static routing, but that’s true for all routing processes.

Static routing has the following benefits:
  • There is no overhead on the router CPU, which means you, could possibly buy a cheaper router than you would use if you were using dynamic routing.
  • There is no bandwidth usage between routers, which means you could possibly save money on WAN links.
  • It adds security because the administrator can choose to allow routing access to certain networks only.
Static routing has the following disadvantages:
  • The administrator must really understand the internetwork and how each router is connected in order to configure routes correctly.
  • If a network is added to the internetwork, the administrator has to add a route to it on all routers by hand.
  • It’s not feasible in large networks because maintaining it would be a full-time job in itself.
the command syntax you use to add a static route to a routing table:

ip route [ destination network] [ mask ] [ next-hop address or exit interface ]

This list describes each command in the string:

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 forward it to the remote network. This is a router interface that’s on a directly connected network. 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.

Exit interface:-Used in place of the next-hop address if you want, and shows up as a directly connected route.
Router (config) # ip route 172.16.3.0 255.255.255.0 192.168.2.4
The ip route command tells us simply that it is a static route.
172.16.3.0 is the remote network we want to send packets to.
This 255.255.255.0 is the mask of the remote network.
192.168.2.4 is the next hop, or router, we will send packets to.


Or

Router (config) # ip route 172.16.3.0 255.255.255.0 s0/0/0

Default routing

It is used to send packets with a remote destination network not in the routing table to the next-hop router. You should only use default routing on stub networks—those with only one exit path out of the network.

To configure a default route, you use wildcards in the network address and mask locations of a static route

Router (config) # ip route 0.0.0.0 0.0.0.0 10.1.11.1





Rishav

Author & Editor

About Me

0 comments:

Post a Comment

Ad (728x90)

 

Copyright © Technical Agenda™ is a registered trademark.
Designed by Templateism | Distributed by Templatelib