Router Labs Home
Home

Tutorials

BGP4 - Aggreagation

BGP4 - Aggreagation with Options

OSPF - First Steps

OSPF - 2 Areas

OSPF - Area Range Command

OSPF - Default Originate Always

OSPF - Redistribution

RIPv2 - First Steps

RIPv2 - Authentication

RIPv2 - Offset List   NEW

PPP - Authentication CHAP 1

Routing Documentation

Cisco Adminstrative Distance

Juniper Protocol Preference

Well Known Multicast Groups

RFC Overview

RIPv2 - Starter Tutorial

This tutorial gives an introduction to the RIPv2 routing protocol.

Lets take a lab of 2 routers and do some basic RIPv2 configuration:

Both routers just have the interface serial 1/0 and the interface loopback 0 configured. If you use the basic configuration and start the routers you can ping the other router.

The routing table of R1:

R1#sh ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     172.17.0.0/32 is subnetted, 1 subnets
C       172.17.0.1 is directly connected, Loopback0
     192.168.100.0/30 is subnetted, 1 subnets
C       192.168.100.0 is directly connected, Serial1/0

Two connected routes can be seen, but no routes from dynamic routing protocols.

We now start the RIP routing processes on both routers. RIP is activated on the serial interfaces and the loopback interfaces to make sure that you see RIP routes in the routing tables.

R1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#network 172.17.0.0
R1(config-router)#network 192.168.100.0
R1(config-router)#no auto-summary
R1(config-router)#exit
R1#

R2#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#network 172.17.0.0
R2(config-router)#network 192.168.100.0
R2(config-router)#no auto-summary
R2(config-router)#exit
R2#

The routing table of R1 now has a route to the loopback interface of R2, learned via RIP.

R1#show ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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

     172.17.0.0/32 is subnetted, 2 subnets
C       172.17.0.1 is directly connected, Loopback0
R       172.17.0.2 [120/1] via 192.168.100.2, 00:00:24, Serial1/0
     192.168.100.0/30 is subnetted, 1 subnets
C       192.168.100.0 is directly connected, Serial1/0
R1#

If you look at the route learned from R2 in detail, you see, that the route to 172.17.0.2 is learned via "rip".

R1#show ip route 172.17.0.2
Routing entry for 172.17.0.2/32
  Known via "rip", distance 120, metric 1
  Redistributing via rip
  Last update from 192.168.100.2 on Serial1/0, 00:00:27 ago
  Routing Descriptor Blocks:
  * 192.168.100.2, from 192.168.100.2, 00:00:27 ago, via Serial1/0
      Route metric is 1, traffic share count is 1

R1#
Save this configuration, it will be used as a base for other tutorials on this website. The configuration for this tutorial can be downloaded from here.

Contact


Routerlabs.de is not sponsored by, endorsed by or affiliated with Cisco Systems, Inc. Cisco©, Cisco Systems©, CCNA©, CCDA©, CCDP©, CCNP©, CCVP©, CCSP©, CCIE©, CCDE©, CCSI© and the Cisco Systems logo and the CCIE logo are trademarks or registered trademarks of Cisco Systems, Inc. in the United States and certain other countries. All other trademarks are trademarks of their respective owners.
Bookmark and Share