R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

114
Default command level
2: System level
Parameters
echo: Configures BFD echo packet single-hop detection. If this keyword is not specified, BFD control
packet bidirectional detection is enabled.
Examples
# Enable OSPF and BFD on Ethernet 1/1.
<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-ospf-1-area-0.0.0.0] interface ethernet 1/1
[Sysname-Ethernet1/1] ospf bfd enable
ospf cost
Use ospf cost to set an OSPF cost for the interface.
Use undo ospf cost to restore the default.
Syntax
ospf cost value
undo ospf cost
Default
The default cost depends on the interface type: 1 for a VLAN interface; 0 for a loopback interface;
computed according to the bandwidth for other interfaces with the formula: Interface OSPF cost =
Bandwidth reference value (100 Mbps) รท Interface bandwidth (Mbps).
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 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 for the interface to 65.
<Sysname> system-view
[Sysname] interface Ethernet 1/1
[Sysname-Ethernet1/1] ospf cost 65