160
Examples
# Set the OSPF cost on VLAN-interface 10 to 65.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf cost 65
Related commands
bandwidth-reference
ospf dr-priority
Use ospf dr-priority to set the router 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
Predefined user roles
network-admin
Parameters
priority: Specifies 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 VLAN-interface 10 to 8.
<Sysname> system-view
[Sysname] interface vlan-interface 10
[Sysname-Vlan-interface10] ospf dr-priority 8
ospf fast-reroute lfa-backup
Use ospf fast-reroute lfa-backup to enable LFA on the interface.
Use undo ospf fast-reroute lfa-backup to disable LFA on the interface.
Syntax
ospf fast-reroute lfa-backup
undo ospf fast-reroute lfa-backup