F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
358
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.
Views
Interface view
Default command level
2: System level
Parameters
priority: Specify the router priority for the interface, in the range of 0 to 255.
Usage guidelines
The greater the value, the higher the priority for DR/BDR election. If a device has a priority of 0, it will
not be elected as a DR or BDR.
Examples
# Set the router priority on GigabitEthernet 0/1 to 8.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] ospf dr-priority 8