< Home

ripng metricin

Function

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 setting.

By default, the metric that is added to the received route is 0.

Format

ripng metricin value

undo ripng metricin

Parameters

Parameter Description Value
value Specifies the metric that is added to the received route. The value is an integer ranging from 0 to 15. By default, it is 0.

Views

Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

When a valid RIPng route is received, the additional metric is added to the route before it is installed into the routing table. The metric of the route in the routing table is therefore changed. That is, increasing the metric of an interface also increases the metric of the RIPng route received by the interface.

The command can take effect only after IPv6 is enabled for the interface by the ipv6 enable command.

Example

# Set the metric that is added to the received route to 12.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 enable
[sysname-GigabitEthernet0/0/0] ripng metricin 12
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >