The bandwidth command sets configuration bandwidth for an interface.
The undo bandwidth command cancels the configuration bandwidth set for an interface.
By default, no configuration bandwidth is set for an interface.
Parameter | Description | Value |
---|---|---|
bandwidth |
Specifies configuration bandwidth for an interface. |
The value is an integer ranging from 1 to 1000000, and the default unit is Mbit/s. |
kbps |
Specifies the unit of an interface bandwidth is kbit/s. If kbps is not specified, the unit of an interface bandwidth is Mbit/s. |
- |
100GE-Trunk member Layer 2 interface view, 100GE-Trunk member interface view, Layer 2 100GE interface view, 100ge sub-interface view, 100GE interface view, Layer 2 10GE interface view, 10GE sub-interface view, 10GE interface view, 200GE sub-interface view, 25GE-L2 view, 25GE sub-interface view, 25GE interface view, 400GE-L2 view, 400GE sub-interface view, 400GE interface view, 40GE-Trunk member Layer 2 interface view, 40GE-Trunk member interface view, Layer 2 40GE interface view, 40GE sub-interface view, 40GE interface view, Layer 2 50GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE sub-interface view, GE interface view, GE electrical interface view, Global VE sub-interface view, Global VE interface view, PW-VE sub-interface view, PW-VE interface view, Tunnel interface view, VE sub-interface view, VE interface view, Sub-interface view, Management interface view
Usage Scenario
Interface bandwidth is classified as physical bandwidth or configuration bandwidth. The bandwidth command sets configuration bandwidth for an interface, which does not affect the physical bandwidth of the interface. To view the command configurations, you can check the ifSpeed and ifHighSpeed objects in the IF-MIB on the NMS.
Precautions
A main interface's bandwidth determines the default sub-interface bandwidth.
If the bandwidth command is run more than once, the latest configuration overrides the previous one.<HUAWEI> system-view [HUAWEI] interface Eth-Trunk 1 [HUAWEI-Eth-Trunk1] bandwidth 512 kbps
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/0 [*HUAWEI-GigabitEthernet0/1/0] bandwidth 10000