interface-bandwidth-type

Function

The interface-bandwidth-type command specifies the type of bandwidth used by an interface for OSPF cost calculation.

The undo interface-bandwidth-type command restores the default configuration.

By default, an interface uses data-link-layer bandwidth for OSPF cost calculation.

This command is supported only on the NetEngine 8000 F1A.

Format

interface-bandwidth-type { physical | data-link }

undo interface-bandwidth-type

Parameters

Parameter Description Value
physical

Specifies physical-layer bandwidth.

-

data-link

Specifies data-link-layer bandwidth.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
system write

Usage Guidelines

Usage Scenario

The formula for calculating interface OSPF cost is as follows: OSPF cost = Reference bandwidth/Interface bandwidth. To specify the type of interface bandwidth, run the interface-bandwidth-type command. Specify physical if you want to use physical-layer bandwidth and data-link if you want to use data-link-layer bandwidth. By default, an interface uses data-link-layer bandwidth for OSPF cost calculation.

In VS mode, this command is supported only by the admin VS.

Example

# Configure an interface to use physical-layer bandwidth for OSPF cost calculation.
<HUAWEI> system-view
[~HUAWEI] interface-bandwidth-type physical
# Delete the bandwidth type specified for OSPF cost calculation.
<HUAWEI> system-view
[~HUAWEI] undo interface-bandwidth-type
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >