The bandwidth { egress | ingress } command sets the bandwidth and overloads protection threshold for the link of the specified interface.
The undo bandwidth { egress | ingress } command cancels the setting of the bandwidth and overloads protection threshold for the link of the specified interface.
bandwidth { egress | ingress } bandwidth-value [ threshold threshold ]
undo bandwidth { egress | ingress } [ threshold ]
| Parameter | Description | Value |
|---|---|---|
| egress | Indicates the outbound direction. |
- |
| ingress | Indicates the inbound direction. |
- |
| bandwidth-value | Specifies bandwidth for the link of the specified interface. |
It is an integer, in kbit/s. The minimum value is 60. The maximum value is 200000000 for logical interfaces (such as Eth-Trunk, tunnel, and VLANIF interfaces) and manually set or determined by the auto-negotiated rate for physical interfaces (such as GE interfaces). |
| threshold | Specifies the overload protection threshold. |
The value is an integer ranging from 1 to 100, in percentage. |
The FW supports bandwidth and overload protection threshold setting on Ethernet, Eth-Trunk, tunnel, WAN interfaces, and VLANIF interfaces.
If the overload protection threshold is not specified, excess traffic will be discarded after the traffic exceeds the interface processing capability.
If the interface is an intelligent uplink selection member interface, you are advised to specify the overload protection threshold for the link of the interface. If the link is overloaded (the bandwidth usage reaches the value specified in threshold), the member interface is no longer available for intelligent uplink selection, and the FW selects an outbound interface only from the member interfaces that are not overloaded. If the bandwidth usage of an overloaded link becomes smaller than threshold, the member interface participates in the intelligent uplink selection again. When all member interfaces are overloaded, the FW forwards traffic in intelligent uplink selection mode regardless of the overload.
# Set the inbound and outbound bandwidth of GigabitEthernet 0/0/1 to 10 Mbit/s and the overload protection threshold to 90%.
<sysname> system-view [sysname] interface GigabitEthernet 0/0/1 [sysname-GigabitEthernet0/0/1] bandwidth ingress 10000 threshold 90 [sysname-GigabitEthernet0/0/1] bandwidth egress 10000 threshold 90
# Cancel the setting of the inbound bandwidth and overload protection threshold of GigabitEthernet 0/0/1.
<sysname> system-view [sysname] interface GigabitEthernet 0/0/1 [sysname-GigabitEthernet0/0/1] undo bandwidth ingress
# Cancel the setting of the outbound overload protection threshold of GigabitEthernet 0/0/1.
<sysname> system-view [sysname] interface GigabitEthernet 0/0/1 [sysname-GigabitEthernet0/0/1] undo bandwidth egress threshold