Wednesday 30 May 2012

RIP functionalities

RIP:
 
              

We will directly sail into the actual functionalities of RIP as we will be able to find all the additional info in the internet.Now coming to the point,in a simple network professionals layman's term with the help of RIP the router will be able to learn the address of the other routers though they are not directly connected.In a network infrastructure there can be so many routers eg:

(A)<------------>(B)<------------->(C)<---------------->(D)

Lets now consider A B C D are the routers in a network .For Router A ,B router is the next hop but C router is nowhere linked to the A router.Its not possible to route the packets i,e pass the traffic from A router to C router as the A router is not aware of the destination address of C router in the routing table.The routing table is like a database which contains the source ip and destination ip address.considering the above example when you issue a ping <destination ip of C router> ,the expected reply will be unreachable as the router A could not find the destination ip address of the C router in the routing table.

Now this scenario is possible by configuring RIP to the network .RIP configurations has to be made on the router

CONFIGS ON ROUTER(A):

 A(config)#router rip
 A(config-router)#network <address of the hop which is not directly connected (i,e) C routers address>


we can also see whether the routing table is updated with the route by issuing the cli 'sh ip route'

<eg>
<snip>
A#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

C    192.168.2.0/24 is directly connected, Serial2/0
R    192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:06, Serial2/0
R    192.168.4.0/24 [120/1] via 192.168.2.2, 00:00:06, Serial2/0
R    192.168.5.0/24 [120/2] via 192.168.2.2, 00:00:06, Serial2/0
A#

<snip>

Here the C indicates the directly connected hop
and the R indicates the RIP connected network.

As per this the network 192.168.5.0 is not directly connected to the router A.We can also further confirm by pinging that network ip.

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.5.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 62/62/63 ms