Configuring RIPv2

Share on:

This guide will go over how to configure RIPv2 on Cisco routers. This guide follows a packet tracer activity that is posted at the end of this tutorial. RIPv2 configuration is pretty simple to understand with really only three required commands to use besides the network command which depends how many networks are connected to your router. RIPv2 Layout So following the packet tracer that is used with this tutorial the first step is to configure the hostname on the routers. Enter into the router and type the command enable to move into privilege EXEC mode, then type configure terminal to move into global configuration mode and type hostname then the name of the router. (this example is for R1) [code]Router>enable Router#configure terminal Router(config)#hostname R1[/code] The next thing you need to do is to configure the interfaces on R1, R2, and R3 and remember to put a clock rate on the serial interfaces of R1 and R2 (s0/0/1) the clock rate the packet tracer will accept is 64000. The following are the outputs for each router. R1's Interface Setup: [code]R1(config)#interface fa0/0 R1(config-if)#ip address 192.168.1.62 255.255.255.192 R1(config-if)#no shut R1(config-if)#exit R1(config)#interface s0/0/0 R1(config-if)#ip add 192.168.1.193 255.255.255.252 R1(config-if)#clock rate 64000 R1(config-if)#no shut R1(config-if)#exit R1(config)#interface s0/0/1 R1(config-if)#ip add 192.168.1.197 255.255.255.252 R1(config-if)#clock rate 64000 R1(config-if)#no shut[/code] R2's Interface Setup: [code]R2(config)#interface fa0/0 R2(config-if)#ip add 192.168.1.126 255.255.255.192 R2(config-if)#no shut R2(config-if)#exit R2(config)#interface s0/0/0 R2(config-if)#ip add 192.168.1.194 255.255.255.252 R2(config-if)#no shut R2(config-if)#exit R2(config)#interface s0/0/1 R2(config-if)#ip add 192.168.1.201 255.255.255.252 R2(config-if)#clock R2(config-if)#clock rate 64000 R2(config-if)#no shut[/code] R3's Interface Setup: [code]R3(config)#interface fa0/0 R3(config-if)#ip add 192.168.1.190 255.255.255.192 R3(config-if)#no shut R3(config-if)#exit R3(config)#interface s0/0/0 R3(config-if)#ip add 192.168.1.202 255.255.255.252 R3(config-if)#no shut R3(config-if)#exit R3(config)#interface s0/0/1 R3(config-if)#ip add 192.168.1.198 255.255.255.252 R3(config-if)#no shut[/code] The above commands have configured the interfaces for R1, R2, and R3. The next part of the step is to configure the PCs IP address and the default gateway. The default gateway is the router's fast ethernet interface. For example PC-A's default gateway would be 192.168.1.62. The next and final step is to configure RIPv2 on all the routers. You will use the same command for all the routers in this tutorial. [code]R1(config)#router rip R1(config-router)#version 2 R1(config-router)#network 192.168.1.0[/code] You may be wondering why you would use 192.168.1.0 network and not the different subnets connected to each router. This topology is using VLSM (variable-length subnet masking) so the router only needs the 192.168.1.0 network. You also should be at a 100 percent and able to ping every device. Download the Packet Tracer Activity RIPv2 PT  I hope this tutorial was helpful.