< Home

ospfv3 cost

Function

The ospfv3 cost command sets the cost of the interface in different instances.

The undo ospfv3 cost command restores the default cost of the interface in different instances.

Format

ospfv3 cost cost [ instance instance-id ]

undo ospfv3 cost [ cost ] [ instance instance-id ]

Parameters

Parameter Description Value
cost Specifies the cost for running OSPFv3. The value is an integer ranging from 1 to 65535. By default, it is 1.
instance instance-id Specifies instance ID of the interface. The value is an integer ranging from 0 to 255. 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

Before configuring this command, run the ipv6 enable command to enable IPv6 in the interface view.

Using the ospfv3 cost command sets the cost of an interface that runs OSPFv3. The priority of the cost set through the ospfv3 cost command is higher than that of the cost set through the bandwidth-reference command.

Example

# Specify the cost for instance 1 to run OSPFv3 on GigabitEthernet0/0/0 as 33.

<sysname> system-view
[sysname] interface GigabitEthernet 0/0/0
[sysname-GigabitEthernet0/0/0] ipv6 enable
[sysname-GigabitEthernet0/0/0] ospfv3 cost 33 instance 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >