To configure the cost of an OSPFv6 interface, use the set protocols ospf6 area interface vif interface-cost command in L2/L3 configuration mode.

Command Syntax

set protocols ospf6 vrf vrf-name area area-id interface interface-name vif vif-name interface-cost cost



Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

Note that: The configuration is in the default VRF if not explicitly bound to any VRF.

area-idOSPFv3 area identifier.
interface-nameInterface name.
vif-nameVirtual interface name.
costOSPFv3 cost. The range is 1-65535.


The following example configures the OSPFv3 cost of vlan2 interface as 3:

admin@Switch# set protocols ospf6 area interface vlan2 vif vlan2 interface-cost 3