Configuration Tasks

To configure RIP:

  1. Create a RIP process by enabling RIP.
    host1(config)#router rip
  2. (Optional) Configure the global RIP version. RIPv1 is used by default.
    host1(config-router)#version 2
  3. (Optional) Do one of the following:
    • Associate a network with a RIP routing process and optionally configure RIP for the network.
      host1(config-router)#network 10.2.1.0 255.255.255.0 host1(config-if)#ip rip host1(config-if)#ip rip receive version 1 host1(config-if)#ip rip send version 2 host1(config-if)#ip rip authentication mode text host1(config-if)#ip rip authentication key klaatu42
    • Associate the RIP routing process with an interface specified by an IP address or with an unnumbered interface, and configure RIP for the interface.
      host1(config-router)#address 10.2.1.1 host1(config-router)#address 10.2.1.1 receive version 1 host1(config-router)#address 10.2.1.1 send version 2 host1(config-router)#address 10.2.1.1 authentication mode text host1(config-router)#address 10.2.1.1 authentication key 31barada

    Each configuration step is optional, and includes the following:

    • (Optional) Specify a RIP receive version for an interface. By default, RIP interfaces on your router receive both RIPv1 and RIPv2.
    • (Optional) Specify a RIP send version for an interface. By default, RIP interfaces on your router send only RIPv1.
    • (Optional) Specify an authentication mode and authentication password or key. This step is permitted only if both receive version and send version are set to RIPv2.
  4. (Optional) Enable RIP to advertise a default route.
    host1(config-router)#default-information originate
  5. (Optional) Specify a default metric for redistributed routes on all subsequently created interfaces.
    host1(config-router)#default-metric 5
  6. (Optional) Set the administrative distance for advertised routes.
    host1(config-router)#distance 150
  7. (Optional) Control the dynamic distribution of routes caused by changes to an associated route map.
    host1(config-router)#disable-dynamic-redistribute
  8. (Optional) Adjust RIP timers.
    host1(config-router)#timers update 20 host1(config-router)#timers invalid 60 host1(config-router)#timers holddown 60 host1(config-router)#timers flush 90
  9. (Optional) Specify maximum number of ECMP paths.
    host1(config-router)#maximum-paths 2
  10. (Optional) Summarize routes.

    Use a prefix tree to specify the number of bits to report for routes matching a route map:

    host1(config)#ip prefix-tree boston permit 10.10.2.0/24 host1(config-router)#route-map 4 host1(config-route-map)#match-set summary prefix-tree boston

    Note: For information about the ip prefix-tree command, see JunosE IP Services Configuration Guide.

    Alternatively, explicitly specify routes for RIP to summarize:

    host1(config-router)#ip summary-address 4.4.0.0 255.255.0.0 5 host1(config-router)#ip summary-address 4.3.0.0 255.255.0.0 6
  11. (Optional) Redistribute routes from other protocols into RIP, or from RIP to other protocols.
    host1(config-router)#redistribute rip 5 host1(config-router)#route-map 4 host1(config-router)#redistribute bgp 100 route-map 4
  12. (Optional) Enable unicast communication with RIP neighbors.
    host1(config-router)#neighbor 10.10.21.100 host1(config-router)#passive-interface atm atm 2/0.16
  13. (Optional) Set the debounce time for interfaces brought down by some event.
    host1(config-router)#debounce-time 30
  14. (Optional) Prevent RIP from purging the routing table for interfaces brought down by some event.
    host1(config-router)#interface-event-disable
  15. (Optional) Prevent RIP from sending a more-specific route if a less-specific route has a better metric.
    host1(config-router)#send-more-specific-routes-disable
  16. (Optional) Prevent RIP from sending triggered updates.
    host1(config-router)#triggered-update-disable
  17. (Optional) Apply a table map to modify route distance.
    host1(config-router)#table-map dist1

Relationship Between address and network Commands

If you use the network command to configure a RIP network, use the ip rip commands to configure the RIP attributes for that network. Do not use the address commands.

If you use the address command to configure a RIP network, use the address commands to configure the RIP attributes for that network. Do not use the ip rip commands.

Note: The network and ip rip commands are maintained for industry compatibility. You can configure all your RIP interfaces with the address commands. You cannot configure unnumbered interfaces with the network and ip rip commands.

address

address authentication key

address authentication mode

address receive version

address send version

clear ip rip redistribution

debounce-time

default-information originate

default-metric

disable

disable-dynamic-redistribute

distance

distribute-list

interface-event-disable

ip rip

ip rip authentication key

ip rip authentication mode

ip rip receive version

ip rip send version

ip split-horizon

ip summary-address

match-set summary prefix-tree

maximum-paths

neighbor

network

passive-interface

redistribute

route-map

router rip

send-more-specific-routes-disable

table-map

timers

triggered-update-disable

version