ip rip metric-offset

Increases the cost metric an interface applies to learned or advertised RIP routes.
Syntax
ip rip metric-offset num { in | out }
no ip rip metric-offset num { in | out }
Command Default

By default, the interface adds one to the route metric before storing the route.

Parameters
num
A decimal number from 1 through 16 that the interface adds to the cost metric for learned or advertised RIP routes.
in
Applies cost to routes the interface learns from RIP neighbors.
out
Applies cost to routes the interface advertises to RIP neighbors.
Modes

Interface configuration mode

Usage Guidelines

The no form of the command removes the added cost from RIP routes learned or advertised on the interface.

Routes with a higher cost are less likely to be used. You can prevent the RIP router from using a route learned on a particular interface by adding a cost metric of 16 on the interface.

Examples

The following example adds 5 to the cost metric for routes advertised on Ethernet interface 1/2/3 (Device 1/Slot 2/Interface 3).

device# configure terminal
device(config)# interface ethernet 1/2/3
device(config-if-e1000-1/2/3)# ip rip metric-offset 5 out

The following example returns the advertised route metric to default (1) for the interface in the previous example.

device# configure terminal
device(config)# interface ethernet 1/2/3
device(config-if-e1000-1/2/3)# no ip rip metric-offset 5 out

The following example prevents the RIP router from using RIP routes learned on Ethernet interface 1/2/3.

device# configure terminal
device(config)# interface ethernet 1/2/3
device(config-if-e1000-1/2/3)# ip rip metric-offset 16 in