Configuration Guide Vol. 3


10.2.3 Configuring Metrics

<Structure of this section>

(1) Metric setting when advertising routing data other than RIP

Set the metric to be used when routing information learned by another protocol is advertised by RIP.

Points to note

To advertise OSPF routes or BGP4 routes via RIP, you must set the metric by using the you must set the metric using the default-metric command.

Command examples

  1. (config)# router rip

    (config-router)# network 192.168.1.0 0.0.0.255

    (config-router)# network 192.168.2.0 0.0.0.255

    (config-router)# default-metric 3

    Sets 3 as the metric to be used when routing information learned by another protocol is advertised by RIP.

  2. (config-router)# redistribute static

    Specifies that static routes are to be advertised by RIP.

  3. (config-router)# redistribute ospf

    Specifies that OSPF routes are to be advertised by RIP.

(2) Setting the value to add to the metric value when sending or receiving packets

Set the value by which to increment the metric for sending and receiving RIP packets.

Points to note

The example below shows how to use the metric-offset command to set the value to be added to the metric of an incoming or outgoing route via a specific interface.

Command examples

  1. (config)# router rip

    (config-router)# network 192.168.1.0 0.0.0.255

    (config-router)# network 192.168.2.0 0.0.0.255

    (config-router)# metric-offset 2 vlan 10 out

    Adds 2 to the metric of RIP packets sent from interface vlan 10.

  2. (config-router)# metric-offset 2 vlan 20 in

    Adds 2 to the metric of RIP packets received from interface vlan 20.