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:
- Enter global configuration mode.
- Enter RIP router configuration mode.
- Enter the following command to enable RIPng.
This example enables RIPng and places the device in RIPng router configuration mode.
- (Optional) Change the route loop prevention method.
- (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.
- (Optional) Modify the administrative distance.
This example increases the administrative distance to 140.
- (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.Note: Do not enable redistribution until you configure the other redistribution parameters. - (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. - (Optional) Apply a preconfigured
prefix list to control route distribution through RIPng. 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