search the web

Sunday, January 31, 2016

Configuring RIPv1


configuring RIPv1


-------------------------------------------------------------
R1
------------------------------------------------------------
show ip route
!Do show ip route and then advertise the connected routes through rip
Conf t
router rip

!This command enables rip routing protocol on this router

!Now we have to advertise the networks

network 192.168.1.0

!The network command advertises the network 192.168.1.0.
!The network command does two things, one what network to advertise and 2nd on which interface to advertise
!so it will advertise the network that we specified through the interface of 192.168.1.2
----------------------------------------------------------
BB
----------------------------------------------------------
show ip route
!see the connected routes and advertise them

conf t
router rip
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
network 192.168.4.0
exit

---------------------------------------------------------
R2
---------------------------------------------------------
sh ip route
conf t
router rip
network 192.168.2.0
exit

--------------------------------------------------------
R3
--------------------------------------------------------
show ip route
conf t
router rip
network 192.168.3.0
network 192.168.5.0

exit

-------------------------------------------------------
R4
-------------------------------------------------------
show ip route
conf t
router rip
network 192.168.4.0
network 192.168.5.0

exit

!To check the protocols apply the command
show ip protocols

show ip route

!you will see the networks with R, R alphabet means here that the route is learnt through RIP, you will also see something like [120/2]. here 120 means the administrative distance of the routing protocol
AD or Adminsitrative distance shows how believable a routing protocol is, the lower the adminsitrative distance  the more believable the routing protocol is.
for example we have two routing protocols used and we have learnt a route through both of them, now the one with lowest adminstrative distance will be preffered.

[120/2] 2 means the metric, and is the hop count in case of RIP, It tells how believable a route is.
To troubleshoot the RIP and to see the RIP communciation we do

debug ip rip
!this command will show us the communication that takes place between the rip speaking routers.
to disable this command we do

u all



Now to change from RIP v 1 to RIP versin 2 we use the command on all the routers

conf t
router rip
version 2
exit


Thanks for visiting if there is any doubt or question about RIP (routing information protocol) please write down in comments


for initial configuration of Router, switch or AP visit link below
initial configuration of Router, Switch or AP