RIP (Routing Information Protocol) - Linux

OS: 
Function: 
Summary
  • RIP is an interdomain routing protocol that uses a distance vector approach to determine the paths between routers.
Detailed Description
  • RIP minimizes the number of hops of each path, where each point-to-point link or LAN constitutes a hop. Each RIP-enabled router will periodically send the content of its routing table to all its neighboring routers in an update message. For each routing table entry, the router sends the destination (host IP address or network IP address) and the distance to that destination measured in hops. When a router receives an update message from a neighboring router, it updates its own routing table.
Syntax
  • ripd [ -dhrv ] [ -f config-file ] [ -i pid-file ] [ -P port-number ] [ -A vty-address ] [ -u user ] [ -g group ]
Examples

Example command for configuring RIP on Linux PCs with Zebra:


Start the zebra and the ripd processes

PC1% /etc/rc.d/init.d/zebra start

PC1% /etc/rc.d/init.d/ripd start

To configure RIP routing process, connect via Telnet

PC1% telnet localhost 2602

 

Commands to enable RIP in passive mode:

  • Example command to configure the RIP routing protocol for network 10.0.0.0/8 on a Linux PC:

ripd> enable

ripd# configure terminal

ripd(config)# router rip

ripd(config-router)# version 2

ripd(config-router)# network 10.0.0.0/8

ripd(config-router)# passive-interface eth0

ripd(config-router)# int eth0

ripd(config-if)# no ip rip authentication mode text

ripd(config-if)# end

ripd# show ip rip

ripd# exit