- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
02-Ethernet Interface Commands | 122.54 KB |
Table of Contents
1 Ethernet Interface Configuration Commands
loopback-detection control enable
loopback-detection interval-time
l The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.
l Support of the H3C WA series WLAN access points (APs) for commands may vary by AP model. For more information, see Feature Matrix.
l The interface types and the number of interfaces vary by AP model.
broadcast-suppression
Syntax
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
View
Layer 2 Ethernet interface view
Default Level
2: System level
Parameters
ratio: Sets the broadcast suppression threshold as a percentage of the transmission capability of an Ethernet interface. The smaller the percentage, the less broadcast traffic is allowed to pass through. The value range for this argument is 1 to 100.
pps max-pps: Specifies the maximum number of broadcast packets that the Ethernet interface can forward per second, in the range 1 to 148810 (in pps, representing packets per second).
l When a suppression granularity larger than 1 is specified on the AP, the value of the pps keyword should be no smaller than and an integral multiple of the granularity. The broadcast suppression threshold value configured through this keyword on an Ethernet interface may not be the one that actually takes effect. To display the actual broadcast suppression threshold value on an Ethernet interface, use the display interface command.
l When no suppression granularity is specified or the suppression granularity is set to 1, the value of the pps keyword should be no smaller than 1, and the broadcast suppression threshold value is the one that actually takes effect on the Ethernet interface.
Description
Use the broadcast-suppression command to set the broadcast suppression threshold on one or multiple Ethernet interfaces.
Use the undo broadcast-suppression command to restore the default.
By default, Ethernet interfaces do not suppress broadcast traffic.
If you execute this command in Ethernet interface view, the configuration takes effect only on the current interface.
When broadcast traffic exceeds the broadcast traffic threshold, the interface discards broadcast packets until the broadcast traffic drops below the threshold.
If you set different broadcast suppression thresholds in Ethernet interface view multiple times, the one configured last takes effect.
Examples
# Set the broadcast suppression threshold to 20% on Ethernet interface Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] broadcast-suppression 20
description
Syntax
description text
undo description
View
Ethernet interface view
Default Level
2: System level
Parameters
text: Creates an interface description, a string of 1 to 80 characters. Valid characters and symbols include English letters (A to Z, a to z), digits (1 to 9), special English characters, spaces, and other Unicode characters and symbols.
l Each Unicode character takes the space of two regular characters.
l To use a type of Unicode characters or symbols in an interface description, install the specific input method editor and log in to the AP through remote login software that supports this character type.
l When the length of a description string reaches or exceeds the maximum line width on the terminal software, the software starts a new line, possibly breaking a Unicode character into two. As a result, garbled characters may be displayed at the end of a line.
Description
Use the description command to change the description string of an Ethernet interface.
Use the undo description command to restore the default.
By default, the description of an Ethernet interface is the interface name followed by character string Interface, Ethernet1/0/1 Interface for example.
Related commands: display interface.
Examples
# Change the description string of interface Ethernet 1/0/1 to lanswitch-interface.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] description lanswitch-interface
display brief interface
Syntax
display brief interface [ interface-type [ interface-number ] ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
|: Uses a regular expression to filter output information. For more information about regular expressions, see CLI in the Fundamentals Configuration Guide.
begin: Displays the line that matches the regular expression and all the subsequent lines.
exclude: Displays the lines that do not match the regular expression.
include: Displays only the lines that match the regular expression.
regular-expression: Regular expression, a string of 1 to 256 characters. This argument is case-sensitive.
Description
Use the display brief interface command to display brief interface information.
l If no interface type is specified, all interface information will be displayed;
l If only interface type is specified, then only information of this particular type of interfaces will be displayed.
l If both interface type and interface number are specified, then only information of the specified interface will be displayed.
Examples
# Display brief information about all interfaces.
<Sysname> display brief interface
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
Loop0 UP UP(spoofing) LOOP --
NULL0 UP UP(spoofing) NULL --
Vlan1 DOWN DOWN ETHERNET 20.1.1.11
WLAN-Radio1/0/1 UP UP DOT11 --
WLAN-Radio1/0/2 UP UP DOT11 --
The brief information of interface(s) under bridge mode:
Interface Link Speed Duplex Link-type PVID
Eth1/0/1 DOWN auto auto trunk 1
Eth1/0/2 DOWN auto auto access 1
WLAN-BSS1 DOWN -- -- access 1
WLAN-BSS2 DOWN -- -- access 1
# Display brief interface information that contains the string “UP”.
<Sysname> display brief interface | include UP
The brief information of interface(s) under route mode:
Interface Link Protocol-link Protocol type Main IP
Loop0 UP UP(spoofing) LOOP --
NULL0 UP UP(spoofing) NULL --
WLAN-Radio1/0/1 UP UP DOT11 --
WLAN-Radio1/0/2 UP UP DOT11 --
Table 1-1 display brief interface command output description
Field |
Description |
The brief information of interface(s) under route mode: |
Brief information about Layer 3 interfaces |
Interface |
Abbreviated interface name |
Link |
Physical link state of the interface, which can be up or down |
Protocol-link |
Protocol connection state of the interface, which can be up or down. Spoofing indicates that: although the network layer protocol state of an interface is up, the corresponding link may in fact not exist, or the corresponding link is non-permanent, but rather established on demand. |
Protocol type |
Interface protocol type |
The brief information of interface(s) under bridge mode: |
Brief information of Layer 2 interface(s) |
Speed |
Interface rate, in bps |
Duplex |
Duplex mode, which can be half (half duplex), full (full duplex), or auto (auto-negotiation). |
PVID |
Default VLAN ID |
display interface
Syntax
display interface [ interface-type [ interface-number ] ]
View
Any view
Default Level
1: Monitor level
Parameters
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
Description
Use the display interface command to display the current state of a specified interface and related information.
l If no interface type is specified, the command displays detailed information about all interfaces.
l If only interface type is specified, the command displays detailed information about all interfaces of the particular type.
l If both interface type and interface number are specified, the command displays detailed information about only the specified interface.
Related commands: interface.
Examples
# Display the current state of Layer 2 interface Ethernet 1/0/1 and related information.
<Sysname> display interface ethernet 1/0/1
Ethernet1/0/1 current state: DOWN
IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e200-0000
Description: Ethernet1/0/1 Interface
Loopback is not set
Media type is twisted pair, promiscuous mode not set
Unknown-speed mode, unknown-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
Flow-control is enabled
The Maximum Frame Length is 1522
Broadcast MAX-ratio: 100%
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 20%
PVID: 1
Port link-type: trunk
VLAN passing : 1(default vlan)
VLAN permitted: 1(default vlan)
Trunk port encapsulation: IEEE 802.1q
Port priority: 0
Last 300 seconds input: 0 packets/sec 0 bytes/sec -%
Last 300 seconds output: 0 packets/sec 0 bytes/sec -%
Input (total): 200 packets, 300800 bytes
200 broadcasts, 0 multicasts
Input (normal): 200 packets, – bytes
200 broadcasts, 0 multicasts
Input: 0 input errors, 0 runts, 0 giants, - throttles
0 CRC, 0 frame, 0 overruns, 0 aborts
0 ignored, - parity errors
Output (total): 201 packets, – bytes
200 broadcasts, 0 multicasts, - pauses
Output (normal): 200 packets, 300800 bytes
200 broadcasts, 0 multicasts, - pauses
Output: 1 output errors, 0 underruns, 0 buffer failures
1 aborts, 0 deferred, 0 collisions, 0 late collisions
- lost carrier, 0 no carrier
Table 1-2 display interface command output description
Field |
Description |
Ethernet1/0/1 current state |
Current physical link state of the Ethernet interface |
IP Packet Frame Type |
Frame type of the Ethernet interface |
Media type is twisted pair, promiscuous mode not set |
The media type is twisted pair, and the promiscuous mode is not set. |
Unknown-speed mode |
Unknown-speed mode, in which mode speed is negotiated between the current host and the peer. |
unknown-duplex mode |
Unknown-duplex mode, in which mode speed is negotiated between the current host and the peer. |
The Maximum Frame Length |
The maximum frame length allowed on an interface, which depends on your AP model. |
Broadcast MAX-ratio |
Broadcast storm suppression ratio (the maximum ratio of allowed number of broadcast packets to overall traffic through an interface) |
Unicast MAX-ratio |
Unicast storm suppression ratio (the maximum ratio of allowed number of unknown unicast packets to overall traffic over an interface) |
Multicast MAX-ratio |
Multicast storm suppression ratio (the maximum ratio of allowed number of multicast packets to overall traffic through an interface) |
PVID |
Default VLAN ID |
Mdi type |
Cable type |
Port link-type |
Interface link type, which could be access, trunk, and hybrid. |
VLAN passing |
VLAN whose packets are permitted to pass through the port |
VLAN permitted |
VLAN configured with the port trunk permit vlan command |
Trunk port encapsulation |
IEEE 802.1Q encapsulation is supported |
Last 300 seconds input: |
Average input rate over the last 300 seconds, among which: l packets/sec indicates the average input rate in terms of the average number of the packets received per second. l bytes/sec indicates the average input rate in terms of the average number of bytes received per second. l x% indicates the percentage of the average input rate to the total bandwidth, where - indicates that the rate is greater than the maximum value that can be displayed. |
Last 300 seconds output |
Average output rate over the last 300 seconds, among which: l packets/sec indicates the average output rate in terms of the average number of the packets output per second. l bytes/sec indicates the average output rate in terms of the average number of bytes output per second. l x% indicates the percentage of the average output rate to the total bandwidth ( - indicates that the rate is greater than the maximum value that can be displayed). |
Last 300 seconds input: 0 packets/sec 0 bytes/sec -% Last 300 seconds output: 0 packets/sec 0 bytes/sec -% |
Average rate of input and output traffic in the last 300 seconds, in pps and Bps -% is the ratio (in percentage) of the traffic rate to the total bandwidth of the interface |
Input(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, 0 pauses |
Packet statistics on the inbound direction of the interface, including the statistics of normal packets, abnormal packets, and normal pause frames, in packets and bytes Number of broadcast packets, multicast packets, and pause frames on the inbound direction of the interface |
Input(normal): - packets, - bytes - broadcasts, - multicasts, - pauses |
Normal packet statistics on the inbound direction of the interface, including the statistics of normal packets and pause frames, in packets and bytes Number of broadcast packets, multicast packets, and pause frames on the inbound direction of the interface, where “-“ indicates that the corresponding entry is not supported. |
input errors |
Input packets with errors |
runts |
Frames received that were shorter than 64 bytes, yet in correct formats, and contained valid CRCs |
giants |
Frames received that were longer than the maximum allowed frame length of the interface, 1518 bytes (without VLAN tags) or 1522 bytes (with VLAN tags) in size. |
- throttles |
The number of times the receiver on the interface was disabled, possibly because of buffer or CPU overload |
CRC |
Total number of packets received that had a normal length, but contained checksum errors |
frame |
Total number of frames that contained checksum errors and a non-integer number of bytes |
- overruns |
Number of times the receive rate of the interface exceeded the capacity of the input queue, causing packets to be discarded |
aborts |
Total number of illegal packets received, including: l Fragment frames: Frames that were shorter than 64 bytes (with an integral or non-integral length) and contained checksum errors l Jabber frames: Frames that were longer than 1518 bytes or 1522 bytes and contain checksum errors (the frame lengths in bytes may or may not be integers). l Symbol error frames: Frames that contained at least one undefined symbol l Unknown operation code frames: Frames that were MAC control frames but not pause frames l Length error frames: Frames whose 802.3 length fields did not match the actual frame lengths (46 bytes to 1500 bytes) |
ignored |
Number of received packets ignored by the interface because the interface hardware ran low on internal buffers |
- parity errors |
Total number of frames with parity errors |
Output(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, 0 pauses |
Packet statistics on the outbound direction of the interface, including the statistics of normal packets, abnormal packets, and normal pause frames, in packets and bytes Number of broadcast packets, multicast packets, and pause frames on the outbound direction of the interface |
Output(normal): - packets, - bytes - broadcasts, - multicasts, - pauses |
Normal packet statistics on the outbound direction of the interface, including the statistics of normal packets and pause frames, in packets and bytes Number of broadcast packets, multicast packets, and pause frames on the outbound direction of the interface, where “-” indicates that the corresponding entry is not supported. |
output errors |
Output packets with errors |
- underruns |
Number of times the transmit rate of the interface exceeded the capacity of the output queue, causing packets to be discarded. This is a very rare hardware-related problem. |
- buffer failures |
Number of packets dropped because the interface ran low on output buffers |
aborts |
Number of packets that failed to be transmitted due to causes such as Ethernet collisions |
deferred |
Number of frames whose first transmission attempt was delayed, due to traffic on the network media, and that were successfully transmitted later |
collisions |
Number of times frames were delayed due to Ethernet collisions detected during the transmission |
late collisions |
Number of times frames were delayed due to the detection of collisions after the first 512 bits of the frames were already on the network |
lost carrier |
Number of times the carrier was lost during transmission. This counter applies to serial WAN interfaces. |
- no carrier |
Number of times the carrier was not present in the transmission. This counter applies to serial WAN interfaces. |
display loopback-detection
Syntax
display loopback-detection
View
Any view
Default Level
1: Monitor level
Parameters
None
Description
Use the display loopback-detection command to display loopback detection information on a port.
If loopback detection is already enabled, this command will also display the detection interval and information on the ports currently detected with a loopback.
Examples
# Display loopback detection information on a port.
<Sysname> display loopback-detection
Loopback-detection is running
Detection interval time is 30 seconds
No port is detected with loopback
Table 1-3 display loopback-detection command output description
Field |
Description |
Detection interval time is 30 seconds |
Detection interval is 30 seconds. |
No port is detected with loopback |
No port is currently being detected with a loopback. |
duplex
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet interface view
Default Level
2: System level
Parameters
auto: Sets the interface to operate in auto-negotiation mode.
full: Sets the interface to operate in full-duplex mode.
half: Sets the interface to operate in half-duplex mode.
Description
Use the duplex command to set the duplex mode for an Ethernet interface.
Use the undo duplex command to restore the default duplex mode of an Ethernet interface.
By default, an Ethernet interface negotiates a duplex mode with its peer.
Related commands: speed.
A long reach Ethernet (LRE)-capable AP that operates in LRE mode does support the half-duplex mode of Ethernet interfaces.
Examples
# Set interface Ethernet 1/0/1 to work in full-duplex mode.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] duplex full
flow-control
Syntax
flow-control
undo flow-control
View
Ethernet interface view
Default Level
2: System level
Parameters
None
Description
Use the flow-control command to enable flow control on an Ethernet interface.
Use the undo flow-control command to disable flow control on an Ethernet interface.
By default, flow control is disabled on Ethernet interfaces.
To implement flow control on a link, you must enable the flow control function at both ends of the link.
Examples
# Enable flow control on interface Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] flow-control
flow-interval
Syntax
flow-interval interval
undo flow-interval
View
System view
Default Level
2: System level
Parameters
interval: Sets a statistics polling interval, in seconds. It ranges from 5 to 300 and must be a multiple of 5.
Description
Use the flow-interval command to set the interface statistics polling interval.
Use the undo flow-interval command to restore the default.
In system view, use the flow-interval command to set the interface statistics polling interval for all ports.
The default interface statistics polling interval is 300 seconds.
Examples
# Set the global interface statistics polling interval to 100 seconds.
<Sysname> system-view
[Sysname] flow-interval 100
interface
Syntax
interface interface-type interface-number
View
System view
Default Level
2: System level
Parameters
interface-type: Interface type.
interface-number: Interface number.
Description
Use the interface command to enter interface view.
Examples
# Enter Ethernet 1/0/1 interface view.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1]
loopback
Syntax
loopback { external | internal }
undo loopback
View
Ethernet interface view
Default Level
2: System level
Parameters
external: Enables external loopback testing on an Ethernet interface.
internal: Enables internal loopback testing on an Ethernet interface.
Description
Use the loopback command to enable loopback testing on an Ethernet interface.
Use the undo loopback command to disable loopback testing on an Ethernet interface.
By default, loopback testing is disabled on Ethernet interfaces.
l You enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem.
l During loopback testing, the Ethernet interface is operating in full duplex mode, regardless of its duplex setting. After loopback testing is disabled, the duplex setting of the interface restores.
Examples
# Enable loopback testing on Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback internal
loopback-detection control enable
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Layer 2 Ethernet interface view
Default Level
2: System level
Parameters
None
Description
Use the loopback-detection control enable command to enable loopback detection control on trunk or hybrid ports.
Use the undo loopback-detection control enable command to restore the default.
By default, loopback detection control is disabled on trunk and hybrid ports.
When a hybrid or trunk port detects a loop condition, it sends traps, whether loopback detection control is enabled or not. However, only after loopback detection control is enabled, will the port perform the protective action configured by using the loopback-detection action command.
This command is not applicable to access ports.
Examples
# Enable loopback detection control on trunk port Ethernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] loopback-detection enable
[Sysname-Ethernet1/0/1] loopback-detection control enable
loopback-detection enable
Syntax
loopback-detection enable
undo loopback-detection enable
View
System view, Layer 2 Ethernet interface view
Default Level
2: System level
Parameters
None
Description
Use the loopback-detection enable command to enable loopback detection globally or on a specified Ethernet interface.
Use the undo loopback-detection enable command to disable loopback detection globally or on a specified Ethernet interface.
By default, loopback detection is disabled on all Ethernet interfaces.
l When the AP detects a loop on an access port, it operates on the port according to the pre-configured protective actions, sends a trap message to the terminal, and deletes the corresponding MAC address entry.
l When the AP detects a loop on a trunk or hybrid port, it sends a trap message to the terminal. If loopback detection control is also enabled on the port, the AP operates on the port according to the pre-configured protective actions, sends a trap message to the terminal, and deletes the corresponding MAC address entry.
Related commands: loopback-detection control enable.
l To use loopback detection on an Ethernet interface, you must enable the function both globally and on the interface by using the loopback-detection enable command.
l To disable loopback detection on all interfaces, run the undo loopback-detection enable command in system view.
Examples
# Enable loopback detection on the interface Ethernet 1/0/1.
<Sysname> system-view
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback-detection enable
loopback-detection interval-time
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Default Level
2: System level
Parameters
time: Sets the loopback detection interval in seconds, in the range 5 to 300.
Description
Use the loopback-detection interval-time command to set the loopback detection interval.
Use the undo loopback-detection interval-time command to restore the default loopback detection interval.
Related commands: display loopback-detection.
Examples
# Set the loopback detection interval to 10 seconds.
<Sysname> system-view
[Sysname] loopback-detection interval-time 10
multicast-suppression
Syntax
multicast-suppression { ratio | pps max-pps }
undo multicast-suppression
View
Layer 2 Ethernet interface view
Default Level
2: System level
Parameters
ratio: Sets the multicast suppression threshold as a percentage of the transmission capability of an Ethernet interface, in the range 1 to 100. The smaller the percentage, the less multicast traffic is allowed to pass through. The value range for this argument is 1 to 100.
pps max-pps: Specifies the maximum number of multicast packets that the interface can forward per second. The max-pps argument ranges from 1 to 148810 in pps, representing packets per second.
l When a suppression granularity larger than 1 is specified on the AP, the value of the pps keyword should be no smaller than and an integral multiple of the granularity. The multicast suppression threshold value configured through this keyword on an Ethernet interface may not be the one that actually takes effect. To display the actual multicast suppression threshold value on an Ethernet interface, use the display interface command.
l When no suppression granularity is specified or the suppression granularity is set to 1, the value of the pps keyword should be no smaller than 1, and the multicast suppression threshold value is the one that actually takes effect on the Ethernet interface.
Description
Use the multicast-suppression command to set the multicast suppression threshold on an Ethernet interface.
Use the undo multicast-suppression command to restore the default.
By default, Ethernet interfaces do not suppress multicast traffic.
If you execute this command in Ethernet interface view, the configurations take effect only on the current interface.
When multicast traffic exceeds the threshold you configure, the system discards multicast packets until the multicast traffic drops below the threshold.
If you set different multicast suppression thresholds in Ethernet interface view multiple times, the one configured last takes effect.
Examples
# Set the multicast threshold to 20% on Ethernet interface Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] multicast-suppression 20
reset counters interface
Syntax
reset counters interface [ interface-type [ interface-number ] ]
View
User view
Default Level
2: System level
Parameters
interface-type: Interface type.
interface-number: Interface number.
Description
Use the reset counters interface command to clear the statistics of an interface.
Before sampling network traffic within a specific period of time on an interface, you must clear the existing statistics.
l If no interface is specified, this command clears the statistics of all the interfaces.
l If only the interface type is specified, this command clears the statistics of the interfaces that are of the interface type specified.
l If both the interface type and interface number are specified, this command clears the statistics of the specified interface.
Examples
# Clear the statistics of Ethernet 1/0/1.
<Sysname> reset counters interface ethernet 1/0/1
shutdown
Syntax
shutdown
undo shutdown
View
Ethernet interface view
Default Level
2: System level
Parameters
None
Description
Use the shutdown command to shut down an Ethernet interface.
Use the undo shutdown command to bring up an Ethernet interface.
By default, an Ethernet interface is in the up state.
In certain circumstances, modification to the interface parameters does not immediately take effect, and therefore, you must shut down and then re-enable the relative interface to make the modification work.
Examples
# Shut down interface Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] shutdown
speed
Syntax
speed { 10 | 100 | 1000 | auto }
undo speed
View
Ethernet interface view
Default Level
2: System level
Parameters
10: Sets the interface speed to 10 Mbps.
100: Sets the interface speed to 100 Mbps.
1000: Sets the interface speed to 1,000 Mbps. Only GE ports support this keyword.
auto: Enables the interface to negotiate a speed with its peer.
Support for Gigabit Ethernet interfaces varies with AP models.
Description
Use the speed command to set the speed of an Ethernet interface.
Use the undo speed command to restore the default.
By default, an Ethernet interface negotiates a speed with its peer.
Ethernet optical interfaces do not support the speed command.
Related commands: duplex.
Examples
# Set the speed of interface Ethernet 1/0/1 to 100 Mbps.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] speed 100
unicast-suppression
Syntax
unicast-suppression { ratio | pps max-pps }
undo unicast-suppression
View
Layer 2 Ethernet interface view
Default Level
2: System level
Parameters
ratio: Sets the unknown unicast suppression threshold as a percentage of the transmission capability of the Ethernet interface, in the range of 1 to 100. The smaller the percentage, the less unknown unicast traffic is allowed through.
pps max-pps: Specifies the maximum number of unknown unicast packets that the Ethernet interface can forward per second. The max-pps argument ranges from 1 to 148,810, in pps, representing packets per second.
l When a suppression granularity larger than 1 is specified on the AP, the value of the pps keyword should be no smaller than and an integral multiple of the granularity. The unicast suppression threshold value configured through this keyword on an Ethernet interface may not be the one that actually takes effect. To display the actual unicast suppression threshold value on an Ethernet interface, you can use the display interface command.
l When no suppression granularity is specified or the suppression granularity is set to 1, the value of the pps keyword should be no smaller than 1, and the unicast suppression threshold value is the one that actually takes effect on the Ethernet interface.
Description
Use the unicast-suppression command to set the unknown unicast suppression threshold on an Ethernet interface.
Use the undo unicast-suppression command to restore the default.
By default, Ethernet interfaces do not suppress unknown unicast traffic.
If you execute this command in Ethernet interface view, the configurations take effect only on the current interface.
When unknown unicast traffic exceeds the threshold you configure, the system discards unknown unicast packets until the unknown unicast traffic drops below the threshold.
Examples
# Set the unknown unicast threshold to 20% on Ethernet interface Ethernet 1/0/1.
<Sysname> system-view
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] unicast-suppression 20