set protocols ospf6 interface cost

Run the command set protocols ospf6 interface cost to set the OSPF link cost for the specified interface. The cost value is set to router-LSA’s metric field and used for SPF calculation. Changing the interface cost causes the OSPF to run the SPF and reissue LSAs.

Run the command delete protocols ospf6 interface cost to remove this configuration.


Command Syntax

set protocols ospf6 interface <interface-name> cost <1-65535>

delete protocols ospf6 interface <interface-name> cost



Parameter

Parameter

Description

interface <interface-name>Specifies the VLAN interface name, the loopback interface name, the routed interface or the sub-interface name.
cost <1-65535>Specifies the link cost, the value is an integer in the range of 1 to 65535.

Example

  •  Set the OSPFv3 interface vlan200 cost to 5.
admin@XorPlus# set protocols ospf6 interface vlan200 cost 5
admin@Xorplus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.