ROUTING
There are three types
1-static routing
2-dynamic routing
3-defult routing
STATIC ROUTING
If you have a one commpny. And if you want to cmmunncat the two different network..
If you have the one router.
You give the this command.
>no
>enable
#conf t
#interface fastinternet 0/0
#ip address 192.168.1.1 255.255.255.0
#no shutdown
#exit
#interface siriol0/0/0
#ip address 1.1.1.1 255.0.0.0
#clock rate 64000
#end
#exit
AND OTHER SIDE OF ROUTER
>no
>enable
#conf t
#interface fastinternet 0/0
#ip address 192.168.2.2 255.255.255.0
#no shutdown
#exit
#interface siriol0/0/0
#ip address 1.1.1.2 255.0.0.0
#no shutdown
NOW YOU ASSINE THE STATIC ROUTING
#conf t
#ip route second site of network address and subnet mask and seriol port of network
address
Mins
#ip route 192.168.2.0 255.255.255.0 1.1.1.0
#end
AND NOW YOU GIVE THE SAME STATC ROUTING OF SECOND ROUTER
#conf t
#ip route 192.168.1.0 255.255.255.0 1.1.1.0
#end
So you can communicate the two different network
THIS IS A STETIC ROUTING
DYNAMIC ROUTING
SAME SENARIO OF THE DYNAMIC ROUTING
#conf t
#router rip
#first side of the network address
#first side router of network address
#network 192.168.1.0
#network 1.1.1.0
#end
AND SAME SENARIO OF SECOND SITE OF ROUTER
#conf t
#router rip
#second side of the network address
#second side router of network address
#network 192.168.2.0
#network 1.1.1.0
#end
SO THIS IS A DYNAMIC ROUTING
BUT THIS A ROUTE RIP 1
BUT ROUTER RIP 2 IS A DEFFRENT
Scopes you have the one of the public ip address so if you want to give the more pc of ip
address of subnet mask will different.
So if you want to communicate the two the different subnet mask same but ip will
different network address
So you assine the route rip 2 routing
#conf t
#route rip 2
#network 192.168.1.0
#network 1.1.1.0
#end
AND SECOND SIDE OF ROUTER FOR SAME SENARIO
#conf t
#route rip 2
#network 192.168.2.0
#network 1.1.1.0
#end
THIS IS A ROUTIPG RIP 2