The bandwidth command sets the interface bandwidth obtained by the NMS from the MIB.
The undo bandwidth command restores the default configuration.
By default, the interface bandwidth obtained by the NMS from the MIB depends on the interface type. For example, the bandwidth of a GE interface is 1000 Mbit/s.
| Parameter | Description | Value |
|---|---|---|
bandwidth |
Specifies an interface bandwidth obtained by the NMS from the MIB. |
The value is an integer ranging from 1 to 1000000, and the default unit is Mbit/s. |
kbps |
Indicates the unit of an interface bandwidth is kbit/s. If kbps is not specified, the unit of an interface bandwidth is Mbit/s. |
- |
Ethernet interface view, Layer-2 Ethernet interface view, Eth-Trunk interface view, Layer-2 Eth-Trunk interface view, Tunnel interface view, VLANIF interface view, Virtual-Template interface view, Dialer interface view
Running the bandwidth command sets an interface bandwidth obtained by the NMS from the MIB and does not change an interface actual bandwidth. To view the command configurations, you can check the ifSpeed and ifHighSpeed objects in the IF-MIB on the NMS.
If the configured bandwidth is smaller than 4000 Mbit/s, ifSpeed and ifHighSpeed are respectively displayed as bandwidth×1000×1000 and bandwidth.
If the configured bandwidth is equal to or larger than 4000 Mbit/s, ifSpeed and ifHighSpeed are respectively displayed as 4294967295 (0XFFFFFFFF) and bandwidth.
A main interface's bandwidth determines the default sub-interface bandwidth. You can run the bandwidth command in the sub-interface view to set the interface bandwidth obtained by the NMS from the MIB.
If the bandwidth command is run more than once, the latest configuration overrides the previous one.
# Set the Eth-Trunk2 bandwidth obtained by the NMS from the MIB to 10000 Mbit/s.
<sysname> system-view [sysname] interface Eth-Trunk 2 [sysname-Eth-Trunk2] bandwidth 10000
<sysname> system-view [sysname] interface Eth-Trunk 3 [sysname-Eth-Trunk3] bandwidth 512 kbps