Configuring RIP interfaces
- Configure the Ethernet interface link.
- To enable RIP on the interface, enter the
ip ripcommand and, if necessary, specify the version of RIP.Note: RIP version 2 is the default.This example enables RIP version 1 on port 1/1/1. - (Optional) Change the route loop prevention method used on the interface.
This example disables poison-reverse on the interface and enables split horizon loop prevention (the default).
- (Optional) To increase the metric for routes learned on the interface, enter the
ip rip metric-offsetcommand followed by the desired value and the keyword in.This example configures the port to add 5 to the cost of each RIP route it learns.Note: The metric-offset can be any value from 1 through 16. A value of 16 prevents a learned route from being used. - (Optional) To increase the metric for RIP routes the interface advertises to neighbors,
enter the
ip rip metric-offsetcommand followed by the desired value and the keyword out.This example configures the port to add 5 to the cost of each route it advertises, using the keyword out.Note: The metric-offset can be any value from 1 through 16. A value of 16 prevents an advertised route from being used. - (Optional) Enable or disable learning RIP default routes on the interface.
This example configures Port 1/1/1 to learn default RIP routes.
- (Optional) Apply filters to learn and advertise specific routes.
device(config-if-e1000-1/1/1)# ip rip prefix-list list2 in device(config-if-e1000-1/1/1)# ip rip prefix-list list3 out
This example applies a prefix list (list2) to learned routes and another prefix list (list3) to advertised routes.
The following example configures port 1/1/1 to use RIP version 1 with split horizon loop prevention. It increases the cost of learned and advertised routes by 5, enables learning default RIP routes, and applies prefix lists to learned and advertised routes.
device(config)# interface ethernet 1/1/1 device(config-if-e1000-1/1/1)# ip rip v1-only device(config-if-e10000-1/1/1)# no ip rip poison-reverse device(config-if-e1000-1/1/1)# ip rip metric-offset 5 in device(config-if-e1000-1/1/1)# ip rip metric-offset 5 out device(config-if-e10000-1/1/1)# ip rip learn-default device(config-if-e1000-1/1/1)# ip rip prefix-list list2 in device(config-if-e1000-1/1/1)# ip rip prefix-list list3 out