159
undo
ospf bfd enable
Default
BFD for OSPF is disabled.
Views
Interface view
Predefined user roles
network-admin
Parameters
echo
: Enables BFD single-hop echo detection. Without this keyword, this command enables BFD
bidirectional control detection.
Usage guidelines
Do not use OSPF FRR and BFD for OSPF at the same time. Otherwise, OSPF FRR might fail to take effect.
Examples
# Enable BFD for OSPF on VLAN-interface 11.
<Sysname> system-view
[Sysname] ospf
[Sysname-ospf-1] area 0
[Sysname-ospf-1-area-0.0.0.0] network 192.168.0.0 0.0.255.255
[Sysname] interface vlan-interface 11
[Sysname-Vlan-interface11] ospf bfd enable
ospf cost
Use
ospf cost
to set an OSPF cost for an interface.
Use
undo ospf cost
to restore the default.
Syntax
ospf cost
value
undo ospf cost
Default
An interface computes its OSPF cost according to the interface bandwidth.
Views
Interface view
Predefined user roles
network-admin
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
The
ospf cost
command sets an OSPF cost for an interface. If you do not use this command, the interface
automatically computes its OSPF cost.