Configuring RIP interfaces

  1. Configure the Ethernet interface link.
    device# configure terminal
    device(config)# interface ethernet 1/1/1
    
  2. To enable RIP on the interface, enter the ip rip command and, if necessary, specify the version of RIP.
    Note: RIP version 2 is the default.
    device(config-if-e1000-1/1/1)# ip rip v1-only
    
    This example enables RIP version 1 on port 1/1/1.
  3. (Optional) Change the route loop prevention method used on the interface.
    device(config-if-e10000-1/1/1)# no ip rip poison-reverse
    
    This example disables poison-reverse on the interface and enables split horizon loop prevention (the default).
  4. (Optional) To increase the metric for routes learned on the interface, enter the ip rip metric-offset command followed by the desired value and the keyword in.
    device(config-if-e1000-1/1/1)# ip rip metric-offset 5 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.
  5. (Optional) To increase the metric for RIP routes the interface advertises to neighbors, enter the ip rip metric-offset command followed by the desired value and the keyword out.
    device(config-if-e1000-1/1/1)# ip rip metric-offset 5 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.
  6. (Optional) Enable or disable learning RIP default routes on the interface.
    device(config-if-e10000-1/1/1)# ip rip learn-default
    
    This example configures Port 1/1/1 to learn default RIP routes.
  7. (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