
Command Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 3 OSPF Configuration Commands
Huawei Technologies Proprietary
3-40
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] ospf 1
[Quidway-ospf-1] area 1
[Quidway-ospf-1-area-0.0.0.1] network 131.119.0.0 0.0.255.255
[Quidway-ospf-1-area-0.0.0.1] authentication-mode md5
[Quidway-Vlan-interface10] ospf authentication-mode md5 15 Huawei
3.1.35 ospf cost
Syntax
ospf cost
value
undo ospf cost
View
Interface view
Parameter
value
: Cost for running OSPF protocol, ranging from 1 to 65,535.
Description
Use the
ospf cost
command to configure different packets sending costs so as to send
packets from different interfaces.
Use the
undo ospf cost
command to restore the default costs.
For the switch, the default cost for running OSPF protocol on a VLAN interface is 10.
Example
# Specify the cost spent when an interface runs OSPF as 33.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] interface Vlan-interface 10
[Quidway-Vlan-interface10] ospf cost 33
3.1.36 ospf dr-priority
Syntax
ospf dr-priority priority
undo ospf dr-priority
View
Interface view