Enabling RIP and Configuring Global Parameters

RIP is disabled by default. You must enable RIP globally and on individual interfaces on which you want to advertise RIP routes. You can enable RIP on physical interfaces as well as virtual routing interfaces.

Once enabled, RIP operates with parameters at default settings. Default settings can be modified at the global level. Interface-level settings can be modified to override global settings on individual interfaces.

  1. Enter global configuration mode.
    device# configure terminal
  2. To enable RIP globally, enter the router rip command.
    device(config)# router rip
    device(config-rip-router)#
    
    This example places the device in RIP router configuration mode.
  3. (Optional) Change the route loop prevention method.
    device(config-rip-router)# poison-reverse
    
    This example disables split horizon (the default) and enables poison-reverse route loop prevention. To re-enable split horizon, use the no form of the command.
  4. (Optional) Configure the device to avoid routing loops by advertising local RIP routes with a cost of 16 ("infinite" or "unreachable") when these routes go down.
    device(config-rip-router)# poison-local-routes
    
  5. (Optional) Modify the administrative distance.
    device(config-rip-router)# distance 140
    This example increases the administrative distance to 140.
    Note: The default distance is 120.
  6. (Optional) Modify RIP timer settings. You must enter a value for each of the timers, even for those you are not changing.
    device(config-rip-router)# timer 15 115 115 120 
    
    This example sets the update timer to 15 seconds, the timeout timer to 115 seconds, the hold-down timer to 115 seconds, and leaves the garbage collection timer at its default setting of 120 seconds.
    Note: To reset the timers to their defaults, enter the no timer command with the current value of all timer parameters.
    Note: If you only want to modify the value of the update timer, use the update-time command.
  7. (Optional) Enable learning of default RIP routes from RIP neighbors.
    device(config-rip-router)# learn-default
  8. (Optional) Apply global filters for learning and advertising specific routes from neighbors.
    device(config-rip-router)# neighbor 4 deny 10.70.12.103
    device(config-rip-router)# neighbor 24 permit any
    
    This example denies route learning from IP address 10.70.12.103 and permits learning routes from all other neighbors.
  9. (Optional) Modify the default redistribution metric.
    device(config-rip-router)# default-metric 10
    Note: Do not enable redistribution until you configure other parameters related to redistribution. For example, set the default redistribution metric and configure any prefix lists or route maps to be used beforehand.
  10. (Optional) Enable redistribution of routes from other protocols into RIP using available parameters:
    • connected: Applies redistribution to connected routes
    • bgp: Applies redistribution to BGP4 routes
    • ospf: Applies redistribution to OSPF routes
    • static: Applies redistribution to IP static routes
    • metric value: Sets the RIP metric value from 1 through 15 for any routes imported into RIP
    • route-map name: Indicates the name of a preconfigured route map to be used in filtering specified routes
    device(config-rip-router)# redistribute ospf metric 3
    
    This example redistributes OSPF into RIP and sets the metric for OSPF routes to 3.
    device(config-rip-router)# redistribute ospf route-map routemap1
    
    This example applies a previously configured route map (routemap1) to OSPF route redistribution.
    Note: To stop redistributing routes into RIP, use the no form of the redistribute command, including the full command syntax of the active command.

The following example enables RIP, increases the administrative distance, modifies timer values for all but the garbage-collection timer, sets the metric for all distributed routes to 10, denies route learning from IP address 10.70.12.203, and applies a preconfigured route map to redistributed OSPF routes.

device# configure terminal
device(config)# router rip
device(config-rip-router)# distance 140
device(config-rip-router)# timer 15 115 115 120
device(config-rip-router)# learn-default
device(config-rip-router)# default-metric 10
device(config-rip-router)# neighbor 4 deny 10.70.12.103
device(config-rip-router)# neighbor 24 permit any
device(config-rip-router)# redistribute ospf route-map routemap1