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.
By default, the cost of the interface in different instances is 1.
Parameters
Parameter | Description | Value |
---|---|---|
cost | Specifies the cost for running OSPFv3. | The value is an integer ranging from 1 to 65535. The default value is 1. |
instance instance-id | Specifies the instance ID of the interface. | The value is an integer ranging from 0 to 255. The default value is 0. |
Usage Guidelines
Before running this command on an interface, run the ospfv3 area command on the interface to enable OSPFv3.
Example
# Set the cost for public instance to run OSPFv3 on VLANIF 10 to 33.
<AC6605> system-view
[AC6605] ipv6
[AC6605] ospfv3
[AC6605-ospfv3-1] router-id 1.1.1.1
[AC6605-ospfv3-1] quit
[AC6605] interface vlanif 10
[AC6605-Vlanif10] ipv6 enable
[AC6605-Vlanif10] ospfv3 1 area 1
[AC6605-Vlanif10] ospfv3 cost 33