02-Layer 2 Command Reference

HomeSupportWirelessH3C WX3000E Series Wireless SwitchesReference GuidesCommand ReferencesH3C WX3000E Series Wireless Switches Switching Engine Command References(R3507P26)-6W10202-Layer 2 Command Reference
01-Ethernet Interface Commands
Title Size Download
01-Ethernet Interface Commands 194.37 KB

The term "switch" or "device" in this chapter refers to the switching engine on a WX3000E wireless switch.

The WX3000E series comprises WX3024E and WX3010E wireless switches.

The port numbers in this chapter are for illustration only.

broadcast-suppression

Syntax

broadcast-suppression { ratio | pps max-pps | kbps max-kbps }

undo broadcast-suppression

View

Ethernet interface view, port group 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. This argument ranges from 1 to 100. The system default is 100.

pps max-pps: Specifies the maximum number of broadcast packets that the Ethernet interface can forward per second, ranging from 1 to 1488100 in pps.

kbps max-kbps: Specifies the maximum number of kilobits of broadcast traffic that the Ethernet interface can forward per second (in kbps). This argument ranges from 1 to 1024000.

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 interface. If you execute this command in port group view, the configuration takes effect on all the ports in the port group.

When broadcast traffic exceeds the broadcast suppression threshold, the interface discards broadcast packets until the broadcast traffic drops below the threshold.

 

 

NOTE:

·       If you set different broadcast suppression thresholds in Ethernet interface view or port group view multiple times, the one configured last takes effect.

·       For a particular type of traffic, configure either storm suppression or storm control, but not both. If both of them are configured, you may fail to achieve the expected storm control effect.

 

Examples

# Set the broadcast suppression threshold to 20% on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] broadcast-suppression 20

# Set the broadcast suppression threshold to 20% on all ports in the manual port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2

[Sysname-port-group-manual-group1] broadcast-suppression 20

description

Syntax

description text

undo description

View

Ethernet interface view

Default level

2: System level

Parameters

