H3C S3100 Series Ethernet Switches command Manual-Release 21XX Series(V1.06)

HomeSupportSwitchesH3C S3100 Switch SeriesReference GuidesCommand ReferencesH3C S3100 Series Ethernet Switches command Manual-Release 21XX Series(V1.06)
09-Port Basic Configuration Commands
Title Size Download
09-Port Basic Configuration Commands 163.65 KB

Port Basic Configuration Commands

broadcast-suppression

Syntax

broadcast-suppression { ratio | bps max-bps }

undo broadcast-suppression

View

System view, Ethernet port view

Parameter

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-bps: Maximum number (in Kbps) of broadcast traffic that can be received per second on an Ethernet port (in step of 64). This argument can only be configured on Ethernet port view.

l          For a 100Mbps Ethernet port, the max-bps argument is in the range 64 to 99,968.

l          For a GigabitEthernet port, the max-bps argument is in the range 64 to 1,000,000.

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.

 

If you configure broadcast-suppression command in both system view and Ethernet port view, the configuration in Ethernet port view will take effect.

With the Traffic Policing enabled, broadcast-suppression function cannot be enabled either on System view or Ethernet port view. Refer to the QoS part for information about Traffic Policing.

 

Example

# Allow incoming broadcast traffic on all port 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] broadcast-suppression 20

 Note:Broadcast-suppression is set successfully on all ports except reflector ports, fabric ports and the port configured storm-constrain!

# Set the maximum incoming broadcast traffic rate allowed on Ethernet 1/0/2 to 128 kbps.

[Sysname] interface Ethernet 1/0/2

[Sysname-Ethernet1/0/2] broadcast-suppression bps 128

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

Parameter

interface-type: Port type.

interface-number: Port number.

source-agg-id: Source aggregation group number, in the range of 1 to 28. 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 28.

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.

 

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;

 

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, Packets Priority Marking, Port Priority, Traffic Statistics, Traffic Redirecting, Port Rate Limiting, Priority Trust Mode, QoS Profile ( excludes qos-profile port-based ), 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, port rate and duplex mode.

In case a configuration setting fails to be copied, the system will print the error message.

 

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.

 

Example

# Duplicate the configuration of Ethernet 1/0/1 to Ethernet 1/0/2 and Ethernet 1/0/3 (Ethernet 1/0/3 is an aggregation port).

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

description

Syntax

description text

undo description

View

Ethernet port view

Parameter

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.

Example

# Set description string "lanswitch-interface" for the Ethernet1/0/1 port.

<Sysname>  system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface ethernet1/0/1

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

display brief interface

Syntax

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

View

Any view

Parameter

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.

 

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.

 

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 command: display interface.

Example

# Display the brief configuration information about the Ethernet1/0/1 port.

<Sysname>  display brief interface Ethernet1/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 of the Ethernet port: 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

 

The state of an Ethernet port can be UP, DOWN, or ADMINISTRATIVELY DOWN. The following table shows the port state transitions.

Table 1-2 Port state transitions

Initial port state

State after executing the shutdown command

State after executing the undo shutdown command

Not connected to any cable

DOWN

ADMINISTRATIVELY DOWN

DOWN

ADMINISTRATIVELY DOWN

DOWN

Connected to a cable

DOWN

DOWN

UP

UP

ADMINISTRATIVELY DOWN

UP

 

display interface

Syntax

display interface [ interface-type | interface-type interface-number ]

View

Any view

Parameter

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.

Example

# Display the configuration information of the Ethernet1/0/1 port.

<Sysname>  display interface ethernet1/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 2048

 Broadcast MAX-bps: 128K

 Multicast MAX-pps: 128K

 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-3 Description on the fields of the display interface command

Field

Description

Ethernet1/0/1 current state

Current status of the Ethernet port : 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-bps

Broadcast suppression ratio on the port

Multicast MAX-bps

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

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.

 

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/5                    8

display loopback-detection

Syntax

display loopback-detection

View

Any view

Parameter

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.

Example

# 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-4 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 Ethernet1/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.

 

display port combo

Syntax

display port combo

View

Any view

Parameter

hybrid: Displays current hybrid ports.

trunk: Displays current trunk ports.

combo: Displays current the combo ports on the current device.

Description

Use the display port command to display the combo ports on the current device.

