Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Run the command set protocols ospf interface vif 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 ospf interface vif cost to remove this configuration.

...

set protocols ospf interface <vlan-interface> vif <vlan-interface> cost <1-65535><vlan-interface>cost <1-65535>

delete protocols ospf interface <vlan-interface> vif <vlan-interface> cost<vlan-interface> cost



Parameter

Parameter

Description

interface

<vlan

<vlan-

interface>

interface>

Specifies the name of the VLAN interface.

vif <vlan-interface>Specifies the VIF interface name.cost <1-65535>
cost <1-65535>Specifies the link cost, the value is an integer in the range of 1 to 65535.


Example

  •  Configure the OSPF interface vlan200 cost to 5.
Code Block
admin@XorPlus# set protocols ospf interface vlan200 vif vlan200 cost 5
admin@Xorplus# commit

...