The l2protocol-tunnel drop-threshold command sets the drop threshold of Layer 2 protocol packets that are transparently transmitted on an interface.
The undo l2protocol-tunnel drop-threshold command cancels the setting of the drop threshold.
By default, the drop threshold of Layer 2 protocol packets that are transparently transmitted on an interface is 0 pps. The rate of Layer 2 protocol packets is not limited on the interface.
l2protocol-tunnel drop-threshold rate [ { protocol-type } &<1-16> | user-defined-protocol protocol-name ]
undo l2protocol-tunnel drop-threshold [ { protocol-type } &<1-16> | user-defined-protocol protocol-name } ]
undo l2protocol-tunnel drop-threshold rate { protocol-type | user-defined-protocol protocol-name }
Parameter |
Description |
Value |
---|---|---|
rate |
Specifies the drop threshold of Layer 2 protocol packets that are transparently transmitted on an interface. |
The value is an integer that ranges from 1 to 4096, in pps. |
protocol-type |
Specifies the type of a Layer 2 protocol. The interface discards excess packets of this type of protocol when the rate of these packets exceeds the drop threshold. NOTE:
You can specify multiple protocols in the command. |
The protocol type can be:
|
user-defined-protocol protocol-name |
Sets the drop threshold of packets of a user-defined Layer 2 protocol. protocol-name specifies the name of a user-defined protocol. |
The value is a string of 1 to 31 characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string. |
After enabling Layer 2 protocol tunneling on an interface, you can run the l2protocol-tunnel drop-threshold command on this interface to set the drop threshold of protocol packets.
After Layer 2 protocol tunneling is enabled and the drop threshold of Layer 2 protocol packets is set on an interface, the interface drops excess Layer 2 protocol packets when the drop threshold is exceeded. If the trap function is enabled, the device sends a trap message to the NMS to notify the network administrator.
When using the l2protocol-tunnel drop-threshold command, pay attention to the following points:
If no Layer 2 protocol is specified, the drop threshold applies to all Layer 2 protocol packets that need to be transparently transmitted.
If a Layer 2 protocol is specified, the interface discards excess packets of the protocol when the rate of these packets exceeds the drop threshold.
If you run this command without specifying a protocol, and then run the command with a specified protocol, the drop threshold that you set the second time takes effect.