Enabling RIPng and Configuring Global Parameters

By default, RIPng is disabled. To enable RIPng, you must enable it globally on the device and also on individual device interfaces.

Before configuring the device to run RIPng, you must do the following:

  • Enable forwarding of IPv6 traffic on the device using the ipv6 unicast-routing command.
  • Enable IPv6 on each interface over which you plan to enable RIPng. You enable IPv6 on an interface by configuring an IPv6 address or enabling IPv6 with the ipv6 enable command on that interface.
  1. Enter global configuration mode.
    device# configure terminal
  2. Enter RIP router configuration mode.
    device(config)# router rip
    device(config-rip-router)#
    
  3. Enter the following command to enable RIPng.
    device(config-rip-router)# ipv6 router rip
    device(config-ripng-router)# 
    This example enables RIPng and places the device in RIPng router configuration mode.
    Note: To disable RIPng globally, use the no form of the router rip command.
  4. (Optional) Change the route loop prevention method.
    device(config-ripng-router)# poison-reverse
    
    This example disables split horizon and enables poison-reverse route loop prevention. To re-enable split horizon, use the no form of the command.
  5. (Optional) Configure the device to avoid routing loops by advertising local RIPng routes with a cost of 16 ("infinite" or "unreachable") when these routes go down.
    device(config-ripng-router)# poison-local-routes
    
  6. (Optional) Modify the administrative distance.
    device(config-ripng-router)# distance 140
    This example increases the administrative distance to 140.
  7. (Optional) Modify RIPng timer settings. Set the four timers in this order: update timer, timeout timer, hold-down timer, and garbage-collection timer. You must enter a value for each timer, even when you are not changing the value of an individual timer.
    device(config)# ipv6 router rip
    device(config-ripng-router)# timers 45 135 10 20
    
    This example sets updates to be advertised every 45 seconds. If a route is not heard from in 135 seconds, the route is declared unusable. Further information is suppressed for an additional 10 seconds. Assuming no updates, the route is flushed from the routing table 20 seconds after the end of the hold-down period.

    To return to the default values of the RIPng timers, use the no form of the timers command.

    Note: Do not enable redistribution until you configure the other redistribution parameters.
  8. (Optional) Enable redistribution of routes from other protocols into RIPng using available parameters:
    • connected: Applies redistribution to connected types
    • bgp: Applies redistribution to BGP4 routes
    • ospf: Applies redistribution to OSPF routes
    • static: Applies redistribution to IP static routes
    device# configure terminal
    device(config)# router rip
    device(config-rip-router)# ipv6 router rip
    device(config-ripng-router)# redistribute ospf metric 3
    
    This example redistributes OSPF into RIPng and sets the metric for OSPF routes to 3.
    Note: To stop redistributing routes into RIPng, use the no form of the redistribute command, including the full command syntax of the active command.
  9. (Optional) Apply a preconfigured prefix list to control route distribution through RIPng.
     device(config-ripng-router)# distribute-list prefix-list routesfor2001 out
    
    This example applies a preconfigured prefix list (2001routes) to routes advertised.

The following example enables RIPng globally, sets poison-reverse as the loop prevention method, enables blocking of local routes for interfaces that are down, redistributes OSPF routes into RIPng with an added cost of 3, and applies a preconfigured prefix list (routesfor2001) to advertised routes.

device# configure terminal
device(config)# router rip
device(config-rip-router)# ipv6 router rip
device(config-ripng-router)# poison-reverse
device(config-ripng-router)# poison-local-routes
device(config-ripng-router)# redistribute ospf metric 3
device(config-ripng-router)# distribute-list prefix-list routesfor2001 out