R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
264
Use the undo ospf cost command to restore the default.
By default, the OSPF cost for a loopback interface is 0, and an OSPF interface calculates its cost with the
formula: interface default OSPF cost=100 Mbps/interface bandwidth(Mbps). Default OSPF costs of
some interfaces are:
1785 for the 56 kbps serial interface
1562 for the 64 kbps serial interface
48 for the E1 (2.048 Mbps) interface
1 for the Ethernet (100 Mbps) interface
You can use the ospf cost command to set an OSPF cost for an interface manually.
NOTE:
This configuration is not supported on null interfaces.
Examples
# Set the OSPF cost for the interface to 65.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/0
[Sysname-GigabitEthernet0/0] ospf cost 65
ospf dr-priority
Syntax
ospf dr-priority priority
undo ospf dr-priority
View
Interface view
Default level
2: System level
Parameters
priority: DR Priority of the interface, in the range 0 to 255.
Description
Use the ospf dr-priority command to set the priority for DR/BDR election on an interface.
Use the undo ospf dr-priority command to restore the default value.
By default, the priority is 1.
The bigger the value, the higher the priority. If a device has a priority of 0, it will not be elected as a DR
or BDR.
The DR priority configuration is not supported on the null and loopback interfaces.
Examples
# Set the DR priority on the current interface to 8.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/0