Enabling RIP and Configuring Global Parameters
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.
- Enter global configuration mode.
- To enable RIP globally, enter the
router ripcommand.This example places the device in RIP router configuration mode. - (Optional) Change the route loop prevention method.
- (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.
- (Optional) Modify the administrative distance.
This example increases the administrative distance to 140.Note: The default distance is 120.
- (Optional) Modify RIP timer settings. You must enter a value for each of the timers,
even for those you are not changing.
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.
- (Optional) Enable learning of default RIP routes from RIP neighbors.
- (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. - (Optional) Modify the default redistribution
metric. 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.
- (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
This example redistributes OSPF into RIP and sets the metric for OSPF routes to 3.This example applies a previously configured route map (routemap1) to OSPF route redistribution.
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