Example

# Displays current the combo ports on the device.

<Sysname>  display port combo

  Combo-group       Active                     Inactive

       1       GigabitEthernet1/1/2       GigabitEthernet1/1/1

       2       GigabitEthernet1/2/2       GigabitEthernet1/2/1

For the two ports forming a combo port, the one in active state is currently enabled and the one in inactive state is currently disabled. You can refer to the shutdown command to change the state of the two ports.

 

For information about combo port, refer to H3C S3100 Series Ethernet Switch Installation Manual.

 

display unit

Syntax

display unit unit-id interface

View

Any view

Parameter

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.

Example

# 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-5 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-3.

duplex

Syntax

duplex { auto | full | half }

undo duplex

View

Ethernet port view

Parameter

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 command: speed.

Example

# Set the Ethernet1/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

enable log updown

Syntax

enable log updown

undo enable log updown

View

Ethernet port view

Parameter

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.

Example

# 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

%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

%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, execute the shutdown command or the undo shutdown command on Ethernet 1/0/1, and 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

flow interval

Syntax

flow-interval interval

undo flow-interval

View

Ethernet port view

Parameter

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 command: display interface.

Example

# Set the interval to perform statistics on the Ethernet1/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

flow-control

Syntax

flow-control

undo flow-control

View

Ethernet port view

Parameter

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.

Example

# Enable flow control on the Ethernet1/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

interface

Syntax

interface interface-type interface-number

View

System view

Parameter

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:

l          Unit ID is in the range of 1 to 8;

l          The slot number is 0 if the port is an Ethernet port, the slot number is 1 or 2 if the port is a GigabitEthernet port.

l          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.

Example

# 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]

jumboframe enable

Syntax

jumboframe enable

undo jumboframe enable

View

Ethernet port view

Parameter

None

Description

Use the jumboframe enable command to set the maximum frame size allowed on a port to 2048 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 2048 bytes.

 

l          Only S3100-EI Series switches support this feature.

l          The configuration of jumboframe enable command takes effect on all the ports while the configuration of undo jumboframe enable takes effect on current port.

 

Example

# Set the maximum frame size allowed on Ethernet 1/0/1 to 2048 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

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.

During a short period after you connect your switch to another device, the connecting port may go up and down frequently due to hardware compatibility, resulting in service interruption.

To avoid situations like this, you may set a port state change delay.

 

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/5 to 8 seconds.

<Sysname> system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/5

[Sysname-Ethernet1/0/5] link-delay 8

loopback

Syntax

loopback { external | internal }

View

Ethernet port view

Parameter

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.

Example

# Perform an internal loop test on Ethernet1/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.

loopback-detection control enable

Syntax

loopback-detection control enable

undo loopback-detection control enable

View

Ethernet port view

Parameter

None

Description

Use the loopback-detection control enable command to enable the loopback port control function on the current trunk or hybrid port.

Use the undo loopback-detection control enable command to disable the loopback port control function on the trunk or hybrid port.

The loopback port control function works in conjunction with the loopback detection function (refer to loopback-detection enable). If a loop is found on a VLAN of the trunk or hybrid port:

l          With the function enabled on the trunk or hybrid port, the system will set the port to the block state (ports in this state cannot forward data packets), send log and trap messages to the terminal, and remove the corresponding MAC forwarding entry. After the loop is removed, the port will automatically resume the normal forwarding state.

l          With the function disabled on the trunk or hybrid port, the system will only send log and trap messages to the terminal, and the port is still in the normal forwarding state.

By default, the loopback port control function is enabled on ports if the device boots with the default configuration file (config.def); if the device boots with null configuration, this function is disabled.

Note that this command is invalid for an access port.

Related command: loopback-detection enable.

Example

# Enable the loopback port control function 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

loopback-detection enable

Syntax

loopback-detection enable

undo loopback-detection enable

View

System view or Ethernet port view

Parameter

None

Description

Use the loopback-detection enable command to enable the loopback detection function on the current port to detect whether an external loopback occurs on the port.

Use the undo loopback-detection enable command to disable the loopback detection function on the port.

1)        If a loop is found on an access port, the system will set the port to the block state (ports in this state cannot forward data packets), send log and trap messages to the terminal, and remove the corresponding MAC forwarding entry.

