< Home

ripng metricout

Function

The ripng metricout command sets the metric that is added to the RIPng route sent by an interface.

The undo ripng metricout command restores the default setting.

By default, the metric that is added to the RIPng route sent by an interface is 1.

Format

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

undo ripng metricout

Parameters

Parameter Description Value
value Specifies the metric added to a sent route. The value is an integer that ranges from 1 to 15. The default value is 1.
acl6-number Specifies the number of a basic IPv6 ACL. The value is an integer ranging from 2000 to 2999.
acl6-name acl6-name Specifies the name of a named IPv6 ACL. The name is a string of 1 to 64 case-sensitive characters without spaces.
ipv6-prefix ipv6-prefix-name Specifies the name of an IPv6 prefix list. The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
value1 Specifies the metric added to the route matching the IPv6 prefix list. The value is an integer that ranges from 2 to 15.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

An interface adds a metric to a route before advertising the route. Therefore, increasing the metric of an interface also increases the metric of the RIPng routes sent by the interface. The metric of the route in the routing table, however, remains unchanged.

Before running the ripng metricout command on an interface, run the ipv6 enable command to enable IPv6 on the interface.

Example

# Set the metric that is added to a route sent on an interface to 12.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ripng metricout 12

# Set the metric that is added to a route sent on an interface 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 metricout 12

# Set the metric that is added to the RIPng route matching IPv6 prefix list p1 to 12.

<HUAWEI> system-view
[HUAWEI] ipv6
[HUAWEI] ip ipv6-prefix p1 permit fc00:0:0:1::1 128
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ipv6 enable
[HUAWEI-Vlanif100] ripng metricout ipv6-prefix p1 12
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >