H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 3 OSPF Configuration Commands
3-38
3.1.32 ospf cost
Syntax
ospf cost value
undo ospf cost
View
Interface view
Parameters
value: Value of OSPF cost, in the range 1 to 65535.
Description
Use the ospf cost command to configure the cost for running OSPF on the interface.
Use the undo ospf cost command to restore the default cost.
For the switch, the default cost for running OSPF protocol on a VLAN interface is 1.
Examples
# Set the current OSPF interface cost to 33.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Vlan-interface 10
[H3C-Vlan-interface10] ospf cost 33
3.1.33 ospf dr-priority
Syntax
ospf dr-priority value
undo ospf dr-priority
View
Interface view
Parameters
value: DR priority of the interface, in the range 0 to 255. The default value is 1.
Description
Use the ospf dr-priority command to configure the priority for DR election on an
interface.
Use the undo ospf dr-priority command to restore the default value.