THEORY:
Static routing occurs when you manually add routes in each router's
routing table. There are advantages and disadvantages to static
routing, but that's true for all routing processes. There is no
overhead on the router CPU. There is no bandwidth usage between
routers. It adds security because the administrator can choose to
allow routing access to certain networks only.
The administrator must really understand the internet work 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—manually. It's not possible in large
networks because maintaining it would be a full-time job in itself.
Command syntax for static route:
ip route [destination_network] [subnet mask] [next-hop_address]
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
Procedure:
Create
a topology as shown in figure
Open
the IOS command Line Interface of the router or Desktop Terminal
using console cable
Configure
terminal-> Configuring from the Terminal
Change
the default host name
hostname
(WORD) -> System’s network name
set
IP address and subnet mask to the all the interface of both
routers[R1 and R2]
Router
R1
Configuration
ip address of the pc connected to switch
Go
Desktop>Go to Ip configuration
Check
connection from virtual terminals(from command prompt of PC0 to PC2)
Before
configuring static route
Figure
1Ping from 192.168.1.10 to 192.168.3.10 before configuring static
route
Configure
Static route
Check
connection from virtual terminals(from command prompt of PC0 to PC2)
After
configuring static route
Ping
from 192.168.1.10 to 192.168.3.10 after configuring static route