< Home

Configuring Additional Metrics of an Interface

You can set additional metrics for received and sent RIPng routes by using different commands.

Context

The additional route metric is the metric (hop count) to be added to the original metric of a RIPng route.

  • The ripng metricin command is used to configure a device to add an additional metric to a received route before the device adds the route to its routing table, causing the metric of the route in the routing table to change. Running this command affects route selection on the device and other devices.
  • The ripng metricout command is used to configure a device to add an additional metric to a route before the device advertises the route, keeping the metric of the route in the routing table unchanged. Running this command does not affect route selection on the local device but will affect route selection of other devices.

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type interface-number

  3. Set a metric added to a received route.

    ripng metricin value

  4. Set a metric added to a sent route.

    ripng metricout { value | { acl6-number | ipv6-prefix ipv6-prefix-name } value1 }

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

    If the router connects to other RIPng routers through multiple interfaces, repeatedly perform Step 2 to Step 4 until metrics of all links are set.

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