< Home

Configuring Additional Metrics of an Interface

The additional metric is the metric (hop count) to be added to the original metric of a RIP route. You can specify commands to set additional metrics for incoming and outgoing RIP routes.

Context

The additional metric is added to the original metric of the RIP route.
  • The rip metricin command is used to add an additional metric to an incoming route. After this route is added to the routing table, its metric in the routing table changes. Running this command affects route selection on the local device and other devices on the network.

  • The rip metricout command is used to add an additional metric to an outgoing route. When this route is advertised, an additional metric is added to this route, but the metric of the route in the routing table does not change. Running this command does not affect route selection on the local device or other devices on the network.

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type interface-number

  3. Run any of the following commands as required:

    • Based on the basic ACL:

      Run the rip metricin { value | acl-number value1 } command to set the metric added to an incoming route.

    • Based on the IP prefix:

      Run the rip metricin { value | ip-prefix ip-prefix-name value1 } command.

    You can specify the value of metricin to be added to the RIP route that passes the filtering policy by specifying value1 through an ACL or an IP prefix list. If a RIP route does not pass the filtering, its metric is not increased.

  4. Run any of the following commands as required:

    • Based on the basic ACL:

      Run the rip metricout { value | acl-number value1 } command to set the metric added to an outgoing route.

    • Based on the IP prefix:

      Run the rip metricout { value | ip-prefix ip-prefix-name value1 } command.

    You can specify the value of metricout to be added to the RIP route that passes the filtering policy by specifying value1 through an ACL or an IP prefix list. If a RIP route does not pass the filtering, its metric is increased by 1.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >