What is routing?
Routing or routeing is the process of selecting paths in a network along which to send network traffic. In packet switching networks, routing directs packet forwarding, the transit of logically addressed packets from their source toward their ultimate destination through intermediate nodes, typically hardware devices called routers, bridges, gateways, or switches. In simple terms, it is the process of transfering a packet from one network to another.
There are two types of routing techniques;
Static Routing -
Static routing is not really a routing protocol. Static routing is simply the process of manually entering routes into a device's routing table via a configuration file that is loaded when the routing device starts up. As an alternative, these routes can be entered by a network administrator who configures the routes manually. Since these manually configured routes don't change after they are configured (unless a human changes them) they are called 'static' routes. Static routing is the simplest form of routing, but it is a manual process and so takes time. Use static routing when you have very few devices to configure (ie, less than 5 devices) and when you know the routes will probably never change. Static routing also does not handle failures in external networks well because any route that is configured manually must be updated or reconfigured manually to fix or repair any lost connectivity.
The command for setting a static routing on a router is;
R1<config> # ip route UnknowN/wAddress SubnetMask NextHopAddress [Enter]
For the figure above if you want to setup a static routing then do as follows