CCENT (ICND1)Routing

Configuring RIP on a Cisco Router

RIP (Routing Information Protocol) was one of the first routing protocols that hit the market, and still one of the easiest to configure.

 

RIPv1 is a classfull routing protocol and does not support VLSM’s or CIDR values and sends it’s updates as a broadcast message with a destination address of 255.255.255.255

 

RIPv2 supports classless address and supports VLSM and CIDR values. It sends it’s updates as a multicast messages and includes the subnetmask value in its updates.

 

In both cases RIP is a distance vector routing protocol and uses hop count as it’s metric value.

 

RIP sends its entire routing table information to its neighbouring routers every 30 seconds (default Update Timer). Since the updates are sent every 30 seconds no acknowledgement is needed from the receiving router to confirm it received the update and if it does happen to miss one it will receive the next one in 30 seconds.

 

If RIP does not receive an update for a route that has been learned from a neighbour within the Invalid Timer, which has a default value of 180 seconds (6 updates), the route will be marked as invalid and no packets destined for that network will be forwarded. The entry will however still remain in the routing table until the Flush timer has been reached (240 seconds by default), at which point the route will be removed from the routing table.

 

Cisco also includes a Holddown Timer, which allows the router to identify if a metric value has changed for a route that has already been learnt. This often happens when a link has failed and the router receives an old update from a router through another path. The router will then not accept any updates regarding that route until the holddown has expired (240 seconds by default) which will prevent old out of date information propagating the network.

 

To identify the default timers, you can issue the ‘show ip protocols’ commands from enable mode on a Cisco router (See diagram below)

 show_ip_protocols_rip

 

 In the live demo below, I have tried to ping the address 10.0.3.2 which is the FastEthernet 0/0 interface on R2. You can see that ping was unsuccessful since there is no route for the network 10.0.3.0 /24 – ‘sh ip route’. I then enabled RIP on my router

 AOIP.ORG(config)# router rip                                                     {enables RIP}

AOIP.ORG(config-router)# network 192.168.1.0                 {the network that I would like to participate in the routing updates}

 

After looking at the routing table again ‘sh ip route’ you will see there is a new entry with a ‘R’ in front of it indicating it is a RIP entry. You will also notice the entry is for a network ‘10.0.0.0/8 [120/1]’ The reason it’s showing as a class A address is RIPv1 is classfull and doesn’t understand CIDR values which I have used on this network. It assumes that since the network address starts with a 10, it must be a class A address and shows it in the routing table as such. [120] indicates the administrative distance and [1] is the metric value for this route. After the route has been added to the routing table by RIP the ping is successful.

 

Below is the network diagram used for the live demo, and the live demo.

network_diagram_with_loopbacks1

 

If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get Flash Player from Adobe.

2 thoughts on “Configuring RIP on a Cisco Router

  1. Pls I have a challenge
    I want to configure a cisco router 2901 as an internet gateway.
    it has gig0/0 as the wan port
    gig1/0 for lan
    on configuring, the router can ping the modem but my computer that is connected to the lan port cannot.
    the router can ping my computer and the modem.
    can you help me out?

  2. @ernest – If the router can ping both IP addresses but the PC cannot, there are 2 things you need to check.

    1/ Does the modem have a route to get back to the subnet that your PC is on?
    2/ Has the subnetmask and default gateway been set correctly on the PC?

Leave a Reply

Your email address will not be published. Required fields are marked *