l          If you have enabled the loopback port auto-shutdown function (with the loopback-detection shutdown enable command) on the access port, the system will shut down the port, and send log and trap messages to the terminal. After the loop is removed, you need to use the undo shutdown command to bring up the port.

l          If you have not enabled the loopback port auto-shutdown function on the access port, the port will automatically resume the normal forwarding state after the loop is removed.

2)        If a loop is found on a trunk or hybrid port, the system sends log and trap messages to the terminal. If you have additionally enabled the loopback port control function or the loopback port auto-shutdown function, the system will deal with the port accordingly:

l          If the loopback port control function is enabled on the port (with the loopback-detection control enable command), the system will set the port to the block state (ports in this state cannot forward data packets), send log and trap messages to the terminal, and remove the corresponding MAC forwarding entry. After the loop is removed, the port will automatically resume the normal forwarding state.

l          If the loopback port auto-shutdown function is enabled on the port (with the loopback-detection shutdown enable command), the system will shut down the port and send log and trap messages to the terminal. After the loop is removed, you need to use the undo shutdown command to bring up the port.

 

The loopback detection function on a specific port can take effect only after you enable the loopback detection function globally (in system view) and on the port (in the specified port view).

 

By default, the loopback detection function is enabled globally and on ports if the device boots with the default configuration file (config.def); if the device boots with null configuration, this function is disabled.

Related command: loopback-detection control enable, loopback-detection shutdown enable

Example

# Enable the loopback detection function 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

loopback-detection interface-list enable

Syntax

loopback-detection interface-list enable

undo loopback-detection interface-list enable

View

System view

Parameter

interface-list: Ethernet port list, in the form of interface-list = { interface-type interface-number [ to interface-type interface-number ] } &<1-10>, where

l          interface-type is the port type, and interface-number is the port number.

l          Keyword to is used to specify a range of ports. The port number after to must be equal to or greater than that before to.

l          &<1-10> means that you can specify up to 10 ports or port ranges.

Description

Use the loopback-detection interface-list enable command to enable the loopback detection function on a range of ports.

Use the undo loopback-detection interface-list enable command to disable the loopback detection function on a range of ports.

By default, the loopback detection function is enabled on ports if the device boots with the default configuration file (config.def); if the device boots with null configuration, this function is disabled.

Example

# Enable the loopback detection function on ports Ethernet 1/0/1 through Ethernet 1/0/4.

<Sysname>  system-view

System View: return to User View with Ctrl+Z.

[Sysname] loopback-detection enable

[Sysname] loopback-detection Ethernet 1/0/1 to Ethernet 1/0/4 enable

loopback-detection interval-time

Syntax

loopback-detection interval-time time

undo loopback-detection interval-time

View

System view

Parameter

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.

Example

# 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

loopback-detection per-vlan enable

Syntax

loopback-detection per-vlan enable

undo loopback-detection per-vlan enable

View

Ethernet port view

Parameter

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.

Example

# Configure the system to run loopback detection on all VLANs of the trunk port Ethernet1/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

loopback-detection shutdown enable

Syntax

loopback-detection shutdown enable

undo loopback-detection shutdown enable

View

Ethernet port view

Parameter

None

Description

Use the loopback-detection shutdown enable command to enable the loopback port auto-shutdown function.

Use the undo loopback-detection shutdown enable command to disable the function.

The loopback port auto-shutdown function works in conjunction with the loopback detection function (refer to loopback-detection enable). If a loop is found at a port:

l          With the function enabled on the port, the system will shut down the port, and send log and trap messages to the terminal. After the loop is removed, you need to use the undo shutdown command to bring up the port.

l          With the function disabled on the port, the system will only send log and trap messages to the terminal, and the port is still in the normal forwarding state.

By default, the loopback port auto-shutdown function is enabled on ports if the device boots with the default configuration file (config.def); if the device boots with null configuration, this function is disabled.

Related command: loopback-detection control enable.

 

You cannot enable both the loopback port control function (with the loopback-detection control enable command) and the loopback port auto-shutdown function on a port. If you do so, the function configured later will take effect.

 

Example

# Enable the loopback port auto-shutdown function on port 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 shutdown enable

mdi

Syntax

mdi { across | auto | normal }

undo mdi

View

Ethernet port view

