HP VPN Firewall Appliances Network Management Command Reference
357
[Sysname-ospf-1-area-0.0.0.0] interface gigabitethernet 1/1
[Sysname-GigabitEthernet1/1] ospf bfd enable
ospf cost
Use ospf cost to set an OSPF cost for an interface.
Use undo ospf cost to restore the default.
Syntax
ospf cost value
undo ospf cost
Default
The default cost depends on the interface type: 1 for a VLAN interface; 0 for a loopback interface;
computed according to the bandwidth for other interfaces with the formula: Interface OSPF cost =
Bandwidth reference value (100 Mbps) รท Interface bandwidth (Mbps).
Views
Interface view
Default command level
2: System level
Parameters
value: Specifies an OSPF cost in the range of 0 to 65535 for a loopback interface and in the range of
1 to 65535 for other interfaces.
Usage guidelines
If the calculated cost is greater than 65535, the value of 65535 is used. If the calculated cost is smaller
than 1, the value of 1 is used.
Examples
# Set the OSPF cost on GigabitEthernet 0/1 to 65.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ospf cost 65
ospf dr-priority
Use ospf dr-priority to set the priority for DR/BDR election on an interface.
Use undo ospf dr-priority to restore the default value.
Syntax
ospf dr-priority priority
undo ospf dr-priority
Default
The router priority is 1.