The ripng metricin command sets the metric that is added to the RIPng route received by an interface.
The undo ripng metricin command restores the default metric added to a received RIPng route.
By default, an interface does not add the metric to a received RIPng route.
Parameter | Description | Value |
---|---|---|
value | Specifies the value of the metric to be added to a received RIPng route. | The value is an integer that ranges from 0 to 15. The default value is 0. |
When an interface receives a valid RIPng route, the interface adds a metric to the route before adding the route to the routing table. The metric of this route is changed in the routing table. That is, increasing the metric of an interface also increases the metric of the RIPng route received by the interface.
Before running the ripng metricin command on an interface, run the ipv6 enable command to enable IPv6 on the interface.
# Set the metric that is added to a received RIPng route to 12.
<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ripng metricin 12
# Set the metric that is added to a received RIPng route to 12.
<HUAWEI> system-view [HUAWEI] ipv6 [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ipv6 enable [HUAWEI-GigabitEthernet0/0/1] ripng metricin 12