Parameter

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.

 

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.

 

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.

Example

# 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 Ethernet1/0/1

[Sysname-Ethernet1/0/1] mdi across

multicast-suppression

Syntax

multicast-suppression bps max-bps

undo multicast-suppression

View

Ethernet port view

Parameter

max-bps: Maximum number (in Kbps) of unknown multicast and unknown unicast traffic that can be received per second on an Ethernet port (in step of 64).

l          For a 100Mbps Ethernet port, the max-bps argument is in the range 64 to 99,968.

l          For a GigabitEthernet port, the max-bps argument is in the range 64 to 1,000,000.

Description

Use the multicast-suppression command to limit unknown multicast and unknown unicast traffic allowed to be received on the current port.

Use the undo multicast-suppression command to restore the default unknown multicast and unknown unicast traffic suppression setting on the current port.

After the configuration, the switch will suppress the unknown multicast and unknown unicast traffic simultaneously.

When the sum of incoming unknown multicast traffic and unknown unicast traffic on the port exceeds the traffic threshold you set, the system drops the packets exceeding the threshold to reduce the unknown multicast and unknown unicast traffic ratio to the reasonable range, so as to keep normal network service..

By default, the switch does not suppress unknown multicast and unknown unicast traffic.

 

With line rate (LR) applied on one port in the inbound direction or the Traffic Policing enabled, multicast suppression cannot be enabled on any port of the device, and vice versa. Refer to the QoS part for information about LR and Traffic Policing.

 

Example

# Set the maximum number of unknown multicast and unknown unicast traffic that can be received per second by Ethernet 1/0/2 to 128Kbps.

<Sysname>  system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/2

[Sysname-Ethernet1/0/2] multicast-suppression bps 128

port

Syntax

port interface-list

undo port interface-list

View

Port group view

Parameter

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

Description

Use the port command to add Ethernet interface(s) to a specified port group.

Use the undo group-member command to remove specified Ethernet interface(s) from a port group.

By default, a port group is empty, that is, there is no Ethernet interface in it.

 

A port can not be added to a port group if it has been added to an aggregation group, and vice versa.

 

Example

# Add the interface Ethernet 1/0/2~Ethernet1/0/5 to the port group1.

<Sysname>  system-view

[Sysname] port-group 1

[Sysname-port-group-1] port Ethernet 1/0/2 to Ethernet 1/0/5

port-group

Syntax

port-group

undo port-group

View

System view

Parameter

group-id: Number of port group, in the range of 1 to 100.

Description

Use the port-group command to create a port group or enter the specified port group view.

By default, no port group is configured.

 

Only S3100-EI Series Ethernet Switches support Port Group feature.

 

Example

# Create port group 1.

<Sysname>  system-view

System View: return to User View with Ctrl+Z.

[Sysname] port-group 1

[Sysname-port-group-1]

reset counters interface

Syntax

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

View

User view

Parameter

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.

Example

# Clear the statistics of Ethernet1/0/1.

<Sysname>  reset counters interface ethernet1/0/1

shutdown

Syntax

shutdown

undo shutdown

View

Ethernet port view

Parameter

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.

 

You can use the display port combo command to check the states of the two ports forming a combo port. The one in active state is currently enabled and the one in inactive state is currently disabled.

For the two ports forming a combo port, executing the shutdown command on the active port changes the port state to inactive; executing the undo shutdown command on the inactive port changes the port state to active.

 

Example

# Disable and then enable 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] shutdown

[Sysname-Ethernet1/0/1] undo shutdown

speed

Syntax

speed { 10 | 100 | 1000 | auto }

undo speed

View

Ethernet port view

Parameter

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 command: duplex.

Example

# 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

virtual-cable-test

Syntax

virtual-cable-test

View

Ethernet port view

Parameter

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

 

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.

 

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.

 

Example

# Enable the system to test the cable connected to Ethernet1/0/1.

<Sysname>  system-view

System View: return to User View with Ctrl+Z.

[Sysname] interface Ethernet1/0/1

[Sysname-Ethernet0/1] virtual-cable-test

Cable status: abnormal(open), 1 metres

Pair Impedance mismatch: -

Pair skew: - ns

Pair swap: -

Pair polarity: -

Insertion loss: - db

Return loss: - db

Near-end crosstalk: - db

 

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