< 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 | ipv6-prefix ipv6-prefix-name } value1 }

undo ripng metricout

Parameters

Parameter Description Value

value

Specifies the metric that is added to the sent route.

The value is an integer ranging from 1 to 15. By default, it is 1.

acl6-number

Specifies the number of a basic IPv6 ACL.

The value is an integer ranging from 2000 to 2999.

ipv6-prefix ipv6-prefix-name

Specifies the name of the IPv6 prefix list.

The value must be the name of an existing IPv6 prefix list.

value1

Specifies the metric that is added to the route that passes the filtering of the ACL6 or IPv6 prefix list.

The value is an integer ranging from 2 to 15.

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 RIPng route is advertised, the additional metric is added to the route. Therefore, increasing the metric of an interface also increases the metric of the RIPng route sent by the interface. However, the metric of the route in the routing table remains unchanged.

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

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

Example

# Set the metric that is added to the sent RIPng route to 12.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 enable
[sysname-GigabitEthernet0/0/0] ripng metricout 12

# Increase the metric of a RIPng route that passes the filtering of ACL6 2050 by 12.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ripng metricout 2050 12

# Increase the metric of a RIPng route that passes the filtering of the IPv6 prefix list named p1 by 12.

<sysname> system-view
[sysname]ip ipv6-prefix p1 permit 2001:db8::1:1 128
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ripng metricout ipv6-prefix p1 12
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >