ripd


RIP - Routing Information Protocol is widely deployed interior gateway protocol. RIP was developed in 1970s at Xerox Labs as part of the XNS routing protocol. RIP is a distance-vector protocol and is based on the Bellman-Ford algorithms. As a distance-vector protocol, RIP router send updates to its neighbors periodically, thus allowing the convergence to a known topology. In each update, the distance to any given network will be broadcasted to its neighboring router.

ripd supports RIP version 2 as described in RFC2453 and RIP version 1 as described in RFC1058

Menu
Starting and Stopping ripd
RIP configuration
How to Announce RIP route
Filtering RIP Routes
RIP Metric Manipulation
RIP distance
RIP route-map
RIP Authentication
RIP timers
Show RIP Information
RIP Debug Commands

Starting and Stopping ripd


The default configuration file name of ripd's is ripd.conf When invocition ripd searches directory /usr/local/etc If ripd.conf is not there next search current directory.

RIP uses port 521 to send and receive RIP packet. So the user must have the capability to bind the port. Generally this means that the user must have superuser privileges. RIP protocol require interface's information which maintained by zebra daemon. So running zebra is mandatory to run ripd. Thus minimum sequence for running RIP is like below:

    # zebra -d
    # ripd -d

Please note that zebra must be invoked before ripd

To stop ripd Please use kill `cat /var/run/ripd.pid`. Some signals has special means to ripd.

ripd invocation options. Common options that can be specified (See also Common Invocation Options.).

Menu
RIP netmask

RIP netmask


The netmask feature of ripd supports both version 1 and version 2 of RIP. Version 1 of RIP originally contained no net-mask information. In RIP version 1, network classes were originally used to determine the size of the netmask. Class A networks use 8 bits of mask, Class B networks use 16 bits of masks, while Class C networks use 24 bits of mask. Today, the most widely used method of a network mask is assigned to the packet on the basis of the interface that received the packet. Version 2 of RIP supports a variable length subnet mask (VLSM). By extending the subnet mask, the mask can be divided and reused. Each subnet can be used for different purposes such as large to middle size LANs and WAN links. Zebra ripd does not support the non-sequential netmasks that are included in RIP Version 2.

In a case of similar information with the same prefix and metric, the old information will be suppressed. Ripd does not currently support equal cost multipath routing.

RIP Configuration


Below is very simple RIP configuration. Interface `eth0' and interface which address match to `10.0.0.0/8' are RIP enabled.
     !
     router rip
      network 10.0.0.0/8
      network eth0
     !

Passive interface


How to Announce RIP route


If you want to specify RIP only static routes:


Filtering RIP Routes


RIP routes can be filtered by a distribute-list.

RIP Metric Manipulation


RIP metric is a value for distance for the network. Usually ripd increment the metric when the network information is received. Redistributed routes's metric is set to 1.

RIP distance


Distance value is used in zebra daemon. Default RIP distance is 120.

RIP route-map


Usage of ripd's route-map support.

Optional argument route-map MAP-NAME is added to each redistribute statement.

redistribute static [route-map MAP_NAME]
redistribute connected [route-map MAP_NAME]

Cisco applies a route-map before routes will exported to rip route table. In current Zebra's test implementation, ripd applies a route-map after routes listed in the route table and before routes will be announced to interface (something like output filter). I think it is not so clear, but it is draft and it may be changed at future.

Route-map statement is needed to use route-map functionality.

Route-map's match statement.


Route-map's set statement


RIP Authentication


RIP Timers


Show RIP Information


To display RIP routes

The command will display all RIP routes. For routes that are received through RIP, this command will display the time the packet was sent and the tag information. This command will also display this information for routes redistributed into RIP.

RIP Debug Commands


Debug for RIP protocol


This file documents the GNU Zebra software which manages common TCP/IP routing protocols.

This is Edition 0.1, last updated 5 July 2000 of `The GNU Zebra Manual', for Zebra Version 0.88.

Copyright (C) 1999, 2000 Kunihiro Ishiguro

Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by Kunihiro Ishiguro.