ipv6 ospf cost

Use this command to set the cost of sending an OSPFv3 packet on an interface.

Syntax

ipv6 ospf cost cost
no ipv6 ospf cost cost

Parameters

cost Specifies the cost of sending an OSPFv3 packet on this interface. Valid values range from 1 to 65535. The default value is the reference bandwidth divided by the interface bandwidth.

Defaults

The default OSPFv3 interface cost is the reference bandwidth divided by the interface bandwidth.

Mode

Interface configuration.

Usage

Each router interface that participates in OSPFv3 routing is assigned a default cost. This command overwrites the default OSPF interface cost.

The reference bandwidth defaults to 100Mbps and can be modified using auto-cost reference-bandwidth.

The “no” form of this command resets the OSPFv3 cost to the default of 10.

Example

This example shows how to set the OSPFv3 cost to 20 for VLAN 1:

System(rw-config)->interface vlan 1
System(rw-config-intf-vlan.0.1)->ipv6 ospf cost 20