Command Reference Guide
Open Shortest Path First Commands
CLI Command Reference
September 2014 Page 575
HP Moonshot Switch Module CLI Command Reference
OSPF Interface Commands
ip ospf area
Use this command to enable OSPFv2 and set the area ID of an interface or range of interfaces. The area-id is
an IP address formatted as a 4-digit dotted-decimal number or a decimal value in the range of 0-4294967295.
This command supersedes the effects of the
network area command.
no ip ospf area
Use this command to disable OSPF on an interface.
bandwidth
By default, OSPF computes the link cost of an interface as the ratio of the reference bandwidth to the interface
bandwidth. Reference bandwidth is specified with the
auto-cost command. For the purpose of the OSPF link
cost calculation, use the bandwidth command to specify the interface bandwidth. The bandwidth is specified
in kilobits per second. If no bandwidth is configured, the bandwidth defaults to the actual interface bandwidth
for port-based routing interfaces and to 10 Mbps for VLAN routing interfaces. This command does not affect
the actual speed of an interface. You can use this command to configure a single interface or a range of
interfaces.
no bandwidth
Use this command to set the interface bandwidth to its default value.
Default disabled
Format
ip ospf area area-id
Mode Interface Config
Format
no ip ospf area
Mode Interface Config
Default actual interface bandwidth
Format
bandwidth 1-10000000
Mode Interface Config
Format
no bandwidth
Mode Interface Config