Rip Protocol Configuration Guide With Examples
Rip Protocol Configuration Guide With Examples
Rip Protocol Configuration Guide With Examples
It is very easy to
setup and troubleshoot. In this tutorial we will explain how to configure RIP Routing protocol
with example. For demonstration we will use packet tracer network simulator software. You
can use real Cisco devices or any other network simulator software for following this guide.
This tutorial is last part of our article RIP Routing protocol explained with example. You
can read other parts of this article here.
http://computernetworkingnotes.com/ccna-study-guide/rip-tutorial-basic-operation-of-rip-
protocol.html
This is the first part of this article. In this part we explained basic concept of RIP protocol
such as what RIP protocol is and how it shares routing information. Later we summarized
RIP routing update process in step by step guide.
http://computernetworkingnotes.com/ccna-study-guide/rip-routing-information-protocol-
explained.html
This is the second part of this article. In this part we explained fundamental topics of RIP
routing like Routing metric, Split horizon, Hop counts, Route poison, RIP timer and
difference between RIPv1 and RIPv2.
Create a topology as illustrate in following figure or download pre-created topology from our
server.
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
From global configuration mode we can enter in interface mode. From there we can configure
the interface. Following commands will assign IP address on FastEthernet0/0.
We can use show controllers interface command from privilege mode to check the
cables end.
Fourth line of output confirms that DCE end of serial cable is attached. If you see DTE here
instead of DCE skip these parameters.
Router1
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 192.168.1.250 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/1
Router(config-if)#ip address 192.168.1.246 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 64
Router(config-if)#no shutdown
Router(config-if)#exit
Router2
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 20.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/0
Router(config-if)#ip address 192.168.1.245 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface serial 0/0/1
Router(config-if)#ip address 192.168.1.253 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Great job we have finished our half journey. Now routers have information about the
networks that they have on their own interfaces. Routers will not exchange this information
between them on their own. We need to implement RIP routing protocol that will insist them
to share this information.
Configuration of RIP protocol is much easier than you think. It requires only two steps to
configure the RIP routing.
Router0
Router0(config)#router rip
Router0(config-router)# network 10.0.0.0
Router0(config-router)# network 192.168.1.252
Router0(config-router)# network 192.168.1.248
router rip command tell router to enable the RIP routing protocol.
network command allows us to specify the networks which we want to advertise. We only
need to specify the networks which are directly connected with the router.
Thats all we need to configure the RIP. Follow same steps on remaining routers.
Router1
Router1(config)#router rip
Router1(config-router)# network 192.168.1.244
Router1(config-router)# network 192.168.1.248
Router2
Router2(config)#router rip
Router2(config-router)# network 20.0.0.0
Router2(config-router)# network 192.168.1.252
Router2(config-router)# network 192.168.1.244
Thats it. Our network is ready to take the advantage of RIP routing. To verify the setup we
will use ping command. ping command is used to test the connectivity between two devices.
Access the command prompt of PC1 and use ping command to test the connectivity from
PC0.
Good going we have successfully implemented RIP routing in our network. For cross check
we have uploaded a configured topology on our server. You can use that if not getting same
output.
RIP protocol automatically manage all routes for us. If one route goes down, it automatically
switches to another available. To explain this process more clearly we have added one more
route in our network.
Route 1
Route 2
PC0 [Source / destination 10.0.0.2] Router0 [FastEthernet0/1 10.0.0.1] Router0
[Serial0/0/0 192.168.1.249] Router1 [Serial 0/0/0 192.168.1.250] Router1 [Serial
0/0/1 192.168.1.246] Router2 [Serial 0/0/0 192.168.1.245] Router2
[FastEthernet0/0 20.0.0.1] PC1 [Destination /source 20.0.0.2]
By default RIP will use the route that has low hops counts between source and destination. In
our network route1 has low hops counts, so it will be selected. We can use tracert command
to verify it.
Now suppose route1 is down. We can simulate this situation by removing the cable attached
between Router0 [s0/0/1] and Router2 [s0/0/1].
Okay our primary route went down. What will be happen now?
So far we are running RIP routing protocol and have another route to destination, there is no
need to worry. RIP will automatically reroute the traffic. Use tracert command again to see
the magic of dynamic routing.
Thats all for this article. In next article we will explain another routing protocol with
examples.
RIP Routing protocol configuration commands summary
Command Description
Computernetworkingnotes.com