- Table of Contents
-
- H3C S3100-52P Command Manual-Release 1602(V1.01)
- 00-1Cover
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-IP Address and Performance Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Port Basic Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-Static Route Command
- 16-Multicast Command
- 17-802.1x and System Guard Command
- 18-AAA Command
- 19-Web Authentication Command
- 20-MAC Address Authentication Command
- 21-ARP Command
- 22-DHCP Command
- 23-ACL Command
- 24-QoS-QoS Profile Command
- 25-Mirroring Command
- 26-Stack-Cluster Command
- 27-SNMP-RMON Command
- 28-NTP Command
- 29-SSH Command
- 30-File System Management Command
- 31-FTP-SFTP-TFTP Command
- 32-Information Center Command
- 33-System Maintenance and Debugging Command
- 34-VLAN-VPN Command
- 35-HWPing Command
- 36-IPv6 Management Command
- 37-DNS Command
- 38-Smart Link-Monitor Link Command
- 39-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
08-Port Basic Configuration Command | 214.86 KB |
Table of Contents
Chapter 1 Port Basic Configuration Commands. 1-1
1.1 Port Basic Configuration Commands. 1-1
1.1.1 broadcast-suppression. 1-1
1.1.4 display brief interface. 1-6
1.1.6 display link-delay. 1-12
1.1.7 display loopback-detection. 1-13
1.1.8 display packet-drop. 1-13
1.1.9 display storm-constrain. 1-14
1.1.12 enable log updown. 1-19
1.1.15 giant-frame statistics enable. 1-22
1.1.17 jumboframe enable. 1-23
1.1.20 loopback-detection control enable. 1-26
1.1.21 loopback-detection enable. 1-27
1.1.22 loopback-detection interval-time. 1-28
1.1.23 loopback-detection per-vlan enable. 1-28
1.1.25 multicast-suppression. 1-30
1.1.26 reset counters interface. 1-31
1.1.27 reset packet-drop interface. 1-32
1.1.32 storm-constrain control 1-35
1.1.33 storm-constrain enable. 1-36
1.1.34 storm-constrain interval 1-37
1.1.35 unicast-suppression. 1-38
1.1.36 virtual-cable-test 1-39
Chapter 1 Port Basic Configuration Commands
l The displaying and maintaining of the statistics of dropped packets on a port or all ports was added to this manual. For related commands, refer to display packet-drop and reset packet-drop interface.
l The storm control function was added to this manual. For related commands, refer to display storm-constrain, storm-constrain, storm-constrain control, storm-constrain enable and storm-constrain interval.
l The auto-negotiation speed configuration was added to this manual. For related command, refer to speed auto.
l The command used to set the port state change delay was added to this manual. For details, refer to link-delay.
l The command used to enable Up/Down log information output was added to this manual. For details, refer to enable log updown.
1.1 Port Basic Configuration Commands
1.1.1 broadcast-suppression
Syntax
broadcast-suppression { ratio | pps max-pps }
undo broadcast-suppression
View
System view, Ethernet port view
Parameters
ratio: Maximum ratio of the broadcast traffic allowed on a port to the total transmission capacity of the port. The value ranges from 1 to 100 (in step of 1) and defaults to 100. The smaller the ratio is, the less broadcast traffic is allowed.
max-pps: Maximum number of broadcast packets allowed to be received per second on an Ethernet port (in pps). The following are the value ranges for the argument:
l In system view, the max-pps argument is in the range 1 to 262,143.
l In Ethernet port view, the max-pps argument is in the range 1 to 148,810 for an Ethernet port, and 1 to 262,143 for a GigabitEthernet port.
Description
Use the broadcast-suppression command to limit broadcast traffic allowed to be received on each port (in system view) or on a specified port (in Ethernet port view).
Use the undo broadcast-suppression command to restore the default broadcast suppression setting.
The broadcast-suppression command is used to enable broadcast suppression. By default, broadcast suppression is disabled.
When incoming broadcast traffic exceeds the broadcast traffic threshold you set, the system drops the packets exceeding the threshold to reduce the broadcast traffic ratio to the specified range, so as to keep normal network service.
You can use the undo broadcast-suppression command in system view to cancel the broadcast suppression settings on all ports, or use the broadcast-suppression command in system view to make a global setting.
Executing the commands in Ethernet port view only takes effect on the current port.
& Note:
The global broadcast suppression setting configured by the broadcast-suppression command in system view takes effect on all Ethernet ports in the system except for the reflection ports, stack ports and ports having their own broadcast suppression settings.
If you configure broadcast-suppression command in both system view and Ethernet port view, the configuration in Ethernet port view will take effect.
Examples
# Allow incoming broadcast traffic on Ethernet 1/0/1 to occupy at most 20% of the total transmission capacity of the port and suppress the broadcast traffic that exceeds the specified range.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] broadcast-suppression 20
# Set the maximum number of broadcast packets that can be received per second by the Ethernet 1/0/1 port to 1,000.
[Sysname-Ethernet1/0/1] broadcast-suppression pps 1000
1.1.2 copy configuration
Syntax
copy configuration source { interface-type interface-number | aggregation-group source-agg-id } destination { interface-list [ aggregation-group destination-agg-id ] | aggregation-group destination-agg-id }
View
System view
Parameters
interface-type: Port type.
interface-number: Port number.
source-agg-id: Source aggregation group number, in the range of 1 to 416. The port with the smallest port number in the aggregation group is used as the source port.
destination-agg-id: Destination aggregation group number, in the range of 1 to 416.
interface-list: Destination port list, interface-list = interface-type interface-number [ to interface-type interface-number ] &<1-10. &<1-10> means that you can input up to 10 ports/port ranges.
Description
Use the copy configuration command to duplicate the configuration of a port to specified ports to keep consistent configuration on them.
& Note:
l If you specify a source aggregation group ID, the system uses the port with the smallest port number in the aggregation group as the source.
l If you specify a destination aggregation group ID, the configuration of the source port will be copied to all ports in the aggregation group and all ports in the group will have the same configuration as that of the source port.
The configuration that can be copied includes: VLAN configuration, protocol-based VLAN configuration, LACP configuration, QoS configuration, GARP configuration, STP configuration and initial port configuration.
l VLAN configuration: includes IDs of the VLANs allowed on the port and the default VLAN ID of the port;
l Protocol-based VLAN configuration: includes IDs and indexes of the protocol-based VLANs allowed on the port;
l Link aggregation control protocol (LACP) configuration: includes LACP enable/disable status;
& Note:
The copy command can only be used to copy the configuration of LACP’s enable state, but not to copy the configuration of aggregation group, i.e., you can not add a port to the aggregation group bye the command.
l QoS configuration includes traffic policing, packet priority marking, port priority, traffic accounting, traffic redirecting, VLAN marking, port rate limiting, priority trust mode, QoS profile (the qos-profile port-based configuration cannot be duplicated), and so on.
l STP configuration includes STP enable/disable status on the port, link attribute on the port (point-to-point or non-point-to-point), STP priority, path cost, packet transmission rate limit, whether loop protection is enabled, whether root protection is enabled, and whether the port is an edge port;
l Generic attribute registration protocol (GARP) configuration includes GVRP enable/disable status, timer settings, and registration mode;
l Port configuration includes link type of the port and port rate and duplex mode.
In case a configuration setting fails to be copied, the system will print the error message.
Examples
# Duplicate the configuration of Ethernet 1/0/1 to Ethernet 1/0/2 and Ethernet 1/0/3.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] copy configuration source ethernet 1/0/1 destination ethernet 1/0/2 ethernet 1/0/3
Note: The following will be removed from destination port list:
Aggregation port(s), Voice vlan port(s).
Copying VLAN configuration...
Copying Protocol based VLAN configuration...
Copying LACP configuration...
Copying QOS configuration...
Copying GARP configuration...
Copying STP configuration...
Copying speed/duplex configuration...
& Note:
l Any aggregation group port you input in the destination port list will be removed from the list and the copy command will not take effect on the port. If you want an aggregation group port to have the same configuration with the source port, you can specify the aggregation group of the port as the destination (with the destination-agg-id argument).
l Any voice-VLAN-enabled port you input in the destination port list will be removed from the list.
1.1.3 description
Syntax
description text
undo description
View
Ethernet port view
Parameters
text: Port description, a string of 1 to 80 characters.
Description
Use the description command to configure a description for the port.
Use the undo description command to remove the port description string.
By default, no description is configured for a port.
You can use the display brief interface command to display the configured description.
Examples
# Set description string lanswitch-interface for the Ethernet 1/0/1 port.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] description lanswitch-interface
1.1.4 display brief interface
Syntax
display brief interface [ interface-type [ interface-number ] ] [ | { begin | include | exclude } regular-expression ]
View
Any view
Parameters
interface-type: Port type.
interface-number: Port number.
|: Specifies to use a regular expression to filter the configuration information entries to be displayed.
begin: Each entry must begin with a specified character string.
include: Each entry must include a specified character string.
exclude: Each entry must not include a specified character string.
regular-expression: Regular expression, a string of 1 to 256 characters.
& Note:
For details about regular expression, refer to the Configuration File Management module in this manual.
Description
Use the display brief interface command to display the brief configuration information about one or all interfaces, including: interface type, link state, link rate, duplex attribute, link type, default VLAN ID and description string.
& Note:
Currently, for the port types other than Ethernet port, this command only displays the link state, and shows "--" in all other configuration information fields.
Related commands: display interface.
Examples
# Display the brief configuration information about the Ethernet 1/0/1 port.
<Sysname> display brief interface Ethernet 1/0/1
Interface:
Eth - Ethernet GE - GigabitEthernet TENGE - tenGigabitEthernet
Loop - LoopBack Vlan - Vlan-interface Cas - Cascade
Speed/Duplex:
A - auto-negotiation
Interface Link Speed Duplex Type PVID Description
------------------------------------------------------------------------
Eth1/0/1 DOWN A A hybrid 1 home
Table 1-1 Description on the fields of the display brief interface command
Field | Description |
Interface | Port type |
Link | Current link state: UP, DOWN or ADMINISTRATIVELY DOWN |
Speed | Link rate |
Duplex | Duplex attribute |
Type | Link type: access, hybrid or trunk |
PVID | Default VLAN ID |
Description | Port description string |
1.1.5 display interface
Syntax
display interface [ interface-type | interface-type interface-number ]
View
Any view
Parameters
interface-type: Port type.
interface-number: Port number.
For details about the arguments, refer to the parameter description of the interface command.
Description
Use the display interface command to display port configuration.
When using this command:
If you specify neither port type nor port number, the command displays information about all ports.
If you specify only port type, the command displays information about all ports of the specified type.
If you specify both port type and port number, the command displays information about the specified port.
Examples
# Display the configuration information of the Ethernet 1/0/1 port.
<Sysname> display interface ethernet 1/0/1
Ethernet1/0/1 current state : DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0012-a990-2240
Media type is twisted pair, loopback not set
Port hardware type is 100_BASE_TX
100Mbps-speed mode, full-duplex mode
Link speed type is force link, link duplex type is force link
Flow-control is enabled
The Maximum Frame Length is 9216
Broadcast MAX-pps: 500
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, - pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC
0 frame, - overruns, 0 aborts, 0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, - no carrier
Table 1-2 Description on the fields of the display interface command
Field | Description |
Ethernet1/0/1 current state | Current Ethernet port status: UP, DOWN or ADMINISTRATIVELY DOWN |
IP Sending Frames' Format | Ethernet frame format |
Hardware address | Port hardware address |
Media type | Media type |
Port hardware type | Port hardware type |
100Mbps-speed mode, full-duplex mode | Current speed mode and duplex mode |
Link speed type is force link, link duplex type is force link | Link speed and duplex status ( force or auto-negotiation) |
Flow-control is enabled | Status of flow-control on the port |
The Maximum Frame Length | Maximum frame length allowed on the port |
Broadcast MAX-ratio | Broadcast suppression ratio on the port |
Unicast MAX-ratio | Unknown unicast suppression ratio on the port |
Multicast MAX-ratio | Multicast suppression ratio on the port |
Allow jumbo frame to pass | Whether Jumbo frame is allowed on the port. |
PVID | Default VLAN ID of the port |
Mdi type | Network cable type |
Port link-type | Port link type |
Tagged VLAN ID | Identify the VLANs whose packets will be forwarded with tags on the port. |
Untagged VLAN ID | Identify the VLANs whose packets will be forwarded without tags on the port. |
Last 300 seconds input: 0 packets/sec 0 bytes/sec Last 300 seconds output: 0 packets/sec 0 bytes/sec | Average input and output rates (in pps and Bps) in the last 300 seconds |
Input(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, - pauses | Count in packets and in bytes of total incoming traffic on the port, including incoming normal packets, abnormal packets, and normal PAUSE frames The number of incoming broadcast packets, the number of incoming multicast packets, and the number of incoming PAUSE frames on the port. |
Input(normal): - packets, - bytes - broadcasts, - multicasts, - pauses | Count in packets and in bytes of incoming normal packets on the port, including incoming normal packets and normal PAUSE frames The number of normal incoming broadcast packets, the number of normal incoming multicast packets, and the number of normal incoming PAUSE frames of the port A hyphen (-) indicates that the statistical item is not supported |
input errors | The total number of incoming error frames |
runts | The number of incoming runt frames A runt frame is of less than 64 bytes but has the correct format and CRC field |
giants | The number of incoming giant frames (A giant frame is of more than 1518 bytes if untagged or more than 1522 bytes if tagged.) |
- throttles | The number of throttles that occurred on the port (A throttle occurs when a port is shut down due to buffer or memory overload.) |
CRC | The number of CRC error frames received in correct length |
frame | The number of incoming CRC error frames with non-integer number of bytes |
- overruns | The number of packets dropped because the receiving rate of the port exceeds the processing capability of the input queues |
aborts | The total number of incoming illegal packets, including: l Fragments: CRC error frames of less than 64 bytes (integer or non-integer). l Jabber frames: CRC error frames of more than 1518 bytes if untagged or 1522 bytes if tagged (integer or non-integer). l Symbol error frames: frames with at least one symbol error. l Unknown operator frames: MAC control frames that are not Pause frames l Length error frames: frames whose actual length (46-1500 bytes) is inconsistent with the length field in the 802.3 header. |
ignored | The number of packets dropped due to insufficient receive buffer on the port |
- parity errors | The number of incoming parity error frames |
Output(total): 0 packets, 0 bytes 0 broadcasts, 0 multicasts, 0 pauses | Count in packets and in bytes of total outgoing traffic on the port, including normal packets, abnormal packets, and normal Pause frames The number of outgoing broadcast packets, the number of outgoing multicast packets, and the number of outgoing Pause frames on the port |
Output(normal): - packets, - bytes - broadcasts, - multicasts, - pauses | Count in packets and in bytes of outgoing normal packets on the port, including outgoing normal packets and normal Pause frames. The number of normal outgoing broadcast packets, the number of normal outgoing multicast packets, and the number of normal outgoing Pause frames on the port. A hyphen (-) indicates that the statistical item is not supported. |
output errors | The total number of outgoing error frames |
- underruns | The number of packets dropped because the transmitting rate of the port exceeds the processing capacity of the output queue, which is a rare hardware error. |
- buffer failures | The number of packets dropped due to insufficient transmit buffer on the port |
aborts | The number of transmission failures due to various reasons, such as collisions |
deferred | The number of first transmission attempts delayed because of detection of collisions |
collisions | The number of detected collisions (Transmission of a frame will be aborted upon detection of a collision.) |
late collisions | The number of detected late collisions (A late collision occurs if the transmission of a frame defers due to detection of collision after its first 512 bits have been transmitted.) |
lost carrier | The lost carrier counter applicable to serial WAN interfaces The counter increases by 1 upon each carrier loss detected during frame transmission. |
- no carrier | The no carrier counter applicable to serial WAN interfaces The counter increases by 1 upon each carrier detection failure for frame transmission. |
1.1.6 display link-delay
Syntax
display link-delay
View
Any view
Parameters
None
Description
Use the display link-delay command to display the information about the ports with the link-delay command configured, including the port name and the configured delay.
Related commands: link-delay.
Examples
# Display the information about the ports with the link-delay command configured.
<Sysname> display link-delay
Interface Time Delay
===================== =================
Ethernet1/0/1 8
Ethernet1/0/2 5
1.1.7 display loopback-detection
Syntax
display loopback-detection
View
Any view
Parameters
None
Description
Use the display loopback-detection command to display the loopback detection status on the port. If loopback detection is enabled, this information will also be displayed: time interval for loopback detection and the loopback ports.
Examples
# Display the loopback detection status on the port.
<Sysname> display loopback-detection
Port Ethernet1/0/1 loopback-detection is running
system Loopback-detection is running
Detection interval time is 30 seconds
There is no port existing loopback link
Table 1-3 Description on the fields of the display loopback-detection command
Field | Description |
Port Ethernet1/0/1 loopback-detection is running | Loopback detection is enabled on the Ethernet 1/0/1. |
system Loopback-detection is running | Loopback detection is enabled globally. |
Detection interval time is 30 seconds | Time interval for loopback detection is 30 seconds. |
There is no port existing loopback link | No loopback port exists. |
1.1.8 display packet-drop
Syntax
display packet-drop { interface [ interface-type interface-number ] | summary }
View
Any view
Parameters
interface-type: Port type.
interface-number: Port number.
summary: Displays the summary statistics on the packets dropped on all the ports.
Description
Use the display packet-drop command to display the statistics on the packets dropped on a port or all the ports.
If interface-type interface number is not specified, this command displays the statistics on the packets dropped on all the ports. If interface-type interface number is specified, this command displays the statistics on the packets dropped on the port identified by interface-type interface number.
Examples
# Display the statistics on the packets dropped on Ethernet 1/0/1.
<Sysname> display packet-drop interface Ethernet 1/0/1
Ethernet1/0/1:
Packets dropped By GBP full or insufficient bandwidth: 0
Packets dropped By others: 0
# Display the summary statistics on the packets dropped on all the ports.
<Sysname> display packet-drop summary
All Ethernet interfaces:
Packets dropped By GBP full or insufficient bandwidth: 0
Packets dropped By others: 605
Table 1-4 Description on the fields of the display packet-drop command
Filed | Description |
Packets dropped By GBP full or insufficient bandwidth | Number of packets dropped because the GBP is full or the bandwidth is insufficient. |
Packets dropped By others | Number of the packets dropped for other reasons. |
1.1.9 display storm-constrain
display storm-constrain [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Parameters
interface-type: Port type.
interface-number: Port number.
|: Uses a regular expression to filter the output configuration information.
begin: Displays the configurations that begin with the string specified by regular-expression.
exclude: Displays the configurations that do not contain the string specified by regular-expression.
include: Displays the configurations that contain the string specified by regular-expression.
regular-expression: Regular expression.
Table 1-5 Special characters used in a regular expression
Character | Meaning | Description |
^ | Matches the strings starting with the sub-expressions following “^” | ^user matches configuration files starting with “user”. |
$ | Matches the strings starting with the sub-expressions before “$” | user$ matches the configuration ending with “user” |
_ | Underline, which can represent the following characters: (^|$|[,{}]), space, starting character, and ending character. | If the first character of a regular expression is not “_”, the number of the underline characters in a regular expression is only limited by the length of a command line. If the first character of a regular expression is “_”, there can be up to four other successive underline characters following it. If the underline characters are not successive, only the first underline character group is matched. The subsequent underline groups are ignored. |
( | Left parenthesis, push-in-stack signal | You are not recommended to use this character in a regular expression. |
. | Period. A wildcard, it can represent any single character, including spaces. | — |
* | Asterisk. The character to the left of the asterisk in the expression should match zero or multiple times. | zo* matches “z” and “zoo”. |
+ | Plus sign. There should be at least one match of the character to the left of the plus sign in the expression. | zo+ matches "zo" and “zoo”, but not "z". |
Description
Use the display storm-constrain command to display the storm control configurations.
Examples
# Display the storm control configurations.
<Sysname> display storm-constrain
Flow Statistic Interval: 5(second)
PortName StormType LowerLimit UpperLimit Ctr-mode Status Trap Log Swi-num --------------------------------------------------------------------------
eth1/0/1 broadcast 9 99 shutdown normal on off 3
eth1/0/1 multicast 9 99 shutdown control on off 1
eth1/0/2 unicast 9 99 shutdown normal off on 0
Table 1-6 Description on the fields of the display storm-constrain command
Field | Description |
Flow Statistic Interval | Interval to collect traffic statistics. |
PortName | Name of an Ethernet port |
StormType | Traffic type, which can be unicast, multicast, and broadcast |
LowerLimit | Lower threshold of traffic received on the port |
UpperLimit | Upper threshold of traffic received on the port |
Ctr-mode | Control action to be taken when the broadcast/multicast/unicast traffic exceeds the upper threshold, which can be block or shutdown. |
Status | Current status of the port, which can be normal or control. |
Trap | on: trap information is output when a type of traffic received on the port exceeds the upper threshold or falls below the lower threshold. off: trap information is not output when a type of traffic received on the port exceeds the upper threshold or falls below the lower threshold. |
Log | on: log information is output when traffic received on the port exceeds the upper threshold or falls below the lower threshold off: log information is not output when traffic received on the port exceeds the upper threshold or falls below the lower threshold |
Swi-num | Number of port state switchover |
1.1.10 display unit
Syntax
display unit unit-id interface
View
Any view
Parameters
unit-id: Unit ID, in the range of 1 to 8.
Description
Use the display unit command to display information about the ports on a specified unit.
Examples
# Display information about the ports on unit 1.
<Sysname> display unit 1 interface
Aux1/0/0
Description : Aux Interface
Ethernet1/0/1 current state : DOWN
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0012-a990-2240
Media type is twisted pair, loopback not set
Port hardware type is 100_BASE_TX
100Mbps-speed mode, full-duplex mode
Link speed type is force link, link duplex type is force link
Flow-control is enabled
The Maximum Frame Length is 9216
Broadcast MAX-pps: 500
Unicast MAX-ratio: 100%
Multicast MAX-ratio: 100%
Allow jumbo frame to pass
PVID: 1
Mdi type: auto
Port link-type: access
Tagged VLAN ID : none
Untagged VLAN ID : 1
Last 300 seconds input: 0 packets/sec 0 bytes/sec
Last 300 seconds output: 0 packets/sec 0 bytes/sec
Input(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, - pauses
Input(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Input: 0 input errors, 0 runts, 0 giants, - throttles, 0 CRC
0 frame, - overruns, 0 aborts, 0 ignored, - parity errors
Output(total): 0 packets, 0 bytes
0 broadcasts, 0 multicasts, 0 pauses
Output(normal): - packets, - bytes
- broadcasts, - multicasts, - pauses
Output: 0 output errors, - underruns, - buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, - no carrier
(The following displayed information is omitted)
Table 1-7 Description on the fields of the display unit command
Field | Description |
Aux1/0/0 Description : Aux Interface | The description string of the AUX port is Aux Interface. |
For the description of other fields, refer to Table 1-2.
1.1.11 duplex
Syntax
duplex { auto | full | half }
undo duplex
View
Ethernet port view
Parameters
auto: Sets the port to auto-negotiation mode.
full: Sets the port to full duplex mode.
half: Sets the port to half duplex mode.
Description
Use the duplex command to set the duplex mode of the current port.
Use the undo duplex command to restore the default duplex mode, that is, auto-negotiation.
By default, the port is in auto-negotiation mode.
Related commands: speed.
Examples
# Set the Ethernet 1/0/1 port to auto-negotiation mode.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] duplex auto
1.1.12 enable log updown
enable log updown
undo enable log updown
View
Ethernet port view
Parameters
None
Description
Use the enable log updown command to enable Up/Down log information output.
Use the undo log enable updown command to disable Up/Down log information output.
By default, a port is allowed to output Up/Down log information.
Examples
# By default, a port is allowed to output the Up/Down log information. Execute the shutdown command or the undo shutdown command on Ethernet 1/0/1, and the system outputs Up/Down log information of Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] shutdown
[Sysname-Ethernet1/0/1]
%Apr 5 07:25:37:634 2000 Sysname L2INF/5/PORT LINK STATUS CHANGE:- 1 -
Ethernet1/0/1 is DOWN
[Sysname-Ethernet1/0/1] undo shutdown
[Sysname-Ethernet1/0/1]
%Apr 5 07:25:56:244 2000 Sysname L2INF/5/PORT LINK STATUS CHANGE:- 1 -
Ethernet1/0/1 is UP
# Disable Ethernet 1/0/1 from outputting Up/Down log information and execute the shutdown command or the undo shutdown command on Ethernet 1/0/1. No Up/Down log information is output for Ethernet 1/0/1.
[Sysname-Ethernet1/0/1] undo enable log updown
[Sysname-Ethernet1/0/1] shutdown
[Sysname-Ethernet1/0/1] undo shutdown
1.1.13 flow-control
Syntax
flow-control
undo flow-control
View
Ethernet port view
Parameters
None
Description
Use the flow-control command to enable flow control on the current Ethernet port.
Use the undo flow-control command to disable flow control on the port.
Suppose flow control is enabled on both the local and peer switches. When congestion occurs on the local switch,
the local switch sends a message to notify the peer switch of stopping sending packets to itself or reducing the sending rate temporarily,
the peer switch will stop sending packets to the local switch or reduce the sending rate temporarily when it receives the message; and vice versa. By this way, packet loss is avoided and the network service operates normally.
By default, flow control is disabled on a port.
Examples
# Enable flow control on the Ethernet 1/0/1 port.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] flow-control
1.1.14 flow interval
Syntax
flow-interval interval
undo flow-interval
View
Ethernet port view
Parameters
Interval: Interval (in seconds) to perform statistics on port information. This argument ranges from 5 to 300 (in step of 5) and is 300 by default.
Description
Use the flow-interval command to set the interval to perform statistics on port information.
Use the undo flow-interval command to restore the default interval.
By default, this interval is 300 seconds.
When you use the display interface interface-type interface-number command to display the information of a port, the system performs statistical analysis on the traffic flow passing through the port during the specified interval and displays the average rates in the interval. For example, if you set the interval to 100 seconds, the displayed information is as follows:
Last 100 seconds input: 0 packets/sec 0 bytes/sec
Last 100 seconds output: 0 packets/sec 0 bytes/sec
Related commands: display interface.
Examples
# Set the interval to perform statistics on the Ethernet 1/0/1 port to 100 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] flow-interval 100
1.1.15 giant-frame statistics enable
Syntax
giant-frame statistics enable
undo giant-frame statistics enable
View
System view
Parameters
None
Description
Use the giant-frame statistics enable command to enable the giant-frame statistics function.
Use the undo giant-frame statistics enable command to disable the giant-frame statistics function.
By default, the giant-frame statistics function is not enabled.
After enabling the giant-frame statistics function configuration of this command, you can use the display interface command to view the statistics of about giant frames.
& Note:
A Giant frames refer to VLAN untagged frames is of more than 1518 bytes and VLAN tagged frames of if untagged or more than 1522 bytes if tagged.
Examples
# Enable the giant-frame statistics function.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] giant-frame statistics enable
1.1.16 interface
Syntax
interface interface-type interface-number
View
System view
Parameters
interface-type: Port type, which can be Aux, Ethernet, GigabitEthernet, LoopBack, NULL or VLAN-interface.
interface-number: Port number, in the format of Unit ID/slot number/port number, where:
Unit ID is in the range of 1 to 8;
The slot number is 0 if the port is an Ethernet port, the slot number is 1 if the port is a GigabitEthernet port.
The port number is relevant to the device.
Description
Use the interface command to enter specific port view. To configure an Ethernet port, you need to enter Ethernet port view first.
Examples
# Enter Ethernet 1/0/1 port view.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1]
1.1.17 jumboframe enable
Syntax
jumboframe enable
undo jumboframe enable
View
Ethernet port view
Parameters
None
Description
Use the jumboframe enable command to set the maximum frame size allowed on a port to 9,216 bytes.
Use the undo jumboframe enable command to set the maximum frame size allowed on a port to 1,536 bytes.
By default, the maximum frame size allowed on an Ethernet port is 9,216 bytes.
Examples
# Set the maximum frame size allowed on Ethernet 1/0/1 to 1,536 bytes.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] jumboframe enable
1.1.18 link-delay
Syntax
link-delay delay-time
undo link-delay
View
Ethernet port view
Parameters
delay-time: Port state change delay to be set. This argument is in the range 2 to 10 (in seconds).
Description
Use the link-delay command to set the port state change delay.
Use the undo link-delay command to restore the default.
By default, the port state change delay is 0 seconds, that is, the port state changes without any delay.
& Note:
l The port state change delay takes effect when the port goes down but not when the port goes up.
l The delay configured in this way does not take effect for ports in DLDP down state. For information about the DLDP down state, refer to DLDP.
Examples
# Set the port state change delay of Ethernet 1/0/1 to 8 seconds.
<Sysname> system-view
Enter system view, return to user view with Ctrl+Z.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] link-delay 8
1.1.19 loopback
Syntax
loopback { external | internal }
View
Ethernet port view
Parameters
external: Performs external loop test. In the external loop test, self-loop headers must be used on the port of the switch ( for 100M port, the self-loop headers are made from four cores of the 8-core cables, for 1000M port, the self-loop header are made from eight cores of the 8-core cables, then the packets forwarded by the port will be received by itself.). The external loop test can locate the hardware failures on the port.
internal: Performs internal loop test. In the internal loop test, self loop is established in the switching chip to locate the chip failure which is related to the port.
Description
Use the loopback command to perform a loopback test on the current Ethernet port to check whether the Ethernet port works normally. The loopback test terminates automatically after running for a specific period.
By default, no loopback test is performed on the Ethernet port.
Examples
# Perform an internal loop test on Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback internal
Loopback internal succeeded.
1.1.20 loopback-detection control enable
Syntax
loopback-detection control enable
undo loopback-detection control enable
View
Ethernet port view
Parameters
None
Description
Use the loopback-detection control enable command to enable the loopback detection control feature on the current trunk or hybrid port.
Use the undo loopback-detection control enable command to disable the loopback detection control feature on the trunk or hybrid port.
This function needs to be used in conjunction with the loopback detection function. For details, refer to the command loopback-detection enable. When a loopback is detected in a VLAN on a trunk or hybrid port, you can use this function to control the working status of the port.
l If this feature is enabled on a trunk or hybrid port, when loopback is found on the port, the system puts the port into the controlled working status and removes the MAC address entries corresponding to the port.
l If this feature is disabled on a trunk or hybrid port, when loopback is found on the port, the system just reports a Trap message, and the port still works normally.
By default, the loopback detection control feature is disabled on the trunk or hybrid port.
Note that this command is invalid for an access port.
Related commands: loopback-detection enable.
Examples
# Enable the loopback detection control feature on Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] loopback-detection control enable
1.1.21 loopback-detection enable
Syntax
loopback-detection enable
undo loopback-detection enable
View
System view or Ethernet port view
Parameters
None
Description
Use the loopback-detection enable command to enable the loopback detection feature on ports to detect whether external loopback occurs on a port.
Use the undo loopback-detection enable command to disable the loopback detection feature on port.
l If loopback is found on an access port, the switch will set the port to a controlled working state.
l If loopback is found on a trunk or hybrid port, the system sends a Trap message to the client. If the loopback port control function is enabled on the port (with the command loopback-detection control enable), the system disables the port, sends a Trap message to the client and removes the corresponding MAC forwarding entry.
& Note:
The loopback detection feature takes effect on a specified port only when the loopback detection feature is enabled in both system view and the specified port view.
By default, the loopback detection feature is disabled on any port.
Related commands: loopback-detection control enable.
Examples
# Enable the loopback detection feature on Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] loopback-detection enable
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] loopback-detection enable
1.1.22 loopback-detection interval-time
Syntax
loopback-detection interval-time time
undo loopback-detection interval-time
View
System view
Parameters
time: Time interval for loopback detection, in the range of 5 to 300 (in seconds). It is 30 seconds by default.
Description
Use the loopback-detection interval-time command to set time interval for loopback detection.
Use the undo loopback-detection interval-time command to restore the default time interval.
Examples
# Set time interval for loopback detection to 10 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] loopback-detection interval-time 10
1.1.23 loopback-detection per-vlan enable
Syntax
loopback-detection per-vlan enable
undo loopback-detection per-vlan enable
View
Ethernet port view
Parameters
None
Description
Use the loopback-detection per-vlan enable command to configure the system to run loopback detection on all VLANs of the current trunk or hybrid port.
Use the undo loopback-detection per-vlan enable command to restore the default setting.
By default, the system runs loopback detection only on the default VLAN of the trunk or hybrid port.
Note that the command is invalid for any access port.
Examples
# Configure the system to run loopback detection on all VLANs of the trunk port Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
[Sysname-Ethernet1/0/1] loopback-detection per-vlan enable
1.1.24 mdi
Syntax
mdi { across | auto | normal }
undo mdi
View
Ethernet port view
Parameters
across: Sets the MDI mode to medium dependent interface (MDI).
normal: Sets the MDI mode to media dependent interface-X mode (MDI-X).
auto: Sets the MDI mode to auto-sensing. Port operating in this mode adjust its MDI mode between MDI and MDI-X automatically.
& Note:
l An RJ-45 interface can operate in MDI or MDI-X mode.
l To connect two RJ-45 interfaces operating in the same MDI mode, use a crossover cable; to connect two RJ-45 interfaces operating in different MDI modes, use a straight-through cable.
l The MDI mode of an optical port is fixed to auto.
Description
Use the mdi command to set the MDI mode for a port.
Use the undo mdi command to restore the default setting.
By default, a port operates in auto-sensing MDI mode.
Examples
# Set the MDI mode of Ethernet 1/0/1 to MDI.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] mdi across
1.1.25 multicast-suppression
Syntax
multicast-suppression { ratio | pps max-pps }
undo multicast-suppression
View
Ethernet port view
Parameters
ratio: Maximum ratio of the multicast traffic allowed on the port to the total transmission capacity of the port. This argument ranges from 1 to 100 (in step of 1) and defaults to 100. The smaller the ratio, the less multicast traffic is allowed to be received.
max-pps: Maximum number of multicast packets allowed to be received per second (in pps). This argument ranges from 1 to 148,810 (for Ethernet ports) or 1 to 262,143 (for GigabitEthernet ports).
Description
Use the multicast-suppression command to limit multicast traffic allowed to be received on the current port.
Use the undo multicast-suppression command to restore the default multicast suppression setting on the current port.
When incoming multicast traffic on the port exceeds the multicast traffic threshold you set, the system drops the packets exceeding the threshold to reduce the multicast traffic ratio to the reasonable range, so as to keep normal network service.
By default, the switch does not suppress multicast traffic.
Examples
# Allow the incoming multicast traffic on Ethernet 1/0/1 to occupy at most 20% of the transmission capacity of the port, and suppress the multicast traffic that exceeds the specified range.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] multicast-suppression 20
# Set the maximum number of multicast packets that can be received per second by Ethernet 1/0/1 to 1,000.
[Sysname-Ethernet1/0/1] multicast-suppression pps 1000
1.1.26 reset counters interface
Syntax
reset counters interface [ interface-type | interface-type interface-number ]
View
User view
Parameters
interface-type: Port type.
interface-number: Port number.
For details about the parameters, see the parameter description of the interface command.
Description
Use the reset counters interface command to clear the statistics of the port, preparing for a new statistics collection.
If you specify neither port type nor port number, the command clears statistics of all ports.
If specify only port type, the command clears statistics of all ports of this type.
If specify both port type and port number, the command clears statistics of the specified port.
The statistics of the 802.1x-enabled ports cannot be cleared.
Examples
# Clear the statistics of Ethernet 1/0/1.
<Sysname> reset counters interface ethernet 1/0/1
1.1.27 reset packet-drop interface
Syntax
reset packet-drop interface [ interface-type interface-number ]
View
User view
Parameters
interface-type: Port type.
Interface-number: Port number.
Description
Use the reset packet-drop interface command to clear the statistics on the packets dropped on a port or all the ports.
If interface-type interface number is not specified, this command clears the statistics on the packets dropped on all the ports. If interface-type interface number is specified, this command clears the statistics on the packets dropped on the specified port.
Examples
# Clear the statistics on the packets dropped on Ethernet 1/0/1.
<Sysname> reset packet-drop interface Ethernet 1/0/1
1.1.28 shutdown
Syntax
shutdown
undo shutdown
View
Ethernet port view
Parameters
None
Description
Use the shutdown command to shut down an Ethernet port.
Use the undo shutdown command to bring up an Ethernet port.
By default, an Ethernet port is in up state.
Examples
# Shut down Ethernet 1/0/1 and then bring it up.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] shutdown
[Sysname-Ethernet1/0/1] undo shutdown
1.1.29 speed
Syntax
speed { 10 | 100 | 1000 | auto }
undo speed
View
Ethernet port view
Parameters
10: Specifies the port speed to 10 Mbps.
100: Specifies the port speed to 100 Mbps.
1000: Specifies the port speed to 1,000 Mbps (only available to GigabitEthernet ports).
auto: Specifies the port speed to the auto-negotiation mode.
Description
Use the speed command to set the port speed.
Use the undo speed command to restore the port speed to the default setting.
By default, the port speed is in the auto-negotiation mode.
Note that you can only specify the 1000 and auto keyword for Gigabit Ethernet ports.
Related commands: duplex.
Examples
# Set the speed of Ethernet 1/0/1 to 10 Mbps.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] speed 10
1.1.30 speed auto
Syntax
speed auto [ 10 | 100 | 1000 ]*
View
Ethernet port view
Parameters
10: Configures 10 Mbps as an auto-negotiation speed of the port.
100: Configures 100 Mbps as an auto-negotiation speed of the port.
1000: Configures 1,000 Mbps as an auto-negotiation speed of the port.
Description
Use the speed auto [ 10 | 100 | 1000 ]* command to configure auto-negotiation speed(s) for the current port.
By default, the port speed is auto-negotiated.
The last configuration will take effect if you configure the command for multiple times.
Examples
# Configure 10 Mbps and 1000 Mbps as the auto-negotiation speeds of Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] speed auto 10 1000
1.1.31 storm-constrain
storm-constrain { broadcast | multicast | unicast } max-packets min-packets pps
undo storm-constrain { all | broadcast | multicast | unicast }
View
Ethernet port view
Parameters
broadcast: Specifies to control broadcast traffic on the port.
multicast: Specifies to control multicast traffic on the port.
unicast: Specifies to control unicast traffic on the port.
all: Cancels all the storm control threshold configurations on the port.
max-packets: Upper threshold of the traffic on the port, in pps (packet per second). It ranges from 1 to 4,294,967,295 and must be greater than or equal to the lower threshold.
min-packets: Lower threshold of the traffic on the port, in pps. It ranges from 1 to 4,294,967,295, and must be less than or equal to the upper threshold.
Description
Use the storm-constrain command to set the upper and lower thresholds of the broadcast/multicast/unicast traffic received on the port.
Use the undo storm-constrain command to cancel the threshold configuration.
Related commands: display storm-constrain.
Examples
# Set the upper and lower thresholds of broadcast traffic on Ethernet 1/0/1 to 100 pps and 10 pps respectively.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] storm-constrain broadcast 100 10 pps
1.1.32 storm-constrain control
Syntax
storm-constrain control { block | shutdown }
undo storm-constrain control
View
Ethernet port view
Parameters
block: Blocks and stops forwarding those types of traffic exceeding the upper thresholds.
shutdown: Shutdowns the port if the broadcast/multicast/unicast traffic exceeds the upper threshold, and stops receiving and forwarding all types of traffic on the port.
Description
Use the storm-constrain control command to set the action to be taken when the broadcast/multicast/unicast traffic on the port exceeds the upper threshold.
Use the undo storm-constrain control command to cancel the configured action.
By default, no action is taken.
& Note:
l If the broadcast-suppression command, multicast-suppression command or unicast suppression command is configured on a port, you cannot configure the storm control function on the port, and vice versa.
l You are not recommended to set the upper and lower traffic thresholds to the same value.
l The system can take one of the actions when the broadcast/multicast/unicast traffic received on a port exceeds the upper threshold: block and shutdown. The block action blocks only those types of traffic that exceed the upper thresholds instead of all types of traffic. When a type of traffic is blocked, it is still counted by the system and contained in the traffic statistics. The shutdown action automatically shutdowns the port when a type of traffic on the port exceeds the upper threshold. If you want to bring up the port again, you can execute the undo shutdown command or the undo storm-constrain { all | broadcast | multicast | unicast } command.
Related commands: display storm-constrain, storm-constrain.
Examples
# Set the control action on Ethernet 1/0/1 to block.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] storm-constrain control block
1.1.33 storm-constrain enable
Syntax
storm-constrain enable { log | trap }
undo storm-constrain enable
View
Ethernet port view
Parameters
log: Enables log information to be output when traffic received on the port exceeds the upper threshold or falls below the lower threshold.
trap: Enables trap information to be output when traffic received on the port exceeds the upper threshold or falls below the lower threshold.
Description
Use the storm-constrain enable command to enable log/trap information to be output when traffic received on the port exceeds the upper threshold or falls below the lower threshold.
Use the undo storm-constrain enable command to disable log/trap information from being output when traffic received on the port exceeds the upper threshold or falls below the lower threshold.
By default, log/trap information is output when traffic received on the port exceeds the upper threshold or falls below the lower threshold.
Related commands: display storm-constrain, storm-constrain.
Examples
# Disable log information from being output when traffic received on Ethernet 1/0/1 exceeds the upper threshold or falls below the lower threshold.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] undo storm-constrain enable log
1.1.34 storm-constrain interval
Syntax
storm-constrain interval interval-value
undo storm-constrain interval
View
System view
Parameters
interval-value: Interval to collect traffic statistics, in the range of 1 to 300 (in seconds).
Description
Use the storm-constrain interval command to set the interval to collect traffic statistics.
Use the undo storm-constrain interval command to restore the default setting.
By default, the interval is 10 seconds.
Related commands: display storm-constrain, storm-constrain.
Examples
# Set the interval to collect traffic statistics to 2 seconds.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] storm-constrain interval 2
1.1.35 unicast-suppression
Syntax
unicast-suppression { ratio | pps max-pps }
undo unicast-suppression
View
Ethernet port view
Parameters
ratio: Maximum ratio of the unknown unicast traffic allowed on the port to the total transmission capacity of the port. This argument ranges from 1 to 100 (in step of 1) and defaults to 100. The smaller the ratio, the lesser unknown unicast traffic is allowed to be received.
max-pps: Maximum number of unknown unicast packets allowed to be received per second on the Ethernet port (in pps). This argument ranges from 1 to 148,810 (for Ethernet ports) or 1 to 262,143 (for GigabitEthernet ports).
Description
Use the unicast-suppression command to limit the unknown unicast traffic allowed to be received on the current port.
Use the undo broadcast-suppression command to restore the default unknown unicast suppression setting on the port.
When incoming unknown unicast traffic exceeds the unknown unicast traffic threshold you set, the system drops the packets exceeding the threshold to reduce the unknown unicast traffic ratio to the reasonable range, so as to keep normal network service.
By default, the switch does not suppress unknown unicast traffic.
Examples
# Allow unknown incoming unicast traffic on Ethernet 1/0/1 to occupy at most 20% of the transmission capacity of the port, and suppress the unknown unicast traffic that exceeds the specified range.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] unicast-suppression 20
# Set the maximum number of unknown unicast packets that can be received per second by Ethernet 1/0/1 to 1,000.
[Sysname-Ethernet1/0/1] unicast-suppression pps 1000
1.1.36 virtual-cable-test
Syntax
virtual-cable-test
View
Ethernet port view
Parameters
None
Description
Use the virtual-cable-test command to enable the system to test the cable connected to a specific port and to display the results. The system can test these attributes of the cable:
Cable status, including normal, abnormal, abnormal-open, abnormal-short and failure
Cable length
& Note:
l If the cable is in normal state, the displayed length value is the total length of the cable.
l If the cable is in any other state, the displayed length value is the length from the port to the faulty point.
Pair impedance mismatch
Pair skew
Pair swap
Pair polarity
Insertion loss
Return loss
Near-end crosstalk
By default, the system does not test the cable connected to the Ethernet port.
& Note:
l Optical port does not support VCT (virtual-cable-test) function.
l Currently, the device is only capable of testing the cable status and cable length. For the testing items that are currently not supported, “-” is displayed in the corresponding output fields.
Examples
# Enable the system to test the cable connected to Ethernet 1/0/1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface Ethernet1/0/1
[Sysname-Ethernet1/0/1] virtual-cable-test
Cable status: normal, 0 meter(s)
Pair Impedance mismatch: -
Pair skew: - ns
Pair swap: -
Pair polarity: -
Insertion loss: - db
Return loss: - db
Near-end crosstalk: - db