Setting an OSPFv3 cost for an interface

You can set an OSPFv3 cost for an interface with one of the following methods:

To set an OSPFv3 cost for an interface:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

interface interface-type interface-number

N/A

3. Set an OSPFv3 cost for the interface.

ospfv3 cost cost-value [ instance instance-id ]

By default, the OSPFv3 cost is 1 for a VLAN interface, is 0 for a loopback interface. The OSPFv3 cost is automatically computed according to the interface bandwidth for other interfaces.

To set a bandwidth reference value:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter OSPFv3 view.

ospfv3 [ process-id | vpn-instance vpn-instance-name ] *

N/A

3. Set a bandwidth reference value.

bandwidth-reference value

The default setting is 100 Mbps.