text: Specifies the interface description, a string of 1 to 80 characters. The string can include case-sensitive letters, digits, special characters (including ~ ! @ # $ % ^ & * ( ) - _ + = { } [ ] | \ : ; " ' < > , . /), spaces, and other Unicode characters and symbols.

 

 

NOTE:

·       Each Unicode character takes the space of two regular characters.

·       To use Unicode characters or symbols in an interface description, install the specific input method editor and log in to the device through remote login software that supports the character type.

·       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 of the interface.

Use the undo description command to restore the default.

The default description of an interface is the interface name plus Interface. For example, GigabitEthernet 1/0/1 Interface.

Related commands: display interface.

Examples

# Change the description of interface GigabitEthernet 1/0/1 to lanswitch-interface.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] description lanswitch-interface

display interface

Syntax

display interface [ interface-type ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]

display interface interface-type interface-number [ brief ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information.

down: Displays information about interfaces in the down state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display interface command to display Ethernet interface information.

If no interface type is specified, this command displays information about all interfaces.

If an interface type is specified but no interface number is specified, this command displays information about all interfaces of that type.

Related commands: interface.

Examples

# Display detailed information about interface GigabitEthernet 1/0/1.

<Sysname> display interface gigabitethernet1/0/1

GigabitEthernet1/0/1 current state: UP

 IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e000-0010

 Description: GigabitEthernet1/0/1 Interface

 Loopback is not set

 Media type is twisted pair, Port hardware type is 1000_BASE_T

 1000Mbps-speed mode, full-duplex mode

 Link speed type is autonegotiation, link duplex type is autonegotiation

 Flow-control is not enabled

 The Maximum Frame Length is 10240

 Broadcast MAX-ratio: 100%

 Unicast MAX-ratio: 100%

 Multicast MAX-ratio: 100%

 PVID: 1

 Mdi type: auto

 Port link-type: access

  Tagged   VLAN ID : none

  Untagged VLAN ID : 1

 Port priority: 0

Last clearing of counters:  Never

 Peak value of input: 1205 bytes/sec, at 2000-04-26 12:02:26

 Peak value of output: 299 bytes/sec, at 2000-04-26 12:00:51

 Last 300 seconds input:  7 packets/sec 659 bytes/sec 0%

 Last 300 seconds output:  1 packets/sec 109 bytes/sec 0%

 Input (total):  34606 packets, 3026637 bytes

          1846 unicasts, 27572 broadcasts, 5188 multicasts, 0 pauses

 Input (normal):  34606 packets, 3026637 bytes

          1846 unicasts, 27572 broadcasts, 5188 multicasts, 0 pauses

 Input:  0 input errors, 0 runts, 0 giants, - throttles

          0 CRC, 0 frame, 0 overruns, 0 aborts

          - ignored, - parity errors

 Output (total): 1388 packets, 157690 bytes

          1139 unicasts, 2 broadcasts, 247 multicasts, 0 pauses

 Output (normal): 1388 packets, 157690 bytes

          1139 unicasts, 2 broadcasts, 247 multicasts, 0 pauses

 Output: 0 output errors, - underruns, - buffer failures

          0 aborts, 0 deferred, 0 collisions, 0 late collisions

          - lost carrier, - no carrier         

Table 1 display interface command (in bridge mode) output description

Field

Description

GigabitEthernet1/0/1 current state

Physical state of the Ethernet interface. For more information, see Table 2.

IP Packet Frame Type

Ethernet framing format on the interface.

Description

Description of the interface.

Loopback

Loopback testing status of the interface.

100Mbps-speed mode, half-duplex mode

The interface operates at 100 Mbps and in half duplex mode.

Link speed type is autonegotiation

The interface will negotiate a speed with its peer.

link duplex type is autonegotiation

The interface will negotiate a duplex mode with its peer.

The Maximum Frame Length

The maximum Ethernet frame length allowed on the interface.

Broadcast MAX-ratio

Broadcast suppression threshold as a percentage of the interface transmission capability. When the threshold is exceeded, the interface drops broadcast packets.

Unicast MAX-ratio

Unknown unicast suppression threshold as a percentage of the interface transmission capability. When the threshold is exceeded, the interface drops unknown unicast packets.

Multicast MAX-ratio

Multicast suppression threshold as a percentage of the interface transmission capability. When the threshold is exceeded, the interface drops multicast packets.

PVID

Default VLAN ID.

Mdi type

Cable type.

Port link-type

Link type of the interface, which could be access, trunk, and hybrid.

Tagged   VLAN ID

VLANs for which the interface sends packets without removing VLAN tags.

Untagged VLAN ID

VLANs for which the interface sends packets after removing VLAN tags.

Last clearing of counters:  Never

Time when the reset counts interface command was last used to clear statistics on the interface. Never indicates that the reset counts interface command was never used since the device was started.

Peak value of input

Peak value of inbound traffic, in bytes/sec.

Peak value of output

Peak value of outbound traffic, in bytes/sec.

Last 300 seconds input:  7 packets/sec 659 bytes/sec 0%

Last 300 seconds output:  1 packets/sec 109 bytes/sec 0%

Average rate of input and output traffic in the last 300 seconds, in pps and Bps.

Input (total):  34606 packets, 3026637 bytes

          1846 unicasts, 27572 broadcasts, 5188 multicasts, 0 pauses

Inbound traffic statistics (in packets and bytes) for the interface. All inbound normal and abnormal packets (including unicast, broadcast, and multicast), and pause frames were counted.

Input (normal):  34606 packets, 3026637 bytes

          1846 unicasts, 27572 broadcasts, 5188 multicasts, 0 pauses

Inbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface.

input errors

Inbound packets with errors.

runts

Inbound frames shorter than 64 bytes, in correct format, and containing valid CRCs.

Giants

The number of giant frames received. A giant frame refers to an untagged frame larger than 10236 bytes or a VLAN-tagged frame lager than 10240 bytes.

- throttles

The number of times that the port shut down due to buffer or CPU overload.

CRC

Total number of inbound frames that had a normal length, but contained checksum errors.

frame

Total number of inbound frames that contained checksum errors and a non-integer number of bytes.

- overruns

Number of packet drops because the input rate of the port exceeded the queuing capability.

aborts

Total number of illegal inbound packets:

·       Fragment frames—CRC error frames shorter than 64 bytes. The length can be an integral or non-integral value.

·       Jabber frames—CRC error frames greater than the maximum frame length (10236 for untagged frames or 10240 for VLAN-tagged frames) supported on the Ethernet interface (with an integral or non-integral length).

·       Symbol error frames—Frames that contained at least one undefined symbol.

·       Unknown operation code frames—Non-pause MAC control frames

·       Length error frames—Frames whose 802.3 length fields did not accord with the actual frame length (46 to 1500 bytes).

ignored

Number of inbound frames dropped because the receive buffer of the port ran low.

- parity errors

Total number of frames with parity errors.

Output (total): 1388 packets, 157690 bytes

          1139 unicasts, 2 broadcasts, 247 multicasts, 0 pauses

Outbound traffic statistics (in packets and bytes) for the port. All outbound normal and abnormal packets (including unicast, broadcast, and multicast), and pause frames were counted.

Output (normal): 1388 packets, 157690 bytes

          1139 unicasts, 2 broadcasts, 247 multicasts, 0 pauses

Outbound normal traffic (including unicast, broadcast, and multicast) and pause frame statistics (in packets and bytes) for the interface.

output errors

Outbound error packet statistics.

- underruns

Number of packet drops because the output rate of the interface exceeded the output queuing capability. This is a low-probability hardware anomaly.

- buffer failures

Number of packets dropped because the transmit buffer of the interface ran low.

aborts

Number of packets that failed to be transmitted, for example, because of Ethernet collisions.

deferred

Number of frames that the interface deferred to transmit because of detected collisions.

collisions

Number of frames that the interface stopped transmitting because Ethernet collisions were detected during transmission.

late collisions

Number of frames that the interface deferred to transmit after transmitting their first 512 bits, because of detected collisions.

lost carrier

Number of carrier losses during transmission. This counter applies to serial WAN interfaces.

- no carrier

Number of times that the port failed to detect the carrier when attempting to send frames. This counter applies to serial WAN interfaces.

 

 

NOTE:

If an output field is not available, a hyphen (-) is displayed.

 

Table 2 Description on the possible physical states of an Ethernet interface

Field

Description

UP

The interface is physically up.

DOWN

The interface is physically down because no physical connection exists (possibly reason: the network cable is disconnected or faulty).

DOWN ( Administratively )

The interface is physically down because it was shut down with the shutdown command. To restore its physical state, use the undo shutdown command.

DOWN ( Link-Aggregation interface down )

The interface is physically down because the aggregate interface corresponding to the aggregation group to which it belongs was shut down with the shutdown command.

DOWN ( OAM connection failure )

The interface is physically down because an OAM connection fails to be established on it or the OAM connection is disconnected.

DOWN ( DLDP connection failure )

The interface is physically down because a DLDP connection fails to be established on it or the DLDP connection is disconnected.

DOWN ( Loopback detection-protected )

The interface is shut down because a loop is detected on it.

DOWN ( BPDU-protected )

The interface is shut down by the BPDU guard function.

 

# Display brief information about all interfaces.

<Sysname> display interface brief

The brief information of interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Main IP         Description

NULL0                UP   UP(s)    --

Vlan1                UP   UP       192.168.0.101

 

The brief information of interface(s) under bridge mode:

Link: ADM - administratively down; Stby - standby

Speed or Duplex: (a)/A - auto; H - half; F - full

Type: A - access; T - trunk; H - hybrid

Interface            Link Speed   Duplex Type PVID Description

BAGG1                UP   2G(a)   F(a)   A    1

GE1/0/1              DOWN auto    A      A    1

GE1/0/2              DOWN auto    A      A    1

GE1/0/3              DOWN auto    A      A    1

GE1/0/4              UP   100M(a) F(a)   A    1

GE1/0/5              DOWN auto    A      A    1

GE1/0/6              DOWN auto    A      A    1

GE1/0/7              DOWN auto    A      A    1

GE1/0/8              DOWN auto    A      A    1

GE1/0/9              DOWN auto    A      A    1

GE1/0/10             DOWN auto    A      A    1

  ---- More ----

# Filter the brief interface information to display the line starting with the (s) string and all subsequent lines.

<Sysname> display interface brief | begin (s)

The brief information of interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Main IP         Description

NULL0                UP   UP(s)    --

Vlan1                UP   UP       192.168.0.89

# Display brief information about all UP interfaces.

<Sysname> display interface brief | include UP

 Bridge-Aggregation1 current state: UP

 GigabitEthernet1/0/4 current state: UP

 GigabitEthernet1/0/29 current state: UP

 GigabitEthernet1/0/30 current state: UP

NULL0 current state: UP

Line protocol current state: UP (spoofing)

Vlan-interface1 current state: UP

Line protocol current state: UP

# Display the brief information about all but Ethernet interfaces.

<Sysname> display interface brief | exclude GE

The brief information of interface(s) under route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface            Link Protocol Main IP         Description

NULL0                UP   UP(s)    --

Vlan1                UP   UP       192.168.0.89               

# Display information about interfaces in the down state and the relevant causes.

<Sysname> display interface brief down

The brief information of interface(s) under bridge mode:

Link: ADM - administratively down; Stby - standby

Interface            Link Cause

GE1/0/1              DOWN Not connected

GE1/0/2              DOWN Not connected

GE1/0/3              DOWN Not connected

GE1/0/5              DOWN Not connected

GE1/0/6              DOWN Not connected

GE1/0/7              DOWN Not connected

GE1/0/8              DOWN Not connected

GE1/0/9              DOWN Not connected

GE1/0/10             DOWN Not connected

GE1/0/11             DOWN Not connected

GE1/0/12             DOWN Not connected

GE1/0/13             DOWN Not connected

GE1/0/14             DOWN Not connected

GE1/0/15             DOWN Not connected

GE1/0/16             DOWN Not connected

GE1/0/17             DOWN Not connected

GE1/0/18             DOWN Not connected

GE1/0/19             DOWN Not connected

GE1/0/20             DOWN Not connected

GE1/0/21             DOWN Not connected

  ---- More ----

Table 3 display interface bridge command output description

Field

Description

The brief information of interface(s) under bridge mode:

The command displays brief information about Layer 2 interfaces.

Link: ADM - administratively down; Stby - standby

ADM—The interface has been shut down by the network administrator. To recover its physical layer state, perform the undo shutdown command.

Stby—The interface is a standby interface.

Protocol: (s) - spoofing

If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). This attribute is typical of interface Null 0 and the loopback interfaces.

Interface

Interface name.

Link

Physical link state of the interface:

·       UP—The link is up.

·       DOWN—The link is physically down.

·       ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command.

·       Stby—The interface is a standby interface.

Protocol

Protocol connection state of the interface, which can be UP, DOWN, or UP(s).

Speed or Duplex: (a)/A - auto; H - half; F - full

If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag, letter a in parentheses.

If the duplex mode of an interface is automatically negotiated, its duplex mode attribute includes the following options:

·       (a)/A—Auto negotiation

·       H—Half negotiation

·       F—Full negotiation

Type: A - access; T - trunk; H - hybrid

Link type options for Ethernet interfaces.

Speed

Interface rate, in bps.

Duplex

Duplex mode of the interface:

·       A—Auto-negotiation

·       F—Full duplex

·       F(a)—Auto-negotiated full duplex

·       H—Half duplex

·       H(a)—Auto-negotiated half duplex

Type

Link type of the interface:

·       A—Access

·       H—Hybrid

·       T—Trunk

PVID

Default VLAN ID of the interface.

Cause

Causes for the physical state of an interface to be DOWN. For more information, see Table 4.

 

Table 4 Causes for the physical state of an interface to be DOWN

Field

Description

Not connected

No physical connection exists (possibly because the network cable is disconnected or faulty).

Administratively

The port was shut down with the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

Link-Aggregation interface down

The aggregate interface corresponding to the aggregation group to which the interface belongs was shut down with the shutdown command.

OAM connection failure

OAM connection fails (possibly because the connection fails to be established or the connection is disconnected).

DLDP connection failure

DLDP connection fails (possibly because the connection fails to be established or the connection is disconnected).

Loopback detection-protected

The interface is shut down because a loop is detected on it.

BPDU-protected

The interface is shut down by the BPDU guard function.

 

display loopback-detection

Syntax

display loopback-detection [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display loopback-detection command to display the status of the loopback detection function.

If loopback detection is enabled, this command also displays the detection interval and ports in a loop condition.

Examples

# Display information about loopback detection.

<Sysname> display loopback-detection

 Loopback-detection is running.

 Loopback-detection is in multi-port mode.

 Detection interval time is 30 seconds.

 No port is detected with loopback.

Table 5 Output description

Field

Description

Loopback-detection is in multi-port mode.

Multi-port loopback detection is enabled.

Detection interval time is 30 seconds.

Loopback detection interval is 30 seconds.

No port is detected with loopback.

No loops are detected on ports.

 

display port-group manual

Syntax

display port-group manual [ all | name port-group-name ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

2: System level

Parameters

all: Displays information about all port groups.

name port-group-name: Specifies the name of a port group, a string of 1 to 32 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display port-group manual command to display information about port groups.

If the all keyword is specified, this command displays the name and member Ethernet interfaces of each port group on the device.

If a port group is specified, this command displays its name and member Ethernet interfaces.

If you do not specify the all keyword or any port group name, the command displays the name of each port group on the device.

Examples

# Display the names of all port groups.

<Sysname> display port-group manual

The following manual port group exist(s):

group1                                    group2

# Display detailed information about all port groups.

<Sysname> display port-group manual all

Member of group1:

    GigabitEthernet1/0/1            GigabitEthernet1/0/2            GigabitEthernet1/0/3

    GigabitEthernet1/0/4            GigabitEthernet1/0/5            GigabitEthernet1/0/6

 

Member of group2:

None

# Display detailed information about the port group named group1.

<Sysname> display port-group manual name group1

Member of group1:

    GigabitEthernet1/0/1            GigabitEthernet1/0/2            GigabitEthernet1/0/3

    GigabitEthernet1/0/4            GigabitEthernet1/0/5            GigabitEthernet1/0/6

display storm-constrain

Syntax

display storm-constrain [ broadcast | multicast | unicast ] [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

broadcast: Displays broadcast storm control settings and statistics.

multicast: Displays multicast storm control settings and statistics.

unicast: Displays unknown unicast storm control settings and statistics.

interface interface-type interface-number: Specifies an interface by its type and number with the interface-type interface-number argument.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, which is a case-sensitive string of 1 to 256 characters.

Description

Use the display storm-constrain command to display storm control settings and statistics.

If you specify no argument or keyword, this command displays all storm control settings on all storm control-enabled interfaces.

Examples

# Display the storm control settings on all storm control-enabled ports.

<Sysname> display storm-constrain

Abbreviation: BC - broadcast; MC - multicast; UC - unicast

Flow Statistic Interval: 10(second)

PortName      Type LowerLimit UpperLimit CtrMode  Status  Trap Log SwiNum Unit

------------------------------------------------------------------------------

GE1/0/1       BC   111        11111      N/A      normal  on   on  0      pps

Table 6 Output description

Field

Description

Flow Statistic Interval

The traffic polling interval of the storm control module.

PortName

Abbreviated port name

Type

Type of traffic subjected to storm control. Options include broadcast, multicast and unknown unicast.

LowerLimit

Lower storm control threshold, in pps, kbps, or percentage.

UpperLimit

Upper storm control threshold, in pps, kbps, or percentage.

CtrMode

Protective action (block or shutdown) taken on the port when the upper threshold is reached. If you have not configured any protective action, N/A is displayed.

Status

Packet forwarding status, which may be one of the following:

·       Normal—The port is forwarding traffic normally.

·       Control—The port is in controlled mode (the actual mode depends on the CtrMode setting, which may be block or shutdown).

Trap

Status of the storm control threshold event trap switch:

·       On—The port sends threshold event traps.

·       Off—The port does not send threshold event traps.

Log

Status of the storm control threshold event log switch:

·       On—The port sends threshold event log messages.

·       Off—The port does not send threshold event log messages.

SwiNum

Number of times the forwarding state of the interface changes.

When the Swi-num count reaches 65,535, it resets automatically.

Unit

Storm control threshold unit, which can be pps or percentage.

 

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. The copper ports operating at the rate of 1000 Mbps and SFP fiber ports do not support this keyword.

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 the Ethernet interface.

By default, an Ethernet interface operates in auto-negotiation mode.

Related commands: speed.

Examples

# Configure the interface GigabitEthernet 1/0/1 to operate in full-duplex mode.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/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 TxRx mode generic flow control on an Ethernet interface.

Use the undo flow-control command to disable generic flow control on the Ethernet interface.

TxRx mode flow control enables an Ethernet interface to receive common pause frames from its peer, and send common pause frames to notify its peer of congestions.

By default, generic flow control on an Ethernet interface is disabled.

With the flow-control command configured, an interface can both send and receive flow control frames:

·           When congested, the interface sends a flow control frame to its peer.

·           Upon receiving a flow control frame from the peer, the interface suspends sending packets.

To implement flow control on a link, you must enable the generic flow control function at both ends of the link.

 

 

NOTE:

To make flow control take effect, enable flow control on both ends of a link.

 

Examples

# Enable TxRx mode generic flow control on the interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] flow-control

flow-interval

Syntax

flow-interval interval

undo flow-interval

View

Ethernet interface view

Default level

2: System level

Parameters

interval: Sets the statistics polling interval, in seconds. It ranges from 5 to 300 and must be a multiple of 5, 300 by default.

Description

Use the flow-interval command to set the interface statistics polling interval.

Use the undo flow-interval command to restore the default interval.

Examples

# Set the statistics polling interval to 100 seconds on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] flow-interval 100

group-member

Syntax

group-member interface-list

undo group-member interface-list

View

Port group view

Default level

2: System level

Parameters

interface-list: Specifies an Ethernet interface list, in the form of interface-type interface-number [ to interface-type interface-number ] &<1-10>, where &<1-10> indicates that you can specify up to 10 interfaces or interface ranges.

Description

Use the group-member command to assign Ethernet interfaces to a port group.

Use the undo group-member command to remove Ethernet interfaces from the port group.

By default, a port group does not contain any member ports.

Examples

# Assign GigabitEthernet 1/0/1 to the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1

interface

Syntax

interface interface-type interface-number

View

System view

Default level

2: System level

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

Description

Use the interface command to enter interface view.

Examples

# Enter GigabitEthernet 1/0/1 interface view.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1]

jumboframe enable

Syntax

jumboframe enable

undo jumboframe enable

View

System view

Default level

2: System level

Parameters

None

Description

Use the jumboframe enable command to enable jumbo frame support and configure all Ethernet interfaces to allow frames larger than the standard Ethernet frame size (1518 bytes) yet within 10240 bytes to pass through.

Use the undo jumboframe enable command to disable jumbo frame support on all Ethernet interfaces and configure the Ethernet interface to allow only frames no larger than 1518 bytes to pass through.

By default, all Ethernet interfaces allow frames larger than the standard Ethernet frame size (1518 bytes) yet within 10240 bytes to pass through.

Examples

# Enable jumbo frames to pass through all the Ethernet interfaces.

<Sysname> system-view

[Sysname] jumboframe enable

link-delay

Syntax

link-delay delay-time

undo link-delay

View

Ethernet interface view

Default level

2: System level

Parameters

delay-time: Sets the physical state change suppression interval on the Ethernet interface, in seconds, which ranges from 2 to 10.

Description

Use the link-delay command to set the physical state change suppression interval on an Ethernet interface.

Use the undo link-delay command to restore the default.

By default, physical state change suppression is disabled.

Do not use this command on Ethernet interfaces with MSTP enabled.

 

 

NOTE:

This command does not apply to ports administratively shut down (with the shutdown command).

 

Examples

# Enable physical state change suppression on GigabitEthernet 1/0/1, setting the suppression interval to 8 seconds.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] link-delay 8

loopback

Syntax

loopback { external | internal }

undo loopback

View

Ethernet interface view

Default level

2: System level

Parameters

external: Enables external loopback testing to test all on-chip functions related to Ethernet interfaces.

internal: Enables internal loopback testing to test the hardware of Ethernet interfaces.

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.

 

 

NOTE:

·       Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem.

·       An Ethernet interface with loopback testing enabled operates in full duplex mode. After you disable loopback testing, the duplex mode configuration of the Ethernet interface is restored.

·       The loopback configuration is executed for only once, and is not saved in the configuration file.

 

Examples

# Enable internal loopback testing on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] loopback internal

loopback-detection control enable

Syntax

loopback-detection control enable

undo loopback-detection control enable

View

Ethernet interface view, port group 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.

·           With loopback detection control enabled on a port, when the port detects a loop condition, the port enters the controlled state, drops the incoming frames, properly forwards the outgoing frames, sends traps, and deletes the MAC address entries of the port.

·           With loopback detection control disabled on a port, when the port detects a loop condition, the port sends traps, and still works properly.

This command is not applicable to access ports.

Examples

# Enable loopback detection control on the trunk port GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] loopback-detection enable

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] port link-type trunk

[Sysname-GigabitEthernet1/0/1] loopback-detection enable

[Sysname-GigabitEthernet1/0/1] loopback-detection control enable

loopback-detection enable

Syntax

loopback-detection enable

undo loopback-detection enable

View

System view, Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the loopback-detection enable command to enable loopback detection globally in system view or on interfaces in Ethernet interface or port group view. To use loopback detection on an Ethernet interface, you must enable the function both globally and on the port.

Use the undo loopback-detection enable command to disable loopback detection globally or on Ethernet interfaces.

The undo loopback-detection enable command in system view disables loopback detection on all interfaces.

By default, loopback detection is disabled on all Ethernet interfaces.

You can use loopback detection to detect loops on an interface. The device performs actions to alleviate the impact of the loop condition, as described in Table 7.

Table 7 Actions to take upon detection of a loop condition

Port type

Actions

Access interface

·       Put the interface in controlled mode. The interface discards all incoming packets, but still forwards outgoing traffic.

·       Create traps.

·       Delete all MAC address entries of the interface.

Hybrid or trunk interface

·       Create traps.

·       If loopback detection control is enabled, set the interface in controlled mode. The interface discards all incoming packets, but still forwards outgoing packets.

·       Delete all MAC address entries of the interface.

 

Related commands: loopback-detection control enable.

 

 

NOTE:

·       To make loopback detection take effect on a port, enable loopback detection both globally and on the port.

·       Disabling loopback detection globally disables loopback detection on all ports.

 

Examples

# Enable loopback detection on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] loopback-detection enable

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/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, ranging from 5 to 300 seconds.

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.

The default loopback detection interval is 30 seconds.

Related commands: display loopback-detection.

Examples

# Set the loopback detection interval to 10 seconds.

<Sysname> system-view

[Sysname] loopback-detection interval-time 10

loopback-detection multi-port-mode enable

Syntax

loopback-detection multi-port-mode enable

undo loopback-detection multi-port-mode enable

View

System view

Default level

2: System level

Parameters

None

Description

Use the loopback-detection multi-port-mode enable command to enable multi-port loopback detection.

Use the undo loopback-detection multi-port-mode enable command to restore the default.

By default, multi-port loopback detection is disabled.

If an interface receives a packet that it sent out, a loop occurs. When an interface receives packets sent out itself, a single-port loop occurs. When an interface receives packets sent out another interface on the same device, a multi-port loop occurs between the two interfaces. Multi-port loopback detection is implemented on the basis of single-port loopback detection. To configure multi-port loopback detection, first configure single-port loopback detection on the specified interfaces, and then enable multi-port loopback detection globally.

 

 

NOTE:

The single-port loopback detection function is available when the device is performing multi-port loopback detection.

 

Examples

# Enable multi-port loopback detection to monitor loops between GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.

<Sysname> system-view

[Sysname] loopback-detection enable

[Sysname] loopback-detection multi-port-mode enable

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] loopback-detection enable

[Sysname-GigabitEthernet1/0/1] quit

[Sysname] interface gigabitethernet 1/0/2

[Sysname-GigabitEthernet1/0/2] loopback-detection enable

loopback-detection per-vlan enable

Syntax

loopback-detection per-vlan enable

undo loopback-detection per-vlan enable

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the loopback-detection per-vlan enable command to enable loopback detection in each VLAN on trunk or hybrid ports.

Use the undo loopback-detection per-vlan enable command to disable loopback detection in all but the default VLAN on trunk or hybrid ports.

By default, a trunk port or hybrid port performs loopback detection only in its default VLAN.

The loopback-detection per-vlan enable command is not applicable to access ports.

Examples

# Enable loopback detection in all VLANs on hybrid port GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] loopback-detection enable

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] loopback-detection enable

[Sysname-GigabitEthernet1/0/1] port link-type trunk

[Sysname-GigabitEthernet1/0/1] loopback-detection per-vlan enable

mdi

Syntax

mdi { across | auto | normal }

undo mdi

View

Ethernet interface view

Default level

2: System level

Parameters

across: Sets the MDI mode to across. In this mode, pins 1 and 2 of the port are receive pins, and pins 3 and 6 are transmit pins.

auto: Sets the MDI mode to auto. In this mode, the port negotiates pin roles with its peer.

normal: Sets the MDI mode to normal. In normal mode, pins 1 and 2 of the port are transmit pins, and pins 3 and 6 are receive pins.

Description

Use the mdi command to configure the MDI mode of a copper Ethernet interface.

Use the undo mdi command to restore the default.

By default, Ethernet interfaces operate in auto MDI mode.

 

 

NOTE:

This command is not applicable to fiber ports.

 

Examples

# Set GigabitEthernet 1/0/1 to operate in across MDI mode.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] mdi across

multicast-suppression

Syntax

multicast-suppression { ratio | pps max-pps | kbps max-kbps }

undo multicast-suppression

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

ratio: Sets the multicast suppression threshold as a percentage of the transmission capability of an Ethernet interface, ranging from 1 to 100. The smaller the percentage, the less multicast traffic is allowed to pass through.

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 1488100 pps.

kbps max-kbps: Specifies the maximum number of kilobits of multicast packets that the interface can forward per second. The max-kbps argument ranges from 1 to 1024000 kbps

Description

Use the multicast-suppression command to set the multicast suppression threshold on an Ethernet interface view or a group of Ethernet interfaces in port group view.

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 interface. If you execute this command in port group view, the configurations take effect on all ports in the port group.

When multicast traffic exceeds the threshold you configure, the system discards multicast packets until the multicast traffic drops below the threshold.

 

 

NOTE:

·       If you set different multicast suppression thresholds in Ethernet interface view or port group view multiple times, the one configured last takes effect.

·       For a particular type of traffic, configure either storm suppression or storm control, but not both. If both of them are configured, you may fail to achieve the expected storm control effect.

 

Examples

# Set the multicast threshold to 20% on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] multicast-suppression 20

# Set the multicast threshold to 20% on all ports in the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2

[Sysname-port-group-manual-group1] multicast-suppression 20

port auto-power-down

Syntax

port auto-power-down

undo port auto-power-down

View

Ethernet interface view, port group view

Default level

2: System level

Parameters

None

Description

Use the port auto-power-down command to enable auto power-down on Ethernet interfaces for energy efficiency.

Use the undo port auto-power-down to restore the default.

By default, auto power-down is disabled on Ethernet interfaces.

With this function enabled, a port, after being idle for a period, enters the power save mode. When a packet arrives, the port enters its normal state.

Configure Ethernet ports one by one in interface view or multiple ports in bulk in port group view.

Examples

# Enable auto power-down on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] port auto-power-down

# Enable auto power-down on all member ports of the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2

[Sysname-port-group-manual-group1] port auto-power-down

port bridge enable

Syntax

port bridge enable

undo port bridge enable

View

Ethernet interface view

Default level

2: System level

Parameters

None

Description

Use the port bridge enable command to enable bridging on an Ethernet interface.

Use the undo port bridge enable command to disable bridging on the Ethernet interface.

By default, bridging is not enabled on Ethernet interfaces.

Normally, if the outgoing interface in the MAC address entry for a packet is the same as the incoming interface where the packet arrived, the packet is dropped. The bridging function enables an Ethernet port to forward such packets.

Examples

# Enable bridging on Ethernet interface GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] port bridge enable

port-group manual

Syntax

port-group manual port-group-name

undo port-group manual port-group-name

View

System view

Default level

2: System level

Parameters

port-group-name: Sets the port group name, a string of 1 to 32 characters.

Description

Use the port-group manual command to create a port group and enter port group view.

Use the undo port-group manual command to remove a port group.

By default, no port group exists.

Examples

# Create port group group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1]

reset counters interface

Syntax

reset counters interface [ interface-type [ interface-number ] ]

View

User view

Default level

2: System level

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

Description

Use the reset counters interface command to clear the Ethernet interface statistics.

Before collecting traffic statistics for a specific period of time on an interface, clear the old statistics first.

·           If no interface type is specified, this command clears statistics for all interfaces.

·           If only the interface type is specified, this command clears statistics for all interfaces of that type.

·           If both the interface type and the interface number are specified, this command clears statistics for the specified interface.

Examples

# Clear the statistics of GigabitEthernet 1/0/1.

<Sysname> reset counters interface gigabitethernet 1/0/1

shutdown

Syntax

shutdown

undo shutdown

View

Ethernet interface view, port group 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, Ethernet interfaces are in the up state.

You may need to shut down and then bring up an Ethernet interface to activate configuration changes such as the speed or duplex mode changes.

Examples

# Shut down and then bring up GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] shutdown

[Sysname-GigabitEthernet1/0/1] undo shutdown

# Shut down all member ports in the port group named group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] 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. The SFP fiber ports do not support this keyword.

100: Sets the interface speed to 100 Mbps. The SFP fiber ports do not support this keyword.

1000: Sets the interface speed to 1,000 Mbps.

auto: Enables the interface to negotiate a speed with its peer.

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 auto-negotiates the interface speed.

For a copper Ethernet port, use the speed command to set its speed to match the speed of the peer interface.

For a fiber port, use the speed command to set its speed to match the rate of a transceiver module.

Related commands: duplex and speed auto.

Examples

# Configure GigabitEthernet 1/0/1 to operate at 100 Mbps.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] speed 100

speed auto

Syntax

speed auto { 10 | 100 | 1000 } *

undo speed

View

Ethernet interface view

Default level

2: System level

Parameters

10: Sets 10 Mbps as an option for speed auto negotiation.

100: Sets 100 Mbps as an option for speed auto negotiation.

1000: Sets 1000 Mbps as an option for speed auto negotiation.

Description

Use the speed auto command to set options for speed auto negotiation.

Use the undo speed command to restore the default.

By default, an Ethernet interface auto-negotiates the interface speed, and the options for speed auto negotiation include 10, 100, and 1000.

The speed command and the speed auto command supersede each other, and the one configured last takes effect.

For example, if you configure speed 100 after configuring speed auto 100 1000 on an interface, the interface speed is set to 100 Mbps by force without negotiation. If you configure speed auto 100 1000 after configuring speed 100 on the interface, the interface negotiates with its peer, and the negotiated speed is either 100 Mbps or 1000 Mbps.

 

 

NOTE:

To avoid negotiation failure, ensure that at least one speed option is supported at both ends.

 

Examples

# Configure the port GigabitEthernet 1/0/1 to use 10 Mbps and 1000 Mbps for speed negotiation.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] speed auto 10 1000

storm-constrain

Syntax

storm-constrain { broadcast | multicast | unicast } pps max-values min-values

undo storm-constrain { all | broadcast | multicast | unicast }

View

Ethernet interface view

Default level

2: System level

Parameters

all: Disables storm control for all types of packets: broadcast, multicast, and unknown unicast.

broadcast: Enables or disables broadcast storm control.

multicast: Enables or disables multicast storm control.

unicast: Enables or disables unknown unicast storm control.

pps: Sets storm control thresholds in pps.

max-values: Sets the upper threshold, which ranges from 1 to 1488100.

min-values: Sets the lower threshold, which ranges from 1 to max-values.

Description

Use the storm-constrain command to enable broadcast, multicast, or unknown unicast storm control on an Ethernet port.

Use the undo storm-constrain command to disable storm control.

By default, traffic storm control is disabled.

 

 

NOTE:

·       To achieve desirable storm protection effect, avoid configuring both the storm-constrain command and any storm suppression command (unicast-suppression, multicast-suppression, and broadcast-suppression) on a port.

·       An upper threshold must be greater than or equal to the corresponding lower threshold. H3C does not recommend you to configure the same value for the two thresholds.

 

Examples

# Enable unknown unicast storm control on GigabitEthernet 1/0/1, setting the upper and lower thresholds to 200 pps and 150 pps.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] storm-constrain unicast pps 200 150

storm-constrain control

Syntax

storm-constrain control { block | shutdown }

undo storm-constrain control

View

Ethernet interface view

Default level

2: System level

Parameters

block: Blocks this type of traffic, while forwarding other types of traffic. Even though the interface does not forward the blocked traffic, it still counts the traffic. When the blocked traffic is detected dropping below the lower threshold, the port begins to forward the traffic.

shutdown: Shuts down automatically. The interface shuts down automatically and stops forwarding any traffic. When the blocked traffic is detected dropping below the lower threshold, the port does not forward the traffic. To bring up the interface, perform the undo shutdown command or disable the storm control function.

Description

Use the storm-constrain control command to set the protective action to take on an Ethernet interface when a type of traffic (unknown unicast, multicast, or broadcast) exceeds the upper storm control threshold.

Use the undo storm-constrain control command to restore the default.

By default, no action is taken on an Ethernet interface when a type of traffic exceeds the upper storm control threshold.

Examples

# Configure GigabitEthernet 1/0/1 to block the traffic detected crossing the upper storm control threshold.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] storm-constrain control block

storm-constrain enable log

Syntax

storm-constrain enable log

undo storm-constrain enable log

View

Ethernet interface view

Default level

2: System level

Parameters

None

Description

Use the storm-constrain enable log command to enable an Ethernet interface to log storm control threshold events. Logged events include traffic exceeding the upper threshold and traffic falling below the lower threshold from the upper threshold.

Use the undo storm-constrain enable log command to disable log sending.

By default, a storm control-enabled port sends out log messages when monitored traffic exceeds the upper threshold or falls below the lower threshold from the upper threshold.

Examples

# Disable GigabitEthernet 1/0/1 from sending out log messages upon detecting storm control threshold events.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] undo storm-constrain enable log

storm-constrain enable trap

Syntax

storm-constrain enable trap

undo storm-constrain enable trap

View

Ethernet interface view

Default level

2: System level

Parameters

None

Description

Use the storm-constrain enable trap command to enable an Ethernet interface to send storm control threshold event traps. Triggering events include traffic exceeding the upper threshold and traffic falling below the lower threshold from the upper threshold.

Use the undo storm-constrain enable trap command to disable trap message sending.

By default, a storm control-enabled interface sends out traps when monitored traffic exceeds the upper threshold or falls below the lower threshold from the upper threshold.

Examples

# Disable GigabitEthernet 1/0/1 from sending out storm control threshold event traps.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] undo storm-constrain enable trap

storm-constrain interval

Syntax

storm-constrain interval seconds

undo storm-constrain interval

View

System view

Default level

2: System level

Parameters

seconds: Sets the traffic polling interval of the storm control module, ranging from 1 to 300 seconds.

Description

Use the storm-constrain interval command to set the traffic polling interval of the storm control module.

Use the undo storm-constrain interval command to restore the default.

By default, the storm control module polls traffic statistics every 10 seconds.

 

 

NOTE:

·       The interval set by the storm-constrain interval command is specific to storm control. To set the statistics polling interval of an interface, use the flow-interval command.

·       For network stability, use the default or a higher polling interval.

 

Examples

# Set the traffic statistics polling interval of the storm control module to 60 seconds.

<Sysname> system-view

[Sysname] storm-constrain interval 60

unicast-suppression

Syntax

unicast-suppression { ratio | pps max-pps | kbps max-kbps }

undo unicast-suppression

View

Ethernet interface view, port group 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, ranging from 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 1,488,100 pps.

kbps max-kbps: Specifies the maximum number of kilobits of unknown unicast traffic that the Ethernet interface can forward per second. The max-kbps argument ranges from 1 to 1,024,000 kbps.

Description

Use the unicast-suppression command to set the unknown unicast suppression threshold on an Ethernet interface view or a group of Ethernet interfaces in port group view.

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 interface. If you execute this command in port group view, the configurations take effect on all ports in the port group.

When unknown unicast traffic exceeds the threshold you configure, the system discards unknown unicast packets until the unknown unicast traffic drops below the threshold.

 

 

NOTE:

·       If you set different unknown unicast suppression thresholds in Ethernet interface view or port group view multiple times, the one configured last takes effect.

·       For a particular type of traffic, configure either storm suppression or storm control, but not both. If both of them are configured, you may fail to achieve the expected storm control effect.

 

Examples

# Set the unknown unicast threshold to 20% on GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] unicast-suppression 20

# Set the unknown unicast threshold to 20% on all ports of port group group1.

<Sysname> system-view

[Sysname] port-group manual group1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1

[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2

[Sysname-port-group-manual-group1] unicast-suppression 20

virtual-cable-test

Syntax

virtual-cable-test

View

Ethernet interface view

Default level

2: System level

Parameters

None

Description

Use the virtual-cable-test command to test the cable connection of an Ethernet interface. The test results are displayed within five seconds.

The following cable states are available:

·           Normal—The cable is in good condition.

·           Abnormal—Any fault other than a short or open circuit is detected.

·           Abnormal (open)—An open circuit is detected.

·           Abnormal (short)—A short circuit is detected.

·           Failure—The detection fails.

If the cable connection is normal, the displayed cable length is the total length of the cable.

If the cable connection has a fault, it is the length from the local port to the faulty point.

 

 

NOTE:

·       Fiber interfaces do not support this command.

·       If the link of an Ethernet interface is up, testing its cable connection will cause the link to go down and then up.

·       The test result is for reference only. The cable length detection error is up to 5 m (about 16 ft). If a test item is not available, a hyphen (-) is displayed.

 

Examples

# Test the cable connection of GigabitEthernet 1/0/1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] virtual-cable-test

Cable status: normal, 1 metres

Pair Impedance mismatch: -

Pair skew: - ns

Pair swap: -

Pair polarity: -

Insertion loss: - db

Return loss: - db

Near-end crosstalk: - db

 

 

NOTE:

The Pair Impedance mismatch field has the following values:

·       YesMatch

·       No—Mismatch

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网