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:
Static routing has the following disadvantages:
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. 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.
Router (config) # ip route 172.16.3.0 255.255.255.0 s0/0/0
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
Online Personalised Exam Preparation Tool to score higher using Assessment, Analytics & Artificial Intelligence