No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Ethernet Interface Configuration Commands

Ethernet Interface Configuration Commands

am isolate

Function

The am isolate command isolates the current interface from a specified interface unidirectionally.

The undo am isolate command cancels unidirectional isolation between the current interface and a specified interface. If no interface is specified, unidirectional isolation between the current interface and all the other interfaces is canceled.

By default, no unidirectional isolation is configured between the current interface and a specified interface.

NOTE:

CE6870EI and CE6880EI do not support this command.

Format

am isolate { interface-type interface-number }&<1-8>

undo am isolate [ interface-type interface-number ]&<1-8>

am isolate interface-type interface-number1 [ to interface-number2 ]

undo am isolate [ interface-type interface-number1 [ to interface-number2 ] ]

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the type and number of the interface from which the current interface is isolated unidirectionally.

  • interface-type specifies the type of the interface.
  • interface-number specifies the number of the interface.
-
interface-type interface-number1 [ to interface-number2 ]

Specifies the type and number of the interface from which the current interface is isolated unidirectionally.

to specifies an interface range, indicating all the interfaces numbered between interface-number1 and interface-number2.

interface-number2 must be greater than interface-number1.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The am isolate command isolates interfaces unidirectionally. For example, if interface A is isolated from interface B unidirectionally, packets sent from interface A cannot reach interface B, but packets sent from interface B can reach interface A. Unidirectional isolation needs to be configured in the following scenarios:

  • When multiple hosts connect to different interfaces of a device and a host sends many broadcast packets to the other hosts, isolate the interface connected to the host from other interfaces unidirectionally. Then the other hosts do not receive packets from the host.
  • Interfaces in a port isolation group are isolated from each other, but interfaces in different port isolation groups can communicate. To isolate interfaces in different port isolation groups, configure unidirectional isolation between these interfaces.

Precautions

An interface can be unidirectionally isolated from another type of interface. However, an interface cannot be unidirectionally isolated from itself or from the management interface. In addition, an Eth-Trunk cannot be unidirectionally isolated from its member interfaces.

A Layer 2 interface cannot be unidirectionally isolated from another type of interface after the Layer 2 interface is changed to Layer 3 mode.

NOTE:

An interface can be isolated from a maximum of 128 interfaces unidirectionally.

Example

# Isolate 10GE1/0/1 from 10GE1/0/2 unidirectionally.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] am isolate 10ge 1/0/2

fec mode base-r

Function

The fec mode base-r command enables the Base-R FEC function on an interface.

The fec mode none command disables the Base-R FEC function on an interface.

The undo fec mode command restores the default FEC configuration on an interface.

By default, the Base-R FEC function is enabled on a 25GE interface of the CE6860EI or CE8850EI when a high-speed cable is installed on the interface. When an optical module or active optical cable (AOC) is installed on the interface, the medium determines whether the Base-R FEC function is enabled on the interface. By default, the Base-R FEC function is disabled on 25GE interfaces of other switches.

Format

fec mode { base-r | none }

undo fec mode [ base-r | none ]

Parameters

Parameter

Description

Value

base-r

Enables the Base-R FEC function.

-

none

Disables the Base-R FEC function.

-

Views

25GE interface view, 100GE interface view, port group view
NOTE:

The 100GE interface view refers to the view of a 100GE interface that has been split into 25GE interfaces using the port split command.

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Base-R FEC is a bit error correction technology that adds correction information to data packets at the transmit end, and corrects bit errors generated during data packet transmission at the receive end based on the correction information. You can enable the Base-R FEC function to improve the signal quality.

You can run the display interface command in any view or the display this interface command in the interface view to check whether the FEC function is enabled on an interface based on the Fec field in the command output.

When two 25GE interfaces are connected, the FEC status of the interfaces must be the same. If the Base-R FEC function is enabled on one interface, this function must also be enabled on the other interface.

Prerequisites

You can run this command on an interface only when the following conditions are met:
  • The interface is a 25GE interface that has a 25GE medium installed. The interface is a 25GE interface split from a 100GE interface that has a 1-to-4 high-speed cable or a QSFP28 optical module and an MPO-4*DLC optical fiber installed. Alternatively, the device transceiver transceiver-type command is run in the interface view or port group view to pre-configure 25GBASE-COPPER or 25GBASE-FIBER as the medium type.

  • Interfaces are automatically negotiated to be disabled.

  • The interface is not a stack member interface.

  • It is recommended that you simultaneously enable the FEC function on two ends of the link when 25GE interfaces are used for interconnection, reducing the transmission bit error rate of the physical link.

Precautions

  • If the Base-R FEC function is enabled at one end of a link, this function must also be enabled at the other end of the link to ensure that the local and remote interfaces work in the same Base-R FEC state.

  • If the fec mode command has been run on a 25GE interface, the interface cannot be configured as a stack member interface. Similarly, if a 25GE interface has been configured as a stack member interface, the fec mode command cannot be run on the interface.

  • On 25GE interfaces (including 25GE interfaces split from 100GE interfaces), FEC is mutually exclusive with auto-negotiation and the port mode { 10g | ge } command configuration. If FEC has been configured, the system automatically deletes the FEC configuration when auto-negotiation is enabled or the port mode { 10g | ge } command is configured.

Example

# Enable the Base-R FEC function on 25GE1/4/1.
<HUAWEI> system-view
[~HUAWEI] interface 25ge 1/4/1
[~HUAWEI-25GE1/4/1] fec mode base-r

fec mode rs

Function

The fec mode rs command enables the RS-FEC function on an interface.

The fec mode none command disables the RS-FEC function on an interface.

The undo fec mode command restores the default FEC configuration on an interface.

By default, the medium on a 100GE interface determines whether the RS-FEC function is enabled on the interface. When an optical module is installed on a 25GE interface, the optical module determines whether the RS-FEC function is enabled on the interface. When a high-speed cable is installed on a 25GE interface, the RS-FEC function is disabled if auto-negotiation is disabled, and is determined by negotiation if auto-negotiation is enabled.

NOTE:

Only QSFP28 100GE interfaces, 25GE interfaces of theCE8850EI, and CE6860EI (including 25GE interfaces split from 100GE interfaces) support this command.

Format

fec mode { rs | none }

undo fec mode [ rs | none ]

Parameters

Parameter

Description

Value

rs

Enables the RS-FEC function.

-

none

Disables the RS-FEC function.

-

Views

25GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

RS-FEC is a bit error correction technology that adds correction information to data packets at the transmit end, and corrects bit errors generated during data packet transmission at the receive end based on the correction information. RS-FEC improves the signal quality, but increases the signal transmission delay. You can disable this function based on requirements to reduce the signal transmission delay.

You can run the display interface command in any view or the display this interface command in the interface view to check whether the FEC function is enabled on an interface based on the Fec field in the command output.

Prerequisites

You can run this command on an interface only when the following conditions are met:
  • A medium has been installed on the interface or pre-configured using the device transceiver transceiver-type command in the interface view or port group view.

  • Auto-negotiation is disabled on interfaces excluding 100GE interfaces on the CE8860EI.

  • The interface is not a stack member interface.

Precautions

  • If the RS-FEC function is enabled at one end of a link, this function must also be enabled at the other end of the link.

  • If the fec mode command has been run on an interface, the interface cannot be configured as a stack member interface. Similarly, if an interface has been configured as a stack member interface, the fec mode command cannot be run on the interface.

  • The RS-FEC function is mutually exclusive with auto-negotiation (on interfaces excluding the 100GE interfaces of the CE8860EI) and the speed or port mode { 10g | ge } command configuration. If the RS-FEC function has been configured, the system automatically deletes the RS-FEC configuration when auto-negotiation is enabled or the speed or port mode { 10g | ge } command is configured.

  • It is recommended that you simultaneously enable the FEC function on two ends of the link when 25GE interfaces are used for interconnection, reducing the transmission bit error rate of the physical link.

Example

# Disable the RS-FEC function on 100GE1/4/1.
<HUAWEI> system-view
[~HUAWEI] interface 100ge 1/4/1
[~HUAWEI-100GE1/4/1] fec mode none

carrier

Function

The carrier command configures the delay in reporting an interface status change event.

The undo carrier command restores the default delay in reporting an interface status change event.

By default, the delay in reporting an interface Up event and delay in reporting an interface Down event are both 0 milliseconds.

Format

carrier { up-hold-time | down-hold-time } interval

undo carrier { up-hold-time [ interval ] | down-hold-time [ interval ] }

Parameters

Parameter

Description

Value

up-hold-time interval

Specifies the delay in reporting an interface Up event.

The value is an integer that ranges from 0 to 3600000, in milliseconds.

down-hold-time interval

Specifies the delay in reporting an interface Down event.

The value is an integer that ranges from 0 to 3600000, in milliseconds.

NOTE:

If the delay in reporting an interface Down event is set to a small value (for example, less than or equal to 2 seconds) and the function does not take effect, you are advised to run the port-status fast-detect enable command in the interface view to enable the function of quickly detecting the interface physical status change. This configuration prevents the system from generating false alarms about the interface status change within the delay specified by interval.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An Ethernet interface can be physically Up and Down. When the physical interface status changes, the system notifies the upper-layer protocol modules (such as routing and forwarding modules) to guide packet sending and receiving. The system also generates traps and logs to ask users whether to process the physical link.

After you configure the delay in reporting interface status changes, the system will not sense the physical interface status switching within the delay. After the delay, the physical status changes are reported to the system if the physical status is not recovered.

The delay in reporting status changes depends on the network connection status.
  • Set the delay to a larger value.

    For example, the upper-layer protocol convergence time may be longer than the interface status change time in some scenarios. If the interface status changes to Up when the upper-layer protocol convergence is not complete, packet loss may occur. You can set the delay to a larger value to prevent packet loss that occurs because the upper-layer protocol convergence time is longer than the interface status change time.

  • Set the delay to a smaller value.

    For example, after the status of the interface on the master link group changes from physically Up to Down, the system must immediately instruct the upper-layer service forwarding protocol to send service packets from the standby interface on the backup link. You must set a shorter interval to ensure real-time service switchover.

To avoid the extra system load caused by frequent interface status changes, run the carrier command to configure the delay in reporting interface status changes. Within the delay, the system does not know the interface status change. After the delay, the interface status change is reported.

Precautions

  • If you run the carrier command multiple times in the same interface view, only the latest configuration takes effect.

  • After the carrier down-hold-time interval command is configured, the system automatically adjusts the delay in reporting an interface Down event based on the physical layer status because interfaces of different attributes require different periods of time to restore to the Up state. The automatic adjustment ensures that quick interruption of signals does not trigger an interface Down event.

  • If the delay in reporting an interface Down event is set to a small value (for example, less than or equal to 2 seconds) and the function does not take effect, you are advised to run the port-status fast-detect enable command in the interface view to enable the function of quickly detecting the interface physical status change. This configuration prevents the system from generating false alarms about the interface status change within the delay specified by interval.

Example

# Set the delay in reporting an interface Up event to 1000 milliseconds on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] carrier up-hold-time 1000

control-flap

Function

The control-flap command enables flapping control on an interface.

The undo control-flap command disables flapping control.

By default, flapping control is disabled on an interface.

Format

control-flap [ ipv6 ] [ suppress reuse ceiling decay-ok decay-ng ]

undo control-flap [ ipv6 ]

Parameters

Parameter Description Value
ipv6 Enables flapping control on the IPv6 interface. -
suppress Specifies 1000 times the interface suppressing threshold. When the suppress penalty value exceeds this value, the interface is suppressed. The value ranges from 1 to 20000. The default value is 2000. This value must be greater than the reuse threshold and smaller than the ceiling threshold.
reuse Specifies 1000 times the interface reuse threshold. When the interface penalty value becomes smaller than this value, the interface is no longer suppressed. The value ranges from 1 to 20000. The default value is 750. This value must be smaller than the suppress threshold of the interface.
ceiling Specifies 1000 times the maximum suppress penalty value for an interface. The suppress penalty value stops increasing when it exceeds this value. The value ranges from 1001 to 20000. The default value is 6000. This value must be greater than the suppress threshold of the interface.
decay-ok Specifies the half life of the penalty value for an interface in the Up state. The value ranges from 1 to 900, in seconds. By default, the value is 54s.
decay-ng Specifies the half life of the penalty value for an interface in the Down state. The value ranges from 1 to 900, in seconds. By default, the value is 54s.

Views

Interface view

Default Level

2 : Configuration level

Usage Guidelines

Usage Scenario

Physical signal interference and incorrect link layer configuration may cause a device interface to alternate between Up and Down frequently, causing routing protocols and MPLS to flap constantly. This greatly affects the device and network, and may cause certain device to collapse and the network to be unavailable.

Flapping control can reduce the interface switching frequency to a certain degree, reducing the impact on the device and network stability.

The initial penalty value is 0. The bigger the initial value, the poorer stability the interface. When an interface alternates between Up and Down, the penalty value changes. The penalty value for interface suppression increases by 400 each time the interface goes Down, this value is 1000 times the actual value of the device. Each time the interface goes Up, the penalty value of the interface is calculated by the exponential backoff technology. When the penalty value reaches to a specified suppress value (suppress for short), the interface status is suppressed and not reported. The penalty value can be decreased by exponent (Half-life principle) as the time elapses. When the penalty value is decreased to a specified reuse value (reuse for short), the interface status is no longer suppressed and reported.

NOTE:

Half-life (decay-ok/decay-ng): an indicator that measures the decaying degrees of stability, indicating the time for the penalty value of the interface decays to the half.

Precautions

To view the running status and statistics of control-flap on an interface, run the display control-flap command.

After the control-flap command is used, flapping control is enabled on the interface.

Only the layer 3 interfaces support flapping control.

If a CE6810LI functions as a standalone switch, the CE6810LI does not support Layer 3 sub-interfaces. If a CE6810LI functions as a leaf switch in an SVF system consisting of fixed switches, the CE6810LI supports Layer 3 sub-interfaces.

Example

# Enable flapping control on 10GE1/0/1 working at Layer 3.
<HUAWEI> system-view
[~HUAWEI] interface 10ge1/0/1
[~HUAWEI-10GE1/0/1] control-flap 2000 750 16000 15 15

device conflict-policy keep-config

Function

The device conflict-policy keep-config command sets the conflict policy to be based on the pre-configured transmission medium type.

The undo device conflict-policy keep-config command restores the default conflict policy configuration.

By default, the conflict policy is based on the installed transmission medium type.

Format

device conflict-policy keep-config

undo device conflict-policy keep-config

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

The switch supports the transmission medium pre-configuration function that allows you to deploy services before installing physical transmission media. If the installed transmission medium is the same as the pre-configured transmission medium, the configuration takes effect. If the installed transmission medium differs from the pre-configured transmission medium, a conflict occurs. Before pre-configuring the transmission medium, you need to run the device conflict-policy keep-config command to set the conflict policy to be based on the installed transmission medium type or pre-configured medium type. If the installed transmission medium differs from the pre-configured transmission medium, the interface status varies according to the conflict policy.
  • If the conflict policy is based on the installed transmission medium type, the interface is initialized based on the installed transmission medium, and the configuration based on the pre-configured transmission medium type is deleted.
  • If the conflict policy is based on the pre-configured transmission medium type, the configuration based on the pre-configured transmission medium type is retained on the interface but the interface cannot be initialized. You need to install the pre-configured transmission medium to make the interface have the condition to go Up and make the configuration on the interface take effect. You can also make the interface have the condition to go Up using the following methods, but the configuration based on the pre-configured transmission medium type is deleted.
    • Run the undo device conflict-policy keep-config command to change the conflict policy to be based on the installed transmission medium type, and remove and reinstall the transmission medium.
    • Run the shutdown command to shut down the interface, run the undo device transceiver command to delete the pre-configured transmission medium type, set the transmission medium type to the installed transmission medium type, and run the undo shutdown command.
    • Run the shutdown command to shut down the interface, run the undo device transceiver command to delete the pre-configured transmission medium type, and run the undo shutdown command. This method is not recommended because no pre-configured transmission medium information exists on the interface.
Precautions
If the installed transmission medium type differs from the pre-configured transmission medium type, and the two transmission media have incompatible configurations, the interface status varies depending on the used transmission medium type as follows:
  • If the installed transmission medium type is used, incompatible configurations (such as auto-negotiation mode, rate, and duplex mode) on the interface are lost and the interface goes Up.

  • If the pre-configured transmission medium type is used, incompatible configurations on the interface are saved and the interface goes Down. You can delete incompatible configurations to make the interface go Up.

Example

# Set the conflict policy to be based on the pre-configured transmission medium type.

<HUAWEI> system-view
[~HUAWEI] device conflict-policy keep-config                                                                                   

device transceiver

Function

The device transceiver command pre-configures the transmission medium type on an optical interface.

The undo device transceiver command deletes the pre-configured transmission medium type on an optical interface.

By default, no transmission medium type is pre-configured on an optical interface.

NOTE:

The optical interfaces of the two combo interfaces on the CE6850HI, CE6855-48T6Q-HI, CE6856-48T6Q-HI, or CE6850U-HI do not support the transmission medium pre-configuration function.

Format

device transceiver transceiver-type

undo device transceiver [ transceiver-type ]

Parameters

Parameter

Description

Value

transceiver-type

Specifies the transmission medium type.

1000BASE-X: GE optical module

1000BASE-T: GE copper module

10GBASE-FIBER: 10GE optical module

10GBASE-COPPER: 10GE high-speed cable

25GBASE-COPPER: 25GE high-speed cable

25GBASE-FIBER: 25GE optical module

40GBASE-FIBER: 40GE optical module

40GBASE-COPPER: 40GE high-speed cable

100GBASE-FIBER: 100GE optical module

100GBASE-COPPER: 100GE high-speed cable

FC-2G: FC2G optical module

FC-4G: FC4G optical module

FC-8G: FC8G optical module

NOTE:
  • The transmission medium type does not indicate the specific transmission medium model. For example, 10GBASE-FIBER indicates the 10GE optical module. All 10GE optical modules, such as 10GBASE-LR and 10GBASE-SR, have the same transmission medium type.

  • If the installed optical module type is displayed as Unknown, the system cannot identify the optical module. Only when the pre-configured transmission medium type and the installed transmission medium type have the same bandwidth, the interface may go Up; otherwise, the interface cannot go Up. To ensure that the interface works properly, you are advised to use an optical module that is certified for Huawei Ethernet switches.

  • Only the CE6850U-HI supports FC optical modules.

If the pre-configured transmission medium is a high-speed cable but an optical module is installed, the optical module may be burned. Ensure that the installed transmission medium is the same as the pre-configured transmission medium.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, FC interface view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

With the transmission medium pre-configuration function, you can run the device transceiver command to pre-configure the transmission medium type and configure services on an optical interface before installing a transmission medium on the interface.

After the transmission medium is pre-configured, if the correct transmission medium is installed, the interface has the condition to go Up and the configuration on the interface takes effect.

If the installed transmission medium differs from the pre-configured transmission medium, the interface status varies according to the configured conflict policy.
  • If the conflict policy is based on the installed transmission medium type, the interface is initialized based on the installed transmission medium and has the condition to go Up. In addition, the configuration based on the pre-configured transmission medium type is deleted.

    In this scenario, running the shutdown and undo shutdown commands on an interface changes the interface status in a different way from removing and reinstalling a transmission medium on the interface. The difference is as follows:

    If you run the undo shutdown command, the interface cannot go Up. If you remove and reinstall the transmission medium, the interface has the condition to go Up.

  • If the conflict policy is based on the pre-configured transmission medium type, the configuration based on the pre-configured transmission medium type is retained on the interface but the interface does not go Up. You need to install the pre-configured transmission medium to make the interface have the condition to go Up and make the configuration on the interface take effect. You can also make the interface have the condition to go Up using the following methods, but the configuration based on the pre-configured transmission medium type is deleted.
    • Run the undo device conflict-policy keep-config command to change the conflict policy to be based on the installed transmission medium type, and remove and reinstall the transmission medium.
    • Run the shutdown command to shut down the interface, run the undo device transceiver command to delete the pre-configured transmission medium type, set the transmission medium type to the installed transmission medium type, and run the undo shutdown command.
    • Run the shutdown command to shut down the interface, run the undo device transceiver command to delete the pre-configured transmission medium type, and run the undo shutdown command. This method is not recommended because no pre-configured transmission medium information exists on the interface.
NOTE:

You can run the device conflict-policy keep-config command to configure the conflict policy.

Prerequisites

The interface is an optical interface that has no transmission medium installed or has been shut down.

Precautions

If the installed transmission medium type differs from the pre-configured transmission medium type, and the two transmission media have incompatible configurations, the interface status varies depending on the used transmission medium type as follows:
  • If the installed transmission medium type is used, incompatible configurations (such as auto-negotiation mode, rate, and duplex mode) on the interface are lost and the interface goes Up.

  • If the pre-configured transmission medium type is used, incompatible configurations on the interface are saved and the interface goes Down. You can delete incompatible configurations to make the interface go Up.

Example

# Pre-configure the transmission medium type on 40GE1/0/1 as 40GBASE-FIBER.

<HUAWEI> system-view
[~HUAWEI] interface 40ge 1/0/1
[~HUAWEI-40GE1/0/1] device transceiver 40GBASE-FIBER
Warning: This operation will cause all configurations related with the transceiver on the port to be lost. Continue? [Y/N]:y

display control-flap

Function

The display control-flap command displays the running status and statistics of control-flap on an interface. You can adjust parameters about control-flap based on the statistics.

If no interface is specified, the running status and statistics of control-flap on all interfaces are displayed.

Format

display control-flap [ ipv6 ] [ interface interface-type interface-number ]

Parameters

Parameter Description Value
ipv6 Displays the statistics of flapping control on the IPv6 interface including the status. -
interface interface-type interface-number

Displays the specified port parameters about control-flap.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1 : Monitoring level

Usage Guidelines

Usage Scenario

In the scenario where you need to monitor interface status or locate an interface fault, you can run the display control-flap command to view the running status and statistics of control-flap on the interface. Based on the command output, you can adjust the parameters about control-flap, collect traffic statistics, and troubleshoot the interface.

Precautions

If interface-type interface-number is not specified, the running status and statistics of control-flap on all interfaces are displayed.

Follow-up Procedure

If you find that the parameters about control-flap are not proper through the output of the display control-flap command, you can adjust the parameters by using the control-flap command.

Example

# Display the running status and statistics of control-flap on an interface.

<HUAWEI> display control-flap
Interface 10GE1/0/1                               
Control flap status: unsuppressed                                               
Flap count: 0                                                                   
Current penalty: 0.000                                                          
Control flap parameter:  suppress   reuse    decay-ok   decay-ng   ceiling      
                         2.000      0.750    54         54         6.000 
Table 6-17  Description of the display control-flap command output

Item

Description

Control flap status

Indicates whether the interface is suppressed.

"suppressed" indicates that the interface is suppressed; "unsuppressed" indicates that the interface is not suppressed.

Flap count

Indicates the total times of the interface.

Current penalty

Indicates the current suppression penalty value of the interface.

Control flap parameter

Indicates the parameters about control-flap on an interface.

suppress

Indicates the damping suppression threshold on an interface.

reuse

Indicates the interface reuse threshold.

decay-ok

Indicates the time to decrease the penalty to half when the interface is Up.

decay-ng

Indicates the time to decrease the penalty to half when the interface is Down.

ceiling

Indicates the maximum damping suppression penalty value.

Related Topics

display error-down recovery

Function

The display error-down recovery command displays information about the port in Error-Down state, including the interface name, cause of the Error-Down event, delay for the interface to change from Down to Up, and remaining time for the Up event.

Format

display error-down recovery [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface-type interface-number

Displays the specified port in Error-Down state.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The device records the status of an interface as Error-Down when it detects that a fault occurs. The interface in Error-Down state cannot receive or send packets and the interface indicator is off. If the interface is in the Error-Down state, you can run the display error-down recovery command to view the remaining time for the Up event.

Precautions

The auto recovery function has been configured on an interface using the error-down auto-recovery command.

Example

# Display the delay for the interface to change from Down to Up and the remaining time for the Up event.

<HUAWEI> display error-down recovery
interface                    error-down cause           recovery   remainder
                                                        time(sec)  time(sec)
----------------------------------------------------------------------------
10GE1/0/1                    bpdu-protection            30         10
Table 6-18  Description of the display error-down recovery command output

Item

Description

interface

Interface name.

error-down cause

Cause of the Error-Down event. For details, see Description of the Error-Down event of the display interface command.

recovery time(sec)

Delay for the interface to change from Down to Up, in seconds. In the following conditions, you need to run the undo shutdown (interface view) command to make the interface go Up and the recovery time is displayed as --.
  • The error-down auto-recovery command is not executed to configure the automatic recovery time.
  • The interface is in error-down state when the automatic recovery time is configured.

remainder time(sec)

Remaining time for the Up event, in seconds. In the following conditions, you need to run the undo shutdown (interface view) command to make the interface go Up and the remaining time is displayed as --.
  • The error-down auto-recovery command is not executed to configure the automatic recovery time.
  • The interface is in error-down state when the automatic recovery time is configured.

display interface ethernet brief

Function

The display interface ethernet brief command displays brief information about Ethernet interfaces.

Format

display interface ethernet brief [ main ]

Parameters

Parameter

Description

Value

main

Displays brief information about Ethernet main interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

You can use the display interface ethernet brief command to view brief information about Ethernet interfaces, including the physical status, auto-negotiation mode, duplex mode, rate, and average inbound and outbound bandwidth usages within the last period of time. This information helps you locate and rectify faults.

Precautions

To clear statistics on an interface, run the reset interface counters command.

Example

# Display brief information about Ethernet interfaces.

<HUAWEI> display interface ethernet brief
PHY: Physical                                                                   
*down: administratively down                                                    
^down: standby 
(l): loopback                                                                   
(b): BFD down                                                                   
(p): port alarm down                                                            
Auto-Neg: Auto Negotiation                                                      
BW: BandWidth   
InUti/OutUti: input utility rate/output utility rate  
Interface                   PHY   Auto-Neg Duplex       BW  InUti OutUti Trunk    Description
10GE1/0/1                   up    enable   full         10G 0.01%  0.01%    --  
10GE1/0/2                   up    enable   full         10G 0.01%  0.01%    --  
10GE1/0/3                   up    enable   full         10G 0.01%  0.01%    --  
10GE1/0/4                   up    enable   full         10G 0.01%  0.01%     5  
10GE1/0/5                   up    enable   full         10G 0.01%  0.01%    --  
10GE1/0/6                   down  enable   full         10G    0%     0%    --  
10GE1/0/7                   up    enable   full       1000M 0.01%  0.01%    --  
10GE1/0/8                   down  enable   full         10G    0%     0%    --  
10GE1/0/9                   down  enable   full         10G    0%     0%    --  
10GE1/0/10                  down  enable   full         10G    0%     0%    --  
10GE1/0/11                  down  enable   full         10G    0%     0%    --  
10GE1/0/12                  down  enable   full         10G    0%     0%   127  
10GE1/0/13                  down  enable   full         10G    0%     0%    --  
10GE1/0/14                  down  enable   full         10G    0%     0%    --  
10GE1/0/15                  down  enable   full         10G    0%     0%    --  
10GE1/0/16                  down  enable   full         10G    0%     0%    --  
10GE1/0/17                  down  enable   full         10G    0%     0%    --  
10GE1/0/18                  down  enable   full         10G    0%     0%    --  
10GE1/0/19                  down  enable   full         10G    0%     0%    --  
10GE1/0/20                  down  enable   full         10G    0%     0%    --  
10GE1/0/21                  down  enable   full         10G    0%     0%     2  
10GE1/0/22                  down  enable   full         10G    0%     0%     2  
10GE1/0/23                  down  enable   full         10G    0%     0%    --  
10GE1/0/24                  down  enable   full         10G    0%     0%    --  
10GE1/0/25                  down  enable   full         10G    0%     0%    --  
10GE1/0/26                  down  enable   full         10G    0%     0%    --  
10GE1/0/27                  down  enable   full         10G    0%     0%    --  
10GE1/0/28                  down  enable   full         10G    0%     0%    --  
10GE1/0/29                  down  enable   full         10G    0%     0%    --  
10GE1/0/30                  down  enable   full         10G    0%     0%    --  
10GE1/0/31                  down  enable   full         10G    0%     0%    --  
10GE1/0/32                  down  enable   full         10G    0%     0%    --  
10GE1/0/33                  down  enable   full         10G    0%     0%    --  
10GE1/0/34                  down  enable   full         10G    0%     0%    --  
10GE1/0/35                  down  enable   full         10G    0%     0%    --  
10GE1/0/36                  down  enable   full         10G    0%     0%    --  
10GE1/0/37                  down  enable   full         10G    0%     0%    --  
10GE1/0/38                  down  enable   full         10G    0%     0%    --  
10GE1/0/39                  down  enable   full         10G    0%     0%   110  
10GE1/0/40                  down  enable   full         10G    0%     0%    --  
10GE1/0/41                  down  enable   full         10G    0%     0%    27  
10GE1/0/42                  up    enable   full         10G 0.01%  0.01%    --  
10GE1/0/43                  down  enable   full         10G    0%     0%    --  
10GE1/0/44                  down  enable   full         10G    0%     0%    --  
10GE1/0/45                  down  enable   full         10G    0%     0%    --  
10GE1/0/46                  down  enable   full         10G    0%     0%    --  
10GE1/0/47                  down  enable   full         10G    0%     0%    --  
10GE1/0/48                  down  enable   full         10G    0%     0%    --  
40GE1/0/1                   down  disable  full         40G    0%     0%    --  
40GE1/0/2                   down  disable  full         40G    0%     0%    --  
40GE1/0/3                   down  disable  full         40G    0%     0%    --  
40GE1/0/4                   down  disable  full         40G    0%     0%    --  
MEth0/0/0                   up    enable   full        100M 0.01%  0.01%    --  
Table 6-19  Description of the display interface ethernet brief command output

Item

Description

Interface

Type and number of an interface. All interfaces are displayed in alphabetical order. Information about the following interfaces can be displayed:
  • GE interface

  • 10GE interface

  • 25GE interface

  • 40GE interface

  • 100GE interface

  • MEth0/0/0

PHY

Physical status of an interface:
  • up: indicates that the interface works properly.

  • down: indicates that the physical layer of the interface fails.

  • offline: indicates that the component of the interface is not installed.
  • *down: refers to administratively down, indicating that the administrator has run the shutdown (interface view) command on the interface.

  • ^down: refers to standby, indicating that this interface is a backup interface.

  • (l): refers to loopback, indicating that the loopback function is enabled on the interface.

  • (b): indicates that the physical layer of the interface is in BFD down state.

  • (p): refers to port alarm down, indicating that the interface is in down state because of an alarm.

Auto-Neg

Whether auto-negotiation is enabled on an interface:
  • enable: indicates that auto-negotiation is enabled on the interface.

  • disable: indicates that auto-negotiation is disabled on the interface.

To configure the auto-negotiation mode for an interface, run the negotiation disable command.

Duplex

Duplex mode of an interface:
  • full: indicates the full-duplex mode.

  • half: indicates the half-duplex mode.

BW

Bandwidth on the interface.

InUti

Average inbound bandwidth usage within the last 5 minutes.

Average inbound bandwidth usage = Average inbound rate within the last 5 minutes/Interface bandwidth

When the average bandwidth usage is smaller than 0.01% and greater than 0.005%, the value 0.01% is displayed. When the average bandwidth usage is smaller than 0.005% and greater than 0, the value 0 is displayed. When the interface bandwidth becomes smaller, for example, the bandwidth is changed using the speed command, or when an Eth-Trunk member interface becomes Down or is removed from the Eth-Trunk, the bandwidth usage may be displayed as 100% because the communication traffic is not adjusted in time.

OutUti

Average outbound bandwidth usage within the last 5 minutes.

Average outbound bandwidth usage = Average outbound rate within the last 5 minutes/Interface bandwidth

When the average bandwidth usage is smaller than 0.01% and greater than 0.005%, the value 0.01% is displayed. When the average bandwidth usage is smaller than 0.005% and greater than 0, the value 0 is displayed. When the interface bandwidth becomes smaller, for example, the bandwidth is changed using the speed command, or when an Eth-Trunk member interface becomes Down or is removed from the Eth-Trunk, the bandwidth usage may be displayed as 100% because the communication traffic is not adjusted in time.

Trunk

Number of the Eth-Trunk to which an interface is added.

Description

Interface description.

display interface statistics verbose

Function

The display interface statistics verbose command displays statistics on packets with different lengths sent and received on a specified interface.

Format

display interface statistics interface-type interface-number verbose

Parameters

Parameter Description Value
interface-type interface-number

Displays statistics on packets with different lengths sent and received on a specified interface.

-

Views

System view

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view statistics on packets with different lengths sent and received on a specified interface, so that you can easily locate the fault on the interface and rectify the fault.

Example

# Display statistics on packets with different lengths sent and received on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] display interface statistics 10ge 1/0/1 verbose
        PacketLength(Bytes)      Send(packets)       Receive(packets)           
        1~64                     0                   1                          
        65~127                   183703              109222                     
        128~255                  0                   0                          
        256~511                  12251               12249                      
        512~1023                 0                   0                          
        1024~1518                0                   0                          
        1519~2047                0                   0                          
        2048~4095                0                   0                          
        4096~9216                0                   0                      
Table 6-20  Description of the display interface statistics verbose command output

Item

Description

PacketLength(Bytes)

Range of packet length.

For interfaces on the CE6880EI, statistics on packets with length ranging from 1519 bytes to the maximum frame length are displayed together instead of being displayed in detail.

Send(packets)

Number of sent packets.

For interfaces on CE6880-48S4Q2CQ-EI and CE6880-48T4Q2CQ-EI, statistics on sent packets cannot be collected and this field displays --.

Receive(packets)

Number of received packets.

display ip host packet statistics receive

Function

The display ip host packet statistics receive command displays statistics about packets received on interfaces that rank top 10 in the number of received packets.

Format

display ip host packet statistics receive

Parameters

None

Views

All views

Default Level

1: Monitoring Level

Usage Guidelines

To view statistics about packets received on interfaces that rank top 10 in the number of received packets, run the display ip host packet statistics receive command. The system collects statistics about packets received on physical interfaces and sub-interfaces of each board and ranks these interfaces based on the number of packets received by them. After the display ip host packet statistics receive command is run, the system ranks the interfaces of all boards (top 10 interfaces out of one board) and displays statistics about the top 10. If less than ten interfaces are involved, all of them are displayed in the command output.

To clear statistics about packets received on an interface, run the reset ip host packet statistics receive. The display ip host packet statistics receive and reset ip host packet statistics receive commands can be used together to help identify whether the interface correctly receives various protocol packets.

Example

# Display statistics about packets received on interfaces.

<HUAWEI> display ip host packet statistics receive
-------------------------------------------------------------
Interface                                           RecvTotal
-------------------------------------------------------------
10GE1/0/1                                   236988
10GE1/0/2                                   236988
-------------------------------------------------------------
Table 6-21  Description of the display ip host packet statistics receive command output

Item

Description

Interface

Interface name

RecvTotal

Total number of packets received on the interface.

display ip host packet statistics receive protocol

Function

The display ip host packet statistics receive protocol interface command displays statistics about different protocol packets received on an interface.

The display ip host packet statistics receive protocol command displays global statistics about different protocol received packets.

The display ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } command displays statistics about interfaces that rank top 10 in the number of protocol-specific received packets.

Format

display ip host packet statistics receive protocol interface interface-type interface-number

display ip host packet statistics receive protocol

display ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 }

NOTE:

CE6880EI does not support mld and pimv6 parameters.

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies the type and number of an interface.

-

arp

Specifies the ARP protocol.

-

stp

Specifies the STP protocol.

-

lacp

Specifies the LACP protocol.

-

lldp

Specifies the LLDP protocol.

-

isis

Specifies the IS-IS protocol.

-

icmp

Specifies the ICMP protocol.

-

ospf

Specifies the OSPF protocol.

-

pim

Specifies the PIM protocol.

-

igmp

Specifies the IGMP protocol.

-

vrrp

Specifies the VRRP protocol.

-

snmp

Specifies the SNMP protocol.

-

dhcp

Specifies the DHCP protocol.

-

bgp

Specifies the BGP protocol.

-

ldp

Specifies the LDP protocol.

-

icmpv6

Specifies the ICMPv6 protocol.

-

ospfv3

Specifies the OSPFv3 protocol.

-

pimv6

Specifies the IPv6 PIM protocol.

-

mld

Specifies the MLD protocol.

-

vrrpv6

Specifies the VRRP6 protocol.

-

snmpv6

Specifies the IPv6 SNMP protocol.

-

dhcpv6

Specifies the DHCPv6 protocol.

-

bgp4plus

Specifies the BGP4+ protocol.

-

ldpv6

Specifies the IPv6 LDP protocol.

-

Views

All views

Default Level

1: Monitoring Level

Usage Guidelines

To configure a device to collect statistics about different protocol packets received on an interface, run the ip host packet statistics protocol enable command.

To view statistics about different protocol packets received on an interface, run the display ip host packet statistics receive protocol interface command. To clear statistics about different protocol packets received on an interface, run the reset ip host packet statistics receive protocol interface command. The display ip host packet statistics receive protocol interface and reset ip host packet statistics receive protocol interface commands can be used together to help identify whether an interface correctly receives various protocol packets.

To configure a device to collect statistics about protocol-specific received packets, run the ip host packet statistics protocol all command.

To view statistics about protocol-specific received packets, run the display ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } command. To clear statistics about protocol-specific received packets, run the reset ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } command. The display ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } and reset ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } commands can be used together to help identify whether the device receives various protocol packets.

Precautions

When a sub-interface is deleted, packet statistics on the corresponding physical interface remain unchanged.

When the board is restarted, packet statistics on the board's interfaces are cleared. If any interface on the board has been added to an Eth-Trunk interface, packet statistics on the Eth-Trunk interface no longer include those on the member interface after the board is restarted.

Example

# Display global statistics about different protocol received packets.

<HUAWEI> display ip host packet statistics receive protocol
Packet Statistics Information:
---------------------------------------------------------------------------
Layer        ProtocolType                 ExpectedPkts       UnexpectedPkts
---------------------------------------------------------------------------
LINK         ARP                                   634                    0
LINK         STP                                    36                    0
LINK         LACP                                    0                    0
LINK         LLDP                                    0                    0
LINK         ISIS                                    0                    0
LINK         LinkProtocolOthers                     17                   26
RAWIP        ICMP                                    0                    0
RAWIP        OSPF                                    0                   29
RAWIP        PIM                                     0                    0
RAWIP        IGMP                                    0                    5
RAWIP        VRRP                                    0                    0
RAWIP        RawIPv4Others                           0                    0
IPV4UDP      SNMP                                    0                    0
IPV4UDP      DHCP                                  151                    0
IPV4UDP      IPv4UdpOthers                         484                    2
IPV4TCP      BGP                                     0                    0
IPV4TCP      LDP                                     0                    0
IPV4TCP      IPv4TcpOthers                           0                    0
RAWIPV6      ICMPv6                                 20                    0
RAWIPV6      OSPFv3                                  0                    0
RAWIPV6      PIMv6                                   0                    0
RAWIPV6      MLD                                     0                   32
RAWIPV6      VRRPv6                                  0                    0
RAWIPV6      RawIPv6Others                           0                    0
IPV6UDP      SNMPv6                                  0                    0
IPV6UDP      DHCPv6                                  4                    0
IPV6UDP      IPv6UdpOthers                           0                    0
IPV6TCP      BGP4PLUS                                0                    0
IPV6TCP      LDPv6                                   0                    0
IPV6TCP      IPv6TcpOthers                           0                    0
---------------------------------------------------------------------------

# Display statistics about different protocol packets received on an interface.

<HUAWEI> display ip host packet statistics receive protocol interface 10ge 1/0/1
---------------------------------------------------------------------------
Layer        ProtocolType                 ExpectedPkts       UnexpectedPkts
---------------------------------------------------------------------------
LINK         ARP                                     0                    0
LINK         STP                                     0                    0
LINK         LACP                                    0                    0
LINK         LLDP                                    0                    0
LINK         ISIS                                    0                    0
LINK         LinkProtocolOthers                      0                    0
RAWIP        ICMP                                    0                    0
RAWIP        OSPF                                  660                    0
RAWIP        PIM                                     0                    0
RAWIP        IGMP                                    0                    0
RAWIP        VRRP                                    0                    0
RAWIP        RawIPv4Others                           0                    0
IPV4UDP      SNMP                                    0                    0
IPV4UDP      DHCP                                 5180                    0
IPV4UDP      IPv4UdpOthers                           0                    0
IPV4TCP      BGP                                     0                    0
IPV4TCP      LDP                                     0                    0
IPV4TCP      IPv4TcpOthers                           0                    0
RAWIPV6      ICMPv6                                  0                    0
RAWIPV6      OSPFv3                                  0                    0
RAWIPV6      PIMv6                                   0                    0
RAWIPV6      MLD                                     0                    0
RAWIPV6      VRRPv6                                  0                    0
RAWIPV6      RawIPv6Others                           0                    0
IPV6UDP      SNMPv6                                  0                    0
IPV6UDP      DHCPv6                                  0                    0
IPV6UDP      IPv6UdpOthers                           0                    0
IPV6TCP      BGP4PLUS                                0                    0
IPV6TCP      LDPv6                                   0                    0
IPV6TCP      IPv6TcpOthers                           0                    0
---------------------------------------------------------------------------
Table 6-22  Description of the display ip host packet statistics receive protocol command output

Item

Description

Layer

The layer of the protocol belongs to.

ProtocolType

Protocol type.

ExpectedPkts

Total number of packets the local host expects to receive.

UnexpectedPkts

Total number of packets the local host does not expect to receive.

# Displays statistics about interfaces that rank top 10 in the number of received ARP packets.
<HUAWEI> display ip host packet statistics receive protocol arp
Packet Statistics Information:
-------------------------------------------------------------
Interface                                           RecvTotal
-------------------------------------------------------------
10GE1/0/3                                                  11
10GE1/0/2                                                   9
10GE1/0/4                                                   7
10GE1/0/5                                                   6
10GE1/0/6                                                   5
10GE1/0/1                                                   4
10GE1/0/7                                                   1
-------------------------------------------------------------
Table 6-23  Description of the display ip host packet statistics receive protocol arp command output

Item

Description

Interface

Interface name.

RecvTotal

Total number of received packets.

display ip host packet statistics send protocol

Function

The display ip host packet statistics send protocol command displays statistics about different protocol packets sent on a device.

Format

display ip host packet statistics send protocol [ arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 ]

display ip host packet statistics send protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } slot [ slot-id ]

NOTE:

CE6880EI does not support mld and pimv6 parameters.

Parameters

Parameter Description Value
arp

Indicates the ARP protocol.

-

stp

Indicates the STP protocol.

-

lacp

Indicates the LACP protocol.

-

lldp

Indicates the LLDP protocol.

-

isis

Indicates the IS-IS protocol.

-

icmp

Indicates the ICMP protocol.

-

ospf

Indicates the OSPF protocol.

-

pim

Indicates the PIM protocol.

-

igmp

Indicates the IGMP protocol.

-

vrrp

Indicates the VRRP protocol.

-

snmp

Indicates the SNMP protocol.

-

dhcp

Indicates the DHCP protocol.

-

bgp

Indicates the BGP protocol.

-

ldp

Indicates the LDP protocol.

-

icmpv6

Indicates the ICMPv6 protocol.

-

ospfv3

Indicates the OSPFv3 protocol.

-

pimv6

Indicates the IPv6 PIM protocol.

-

mld

Indicates the MLD protocol.

-

vrrpv6

Indicates the VRRP6 protocol.

-

snmpv6

Indicates the IPv6 SNMP protocol.

-

dhcpv6

Indicates the DHCPv6 protocol.

-

bgp4plus

Indicates the BGP4+ protocol.

-

ldpv6

Indicates the IPv6 LDP protocol.

-

slot slot-id Specifies a slot ID. If slot-id is not configured, statistics about protocol packets sent by all boards are displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To globally enable the statistics collecting function for different protocol packets, run the ip host packet statistics protocol all command.

To check statistics about different protocol packets sent on a device, run the display ip host packet statistics send protocol command. To clear statistics about different protocol packets sent on a device, run the reset ip host packet statistics send protocol command. You can run the reset ip host packet statistics send protocol and display ip host packet statistics send protocol commands to check whether protocol packets are transmitted properly.

Example

# Display statistics about different protocol packets sent on a device.

<HUAWEI> display ip host packet statistics send protocol
Packet Statistics Information:
------------------------------------------------------
Layer        ProtocolType                     SendPkts
------------------------------------------------------
LINK         LinkProtocolOthers                 297045
RAWIP        OSPF                               101810
IPV4UDP      DHCP                               178520
RAWIPV6      ICMPv6                                 85
RAWIPV6      MLD                                 87110
------------------------------------------------------
# Display statistics about sent DHCP protocol packets.
<HUAWEI> display ip host packet statistics send protocol dhcp
Packet Statistics Information:
------------------------------------------------------
Layer        ProtocolType                     SendPkts
------------------------------------------------------
IPV4UDP      DHCP                                   40
------------------------------------------------------

Display statistics about DHCP protocol packets sent by all boards.

<HUAWEI> display ip host packet statistics send protocol dhcp slot
Packets Statistic Information:
--------------------------------------------------------------
SlotId  Layer        ProtocolType                     SendPkts
--------------------------------------------------------------
1       IPV4UDP      DHCP                                   20
2       IPV4UDP      DHCP                                   20
--------------------------------------------------------------

Display statistics about DHCP protocol packets sent by board 1.

<HUAWEI> display ip host packet statistics send protocol dhcp slot
Packets Statistic Information:
--------------------------------------------------------------
SlotId  Layer        ProtocolType                     SendPkts
--------------------------------------------------------------
1       IPV4UDP      DHCP                                   20
--------------------------------------------------------------
Table 6-24  Description of the display ip host packet statistics send protocol command output

Item

Description

SlotId Slot Id
Layer

Layer at which the protocol resides

ProtocolType

Protocol type

SendPkts

Total number of sent packets

display port aggregate

Function

The display port aggregate command displays information about aggregated interfaces.

NOTE:

Only 10GE optical interfaces of the CE6810EI, CE6810LI, CE6850-48S6Q-HI, CE6851HI and CE5855-24T4S2Q-EI support the aggregation function.

Format

display port aggregate [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id

Specifies the slot ID of an aggregated interface.

The value is an integer. You can enter a question mark (?) and select a value from the displayed value range.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The interface aggregation function allows multiple consecutive low-bandwidth physical interfaces on the device to be aggregated into a high-bandwidth interface. With the interface aggregation function, interfaces on a card can connect to various types of interfaces on the remote device, allowing for flexible networking and lowering hardware costs. You can run this command to check information about aggregated interfaces.

Example

# Display information about aggregated interfaces.

<HUAWEI> display port aggregate
----------------------------------------------------------------------          
Aggregate-port           Port                                                   
----------------------------------------------------------------------          
4x10GE1/0/9              10GE1/0/9              10GE1/0/10                      
                         10GE1/0/11             10GE1/0/12                      
4x10GE1/0/13             10GE1/0/13             10GE1/0/14                      
                         10GE1/0/15             10GE1/0/16                      
----------------------------------------------------------------------          
Table 6-25  Description of the display port aggregate command output

Item

Description

Aggregate-port

Number of an aggregated interface.

Port

Numbers of interfaces that are aggregated.

Related Topics

display port-group

Function

The display port-group command displays information about permanent port groups and interfaces in these groups.

Format

display port-group [ all | port-group-name ]

Parameters

Parameter

Description

Value

all

Displays information about all permanent port groups and interfaces in these groups.

-

port-group-name

Displays information about a specified permanent port group and interfaces in the group.

The value is the name of an existing port group.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When using the display port-group command, note that:
  • If no parameter is configured, names of all permanent port groups are displayed.
  • If all is configured, information about all permanent port groups and interfaces in these groups is displayed.
  • If port-group-name is configured, information about a specified permanent port group and interfaces in the group is displayed.

Example

# Display information about all port groups and interfaces in these groups.

<HUAWEI> display port-group all
 Port-group: 1                                Total group-members: 3            
 Group-members list:                                                            
   10GE1/0/1                                                                    
   10GE1/0/2                                                                    
   10GE1/0/3                                                                    
Table 6-26  Description of the display port-group all command output

Item

Description

Port-group

name of a permanent group group.

Total group-members

Number of member interfaces in the group.

Group-members list

Member interface list.

display port-isolate group

Function

The display port-isolate group command displays the configuration of a Layer 2 port isolation group.

NOTE:

CE6880EI does not support this command.

Format

display port-isolate group { group-id | all }

Parameters

Parameter

Description

Value

group-id

Displays the configuration of a specified Layer 2 port isolation group.

The value is an integer that ranges from 1 to 2 for CE6870EI, and for other devices is from 1 to 32.

all

Displays the configurations of all Layer 2 port isolation groups.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The Layer 2 port isolation feature isolates interfaces in a VLAN. Run port-isolate enable group group-id command to add interfaces to a port isolation group, you can implement Layer 2 isolation between these interfaces. To view the configuration of the port isolation group, run the display port-isolate group command.

Example

# Display the configurations of all Layer 2 port isolation groups.

<HUAWEI> display port-isolate group all
  The ports in isolate group 1:
10GE1/0/1      10GE1/0/2
 
Related Topics

display port split

Function

The display port split command displays the current status of a split or merged interface.

Format

display port split [ slot slot-id ]

display port split all

(Only the CE7850EI and CE7855EI support this command.)display port split mode [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id

On a stacked device, slot-id specifies the stack ID. On a non-stacked device, slot-id is 1.

The value is an integer and must be set according to the device configuration.

all

displays the current status of all the split or merged interfaces.

-

mode

Displays the interface split mode of the device.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The interface split function allows a high-bandwidth physical interface on the switch to be configured as multiple independent low-bandwidth interfaces. A high-bandwidth interface on the device can be configured as multiple low-bandwidth interfaces or directly used based on the interface type on the remote device. The interface split function allows for flexible networking and lowers hardware costs.

After interfaces are split, you can run this command to view the current status of the split and merged interface.

Example

# Display the current status of a split or merged interface of CE6800.

<HUAWEI> display port split
----------------------------------------------------------------------------------
Port                   Status       Split-port
----------------------------------------------------------------------------------
40GE1/0/1              Enable       40GE1/0/1:1          40GE1/0/1:2
                                    40GE1/0/1:3          40GE1/0/1:4
40GE1/0/2              Disable
40GE1/0/3              Disable
40GE1/0/4              Disable
----------------------------------------------------------------------------------
# Display the current split mode status of CE7850EI.
<HUAWEI> display port split mode 
Note: mode1 : Port 13 to 16, 29 to 32 can not be split,                         
              the right four ports of each 16 ports                             
      mode2 : Port 1 to 4, 29 to 32 can not be split,                           
              the beginning and end four ports on the panel                     
      mode3 : Port 13 to 20 can not be split,                                   
              the center eight ports on the panel                               
      mode4 : Port 14 to 16, 30 to 32 are unavailable,                          
              the right three ports of each 16 ports                            
--------------------------------------------------------------                  
Slot     Operation Mode             Configuration Mode                          
--------------------------------------------------------------                  
1        mode1                      mode3                                       
--------------------------------------------------------------     
Table 6-27  Description of the display port split command output
Item Description
Port Port that can be split or merged.
Status Current status of a split or merged interface:
  • Enable: Interface split is enabled.
  • Disable: Interface split is disabled.
Split-port Interfaces that have been split.

Slot

Stack ID when the stacking function is enabled. The value is 1 when the stacking function is disabled.

Operation Mode

Currently used split mode.

Configuration Mode

Configured split mode. When the configured split mode and currently used split mode are different, the configured split mode takes effect after the device is restarted.

display snmp-agent trap feature-name error-down all

Function

The display snmp-agent trap feature-name error-down all command displays the status of all traps of the error-down module.

Format

display snmp-agent trap feature-name error-down all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The Simple Network Management Protocol (SNMP) is a network management standard widely used on the TCP/IP network. It uses a central computer (a network management station) that runs network management software to manage network elements. The SNMP agent reports trap messages to the network management station so that the network management station can obtain the network status in a timely manner, and the network administrator can take measures accordingly.

The display snmp-agent trap feature-name error-down all command displays the following information:
  • Trap names supported by the error-down module. The trap names are the same as the trap names specified by the snmp-agent trap enable feature-name error-down trap-name trap-name command. Each trap name corresponds to a network element abnormality.

  • Trap status of the error-down module. You can check whether the trap is reported based on the trap name.

Example

# Display all traps of the error-down module.

<HUAWEI>display snmp-agent trap feature-name error-down all
------------------------------------------------------------------------------
Feature name: ERROR-DOWN
Trap number : 2
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwErrordown                     on                      on
hwErrordownRecovery             on                      on
Table 6-28  Description of the display snmp-agent trap feature-name error-down all command output

Item

Description

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Name of the trap:
  • hwErrordown: indicates an error-down alarm.

  • hwErrordownRecovery: indicates an error-down clear alarm.

Default switch status

Default status of the trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the trap function:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display snmp-agent trap feature-name ifnet all

Function

The display snmp-agent trap feature-name ifnet all command displays all trap messages of the IFNET module.

Format

display snmp-agent trap feature-name ifnet all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. The network administrator then immediately takes measures to resolve the problem.

The display snmp-agent trap feature-name ifnet all command displays whether all trap functions of the IFNET module are enabled.

Example

# Display all trap messages of the IFNET module.

<HUAWEI> display snmp-agent trap feature-name ifnet all
------------------------------------------------------------------------------
Feature name: IFNET
Trap number : 2
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status  
linkdown                       off                     off                    
linkup                         off                     off 
Table 6-29  Description of the display snmp-agent trap feature-name ifnet all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message of the IFNET module.

Default switch status

Status of the default trap function:

  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap function:

  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display interface virtual-cable-test

Function

The display interface virtual-cable-test command displays the last cable test result on an Ethernet electrical interface.

Format

display interface interface-type interface-number virtual-cable-test

Parameters

Parameter

Description

Value

interface-type interface-number

Displays the cable test result on a specified interface.

-

Views

User view, System view, GE interface view, 10GE interface view

Default Level

1: Monitoring level

Usage Guidelines

A cable test detects faults on the cable connected to an interface. If the cable is working properly, the test result displays the total length of the cable. If the cable cannot work properly, the test result displays the distance between the interface and the failure point.

NOTE:

The test result is only for reference and may be inaccurate for cables of some vendors.

Example

# Display the cable test result on Ethernet electrical interface 10GE1/0/1 of the CE6800.

<HUAWEI> display interface 10ge 1/0/1 virtual-cable-test
 State Note                                                                     
 OK            : Check succeeded.                                               
 Open/Short    : There may be an open circuit. Please connect cables correctly. 
 Crosstalk     : Check is affected by crosstalk. Please remove the interference 
                 source.                                                        
 notSupport/not: Check is not supported. Please check whether the interface     
                 supports the check.                                            
 Unknown       : Check did not complete successfully, possibly due to user      
                 configuration. Please check configuration on local and remote  
                 interfaces.                                                    
--------------------------------------------------------------------------------
 Last virtual-cable-test time: 2013-7-12 21:25:13
 Pair A length(meters): 10
 Pair B length(meters): 10
 Pair C length(meters): 10
 Pair D length(meters): 10
 Pair A state: OK
 Pair B state: OK
 Pair C state: OK
 Pair D state: OK
Table 6-30  Description of the display interface virtual-cable-test command output

Item

Description

State Note

Meaning of each state.
  • OK: The test succeeds.
  • Open/Short: An open circuit may exist. Connect the cable correctly.
  • Crosstalk: The test is affected by interference. Remove the interference source.
  • notSupport/not: The test is not supported. Check whether the interface supports the test.
  • Unknow: The test fails, possibly due to incorrect configurations. Check the configurations on the local and remote interfaces.

Last virtual-cable-test time

Time when the last VCT test was performed on the interface.
NOTE:
  • When the daylight saving time (DST) is not used, the system displays the following information: Last virtual-cable-test time: 2013-7-12 21:25:13.
  • When the DST is used, the system displays the following information: Last virtual-cable-test time: 2013-7-12 21:25:13 DST.

Pair A length(meters)

Length of a network cable.
  • The length is the distance between the interface and the faulty point if a fault occurs.
  • The value is the actual cable length when the cable is connected to an electrical interface and works properly.
  • The value is the cable length range when the cable is connected to an optical interface with the SFP-GE electrical module and works properly. The ranges include:

    • 0-50
    • 50-80
    • 80-110
    • 110-140
    • 140-99999: indicates that the cable is longer than 140 m

Pair A state

Status of a circuit pair of the cable:
  • OK: indicates that the circuit pair is terminated normally.
  • Open: indicates that the circuit pair is not terminated.
  • Short: indicates that the circuit pair is short-circuited.
  • Crosstalk: indicates that the circuit pairs interfere with each other.
  • Unknown: indicates that the circuit pair has an unknown fault.
NOTE:
Pairs A, B, C, and D are the four pairs in a cable.
Related Topics

duplex

Function

The duplex command sets the duplex mode for an Ethernet electrical interface in non-auto-negotiation mode.

The undo duplex command restores the default duplex mode for an Ethernet electrical interface in non-auto-negotiation mode.

By default, the duplex mode of an Ethernet electrical interface is full duplex when the interface works in non-auto-negotiation mode.

Format

duplex { full | half }

undo duplex [ full | half ]

Parameters

Parameter

Description

Value

full

Sets the duplex mode to full duplex for an Ethernet electrical interface in non-auto-negotiation mode.

-

half

Sets the duplex mode to half duplex for an Ethernet electrical interface in non-auto-negotiation mode.

-

Views

10GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

There are the following two duplex modes:
  • Half duplex mode: An interface in this mode only receives or sends data at a time within a specified maximum transmission distance.
  • Full duplex mode: An interface in this mode can receive and send data at the same time. The maximum throughput in full duplex mode is double that in half duplex mode, and the transmission distance is not limited.

If the peer device does not support auto-negotiation, you can run this command to manually set the duplex mode for the local interface in non-auto-negotiation mode to ensure that the interface works in the same duplex mode as the peer interface.

Prerequisites

The Ethernet interface has been set to work in non-auto-negotiation mode by running the negotiation disable command.

The working rate of the Ethernet interface in non-auto-negotiation mode has been set to 100 Mbit/s by running the speed 100 command.

Precautions
  • Only 10GE electrical interfaces on the CE6850-48T4Q-EI support the duplex mode configuration.
  • After the duplex mode is set for a 10GE electrical interface, the duplex mode configuration restores to the default setting in the following situations:
    • The interface working rate is set to 1000 Mbit/s or 10000 Mbit/s by running the speed { 1000 | 10000 } command or undo speed 100 command on the interface.
    • The Ethernet interface is set to work in auto-negotiation mode by running the undo negotiation disable command on the interface.

Example

# Set the duplex mode to half duplex for Ethernet electrical interface 10GE1/0/1 in non-auto-negotiation mode.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] negotiation disable
[*HUAWEI-10GE1/0/1] speed 100
[*HUAWEI-10GE1/0/1] duplex half

error-down auto-recovery

Function

The error-down auto-recovery command enables an interface in Error-Down state to go Up and sets the auto recovery delay.

The undo error-down auto-recovery command disables an interface in Error-Down state from going Up automatically.

By default, an interface in Error-Down state is not enabled to go Up.

Format

error-down auto-recovery cause { auto-defend | bpdu-protection | crc-statistics | dual-active | forward-engine-buffer-failed | forward-engine-interface-failed | link-flap | loopback-detect | m-lag | mac-address-flapping | portsec-reachedlimit | spine-member-exceed-limit | spine-type-unsupported | stack-config-conflict | stack-member-exceed-limit | stack-packet-defensive | storm-control | transceiver-power-low } interval interval-value

undo error-down auto-recovery cause { auto-defend | bpdu-protection | crc-statistics | dual-active | forward-engine-buffer-failed | forward-engine-interface-failed | link-flap | loopback-detect | m-lag | mac-address-flapping | portsec-reachedlimit | spine-member-exceed-limit | spine-type-unsupported | stack-config-conflict | stack-member-exceed-limit | stack-packet-defensive | storm-control | transceiver-power-low }

NOTE:

The parameters that are supported vary according to device model. To view the parameters that are supported, run error-down auto-recovery cause in the system view and enter the question mark (?).

Parameters

Parameter

Description

Value

cause

Indicates the cause for an interface in Error-Down state.

-

auto-defend

Indicates that the auto-defend function is enabled.

-

bpdu-protection

Indicates that STP BPDU protection is enabled.

-

crc-statistics

Indicates that the number of CRC error packets exceeds the alarm threshold.

-

dual-active

Indicates that a dual-active scenario occurs.

-

forward-engine-buffer-failed

Indicates that the interface buffer exception occurs.

-

forward-engine-interface-failed

Indicates that the internal interface of the forwarding engine is abnormal.

-

link-flap

Indicates that link flapping occurs.

-

loopback-detect

Indicates that a loop is detected.

-

mac-address-flapping

Indicates that MAC address flapping occurs.

-

m-lag

Indicates that a dual-homing networking is changed into a single-homing networking.

-

portsec-reachedlimit

Indicates that the number of secure MAC addresses reaches the upper limit.

-

spine-member-exceed-limit

Indicates that the number of parent switches in the SVF exceeds the limit.

-

spine-type-unsupported

Indicates that the device that cannot function as a parent switch joins a stack set up by the parent switch of an SVF system.

-

stack-config-conflict

Indicates that the switch where it resides has the stack configuration that conflicts with the master switch during the setup of a stack.

-

stack-member-exceed-limit

Indicates that the physical member ports receive a large number of stack protocol packets or stack error packets within a short period.

-

stack-packet-defensive

Indicates that the number of member switches in the stack exceeds the limit.

-

storm-control

Indicates that storm control is enabled.

-

transceiver-power-low

Indicates that the optical power is too low.

-

interval interval-value

Specifies the auto recovery delay.

The value is an integer that ranges from 30 to 86400, in seconds.
  • A smaller value indicates a higher frequency at which an interface alternates between Up and Down states.
  • A larger value indicates longer traffic interruption.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device records the status of an interface as Error-Down when it detects that a fault occurs. The interface in Error-Down state cannot receive or send packets and the interface indicator is off.

An interface enters Error-Down state in the following scenarios.

Cause for an Interface in Error-Down State Scenario Remarks
auto-defend

After the auto-defend action command is used to configure actions against attack sources, the interface that receives attack packets is shut down to prevent the device from attacks.

-

bpdu-protection

On an STP-enabled network where BPDU protection is configured on an edge port, if malicious attackers send bogus BPDUs to attack the switching device, the switching device sets the edge port to Down immediately after the edge port receives BPDUs. As a result, all services on the edge port are interrupted.

For details, see stp bpdu-protection.

crc-statistics

When an Ethernet interface configured with a backup link receives CRC error packets, faults such as packet loss occur. To ensure nonstop service transmission, when the number of received CRC error packets reaches the alarm threshold, the interface is shut down and services are switched to the backup link.

For details, see trap-threshold crc-statistics and port crc-statistics trigger error-down.

dual-active

After a stack splits, an IP address conflict will occur, causing network faults. Dual-active detection (DAD) is a method for detecting stack split and taking recovery action. After a stack splits into multiple stacks, these stacks send DAD packets on the DAD link. The stacks compare received packet information with local information. If one of the stacks becomes the standby stack, the devices in this stack shut down all service interfaces except those excluded from shutdown, enter the recovery state, and stop sending service packets. This improves system availability.

For details, see dual-active detect mode direct and dual-active detect mode relay.

forward-engine-buffer-failed

When an interface buffer exception occurs, the interface will be blocked and many packets are discarded. When the switch detects that many packets are discarded in the outbound direction of an interface, the interface enters Error-Down state.

-

forward-engine-interface-failed

When the internal interface of the forwarding engine is abnormal, the interface will be blocked and many packets are discarded. When the switch detects that many packets are discarded in the outbound direction of an interface, the interface enters Error-Down state.

-

link-flap

Network cable faults or active/standby switchovers may cause an interface to alternate between Up and Down. You can configure link flapping protection. When the device receives an interface Up/Down message, it checks the interface flapping count and link flapping detection interval. If the interface flapping count reaches the limit within the specified period, the device shuts down interface.

For details, see port link-flap trigger error-down.

loopback-detect

Network loops cause broadcast storms. The loopback detection function enables the device to detect loops on the downstream networks. After loopback detection is enabled on an interface, the device sends loopback detection packets at intervals through the interface. When a loop is detected on the interface, the system sends an alarm and sets the interface to Error-Down state based on the configured Error-Down action.

For details, see loopback-detect action error-down.

mac-address-flapping

If the user network where the device is deployed does not support loop prevention protocols, configure a loop prevention action for the device to perform when the device detects MAC address flapping. The device shuts down an interface when detecting MAC address flapping on the interface.

For details, see mac-address flapping detection and mac-address flapping trigger.

m-lag
  • When M-LAG is used for dual-homing to a TRILL network and the peer-link fails but the heartbeat is normal, the M-LAG interface on the backup device will enter Error-Down state. When the peer-link recovers, the physical interfaces change from error-down to Up after 2 minutes by default.

  • When M-LAG is used for dual-homing to an Ethernet, VXLAN network, or IP network and the peer-link fails but the heartbeat is normal, all physical interfaces except the management interface, peer-link interface, and stack interface on the backup device will enter Error-Down state. When the peer-link recovers, the M-LAG interfaces change from Error-Down to Up after 2 minutes by default. Other physical interfaces go Up immediately by default.

NOTICE:

When this command is used and the peer-link interface does not recover, the interface in Error-Down state restores to be Up after the auto recovery delay. In this case, too many packets are transmitted, packets are lost, or packets cannot be forwarded. Exercise caution when you use this command.

-

portsec-reachedlimit

After port security is enabled on an interface, MAC addresses learned by the interface change to secure dynamic MAC addresses. If the port-security protect-action command sets the security protection action to shutdown, the interface is shut down when the number of learned secure MAC addresses reaches the limit.

For details, see port-security protect-action and port-security enable.

spine-member-exceed-limit If the number of parent switches in an SVF system exceeds the limit, service ports on the unnecessary parent switch transit to Error-Down state.

-

spine-type-unsupported When the device that cannot function as a parent switch joins a stack set up by the parent switch of an SVF system, service ports of the device enter Error-Down state.

-

stack-config-conflict During the setup of a stack, if other switches have the stack configuration that conflicts with the master switch, the stack may fail to be set up, and service ports of these switches (excluding the master switch) will be set to Error-Down state.

-

stack-member-exceed-limit If the number of member switches in a stack exceeds the limit, service ports on the unnecessary member switch transit to Error-Down state.

-

stack-packet-defensive Physical member ports receive a large number of stack protocol packets or stack error packets within a short period.

-

storm-control

After storm control is configured on an interface, the interface is shut down when the average rate of receiving broadcast, multicast, and unknown unicast packets is larger than the specified limit within the interval for detecting storms.

For details, see storm-control action.

transceiver-power-low

When the optical power of an interface is too low, faults such as packet loss occur. To prevent this situation, the transceiver-power-lowinterface is configured to transit to Error-Down state when the optical power falls below the threshold. In this way, services can be switched immediately.

For details, see port transceiver-power-low trigger error-down.

Precautions

When a stack interface of the CE5850EI, CE5850HI, or CE5855EI is intermittently interrupted, the interface status is displayed as DOWN. The interface can automatically revert to the Up status without the need of configuring the error-down auto-recovery command.

For switches except the preceding models, if a stack interface is intermittently interrupted, the interface status is displayed as ERROR DOWN(link-flap) and can automatically revert to the Up status only if the error-down auto-recovery command is configured.

Follow-up Procedure

If an interface is in Error-Down state, you are advised to find out the cause first.

An interface in Error-Down state can be recovered using either of the following methods:
  • Manual recovery (after an Error-Down event occurs):

    If a few interfaces need to be recovered, run the shutdown and undo shutdown commands in the interface view. Alternatively, run the restart command in the interface view to restart the interfaces.
    NOTE:

    If an optical interface enters Error-Down state because link flapping occurs or the number of CRC error packets exceeds the alarm threshold, you can remove and reinstall the transmission medium to restore the optical interface to Up state.

  • Automatic recovery (before an Error-Down event occurs):

    If a large number of interfaces need to be recovered, manual recovery is time consuming and some interfaces may be omitted. To avoid this problem, you can run the error-down auto-recovery command in the system view to enable automatic interface recovery and set the recovery delay time. You can run the display error-down recovery command to view information about automatic interface recovery.

    NOTE:

    This method does not take effect on interfaces that are already in Error-Down state. It takes effect only on interfaces that enter Error-Down state after this configuration is complete.

Example

# Set the delay for an interface changes from Down to Up to one hour after the edge port is enabled with BPDU protection on an STP-enabled network.

<HUAWEI> system-view
[~HUAWEI] error-down auto-recovery cause bpdu-protection interval 3600

fault disable

Function

The fault disable command disables an interface from sending the fault code stream upon a negotiation failure.

The undo fault disable command restores the default setting.

By default, an interface sends the fault code stream when it is connected to another interface.

NOTE:

Only 10GE interfaces on the CE6851HI, CE6856HI support this command after having GE optical modules installed. Alternatively, you can configure this command on the parent switch in an SVF system in which the CE6851HI, CE6856HI functions as a leaf switch. This command only takes effect for the leaf switch.

Format

fault disable

undo fault disable

Parameters

None

Views

10GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When negotiation between the local and remote interfaces fails, the local interface sends the fault code stream to the remote interface. If a 10GE interface on the CE6851HI, CE6856HI has a GE optical module installed and is connected to a device that is incompatible with 802.3 and the negotiation fails, you can run this command to disable the interface from sending the fault code stream. The next negotiation between the local and remote interfaces may be successful.

Prerequisites

A GE optical module has been installed on the interface or pre-configured using the device transceiver 1000BASE-X command.

Example

# Disable 10GE1/0/1 from sending the fault code stream to the remote device.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] fault disable

flow-control (interface view)

Function

The flow-control command enables flow control on an Ethernet interface.

The undo flow-control command disables flow control on an Ethernet interface.

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

NOTE:

CE6880-48S4Q2CQ-EI and CE6880-48T4Q2CQ-EI do not support this command.

Format

flow-control [ input | output ]

undo flow-control

Parameters

Parameter

Description

Value

input

Enables flow control in the inbound direction of an Ethernet interface.

-
output

Enables flow control in the outbound direction of an Ethernet interface.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Network congestion causes packet loss. Flow control is a method of avoiding packet loss. If network congestion occurs on the local device after flow control is configured on both ends of the link, the local device sends a message to the peer device, instructing the peer device to reduce the packet sending rate. After receiving the message, the peer device stops sending packets to the local device no matter whether its packet sending rate is high or low, which prevents congestion.

You can enable flow control in both the inbound and outbound directions of an interface or enable the function in either direction based on actual requirements. For example, if flow control is enabled in the inbound direction of 10GE1/0/1 on SwitchA, the interface is controlled by the remote interface and stops sending data packets after receiving a Pause frame from the remote interface. If flow control is enabled in the outbound direction of 10GE1/0/1, the interface only sends a Pause frame to the remote interface, instructing the remote interface to stop sending packets. If the inbound and outbound directions are not specified, flow control is enabled in both directions.

Figure 6-1  Flow control in the inbound and outbound directions

Precautions

  • If flow control is enabled on an interface, it must also be enabled on the peer interface.

  • Flow control and flow control auto-negotiation can be configured on Ethernet interfaces, but they cannot be configured concurrently.

  • The CE6880EI does not support flow control over broadcast packets, multicast packets and unknown unicast packets.

  • If input and output are not specified, the device enables flow control in both the inbound and outbound directions of an Ethernet interface.

  • If both input and output are specified in sequence, flow control takes effect based on the parameter that is specified later. For example, if you run the flow-control input command to enable flow control in the inbound direction of an Ethernet interface, and then run the flow-control output command to enable flow control in the outbound direction of the Ethernet interface, flow control takes effect only in the outbound direction of the Ethernet interface.

  • To prevent stack packet forwarding from being affected, you are advised not to configure the flow-control command on stack member ports.

  • When traffic control is configured in a stack and traffic is forwarded between member devices in the stack, traffic control does not take effect because stack interfaces do not support the flow-control command.

  • Ensure that no loop exists on the traffic path when enabling the flow control function; otherwise, traffic may fail to be forwarded. Flow control does not take effect for traffic on the following loopback interfaces:
    • Loopback interface on the TRILL gateway

    • Loopback interface of VXLAN services

Example

# Enable flow control on 10GE1/0/1.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] flow-control
# Enable flow control in the inbound direction of 10GE1/0/1.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] flow-control input

flow-control negotiation

Function

The flow-control negotiation command enables flow control auto-negotiation on an Ethernet interface.

The undo flow-control negotiation command disables flow control auto-negotiation on an Ethernet interface.

By default, flow control auto-negotiation is disabled on an Ethernet interface.

NOTE:

CE6880-48S4Q2CQ-EI and CE6880-48T4Q2CQ-EI do not support this command.

Format

flow-control negotiation

undo flow-control negotiation

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Network congestion causes packet loss. Flow control can prevent packet loss. If congestion occurs on a device, the device sends a message to request the peer device to stop sending packets, which prevents packet loss. Flow control auto-negotiation enables a device to determine whether to enable flow control by negotiating with the peer device.

Prerequisites

For the CE6860EI's 25GE1/0/9 to 25GE1/0/48 that have 25GE high-speed cables installed, the CE6860EI's 100GE interfaces, and the CE8850-32CQ-EI's 100GE1/0/3 to 100GE1/0/30 that have 100GE 1-to-4 high-speed cables installed, the negotiation enable command has been run to enable auto-negotiation. The undo negotiation disable command has been run to configure the Ethernet interface to work in auto-negotiation mode on other switches.

Precautions

  • If flow control auto-negotiation is enabled on an interface, it must also be enabled on the peer interface.

  • If you run the flow-control negotiation command on an interface that is physically Up, the physical status of the interface becomes Down and then Up. Therefore, exercise caution when deciding to run this command.
  • If flow control has been enabled on an Ethernet interface using the flow-control command, run the undo flow-control command to disable flow control before running the flow-control negotiation command. Otherwise, the flow-control negotiation command fails to be executed.

Example

# Enable flow control auto-negotiation on 10GE1/0/1.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo negotiation disable
[*HUAWEI-10GE1/0/1] flow-control negotiation

group-member

Function

The group-member command adds specified Ethernet interfaces to a permanent port group.

The undo group-member command deletes specified Ethernet interfaces from a permanent port group.

By default, no Ethernet interface is added to a permanent port group.

Format

group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

undo group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

Parameters

Parameter Description Value
interface-type interface-number1 to interface-type interface-number2 Adds an Ethernet interface to a permanent port group.

to indicates an interface range. All interfaces numbered between interface-number1 and interface-number2 are added to the temporary port group.

interface-number2 must be greater than interface-number1.

Views

Permanent port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the same configuration needs to be performed on multiple Ethernet interfaces, one-by-one configuration on each interface may result in errors and a large amount of duplicated workload.

The port group function can solve this problem. You can add the Ethernet interfaces to the same port group. After you run the configuration command once in the port group view, the configuration takes effect on all Ethernet interfaces in the port group, reducing your workload.

Configuration Impact

If the group-member command is run more than once, all configurations take effect.

Precautions

  • Both physical and logical interfaces can be added to a permanent port group.
  • This command has the same function as the interface range and port-group group-member command that is used in the system view. You can also run the port-group group-member or interface range command to add interfaces to a temporary port group to configure the interfaces in batches.

  • When you specify the keyword to in the group-member command:

    • The interfaces specified before and after the keyword to must reside on the same interface card. To add consecutive interfaces on different interface cards to the same port group, run the group-member command or use to multiple times.
    • The interfaces before and after to must have the same attribute, for example, they are both main interfaces, Layer 2 sub-interfaces, or Layer 3 sub-interfaces. If they are both Layer 2 or Layer 3 sub-interfaces, they must be the sub-interfaces of the same main interface. Layer 2 and Layer 3 sub-interfaces can be added to the same port group.
    • The interfaces specified before and after the keyword to must be of the same type, such as10GE interfaces.
    • If to is not used, these limitations do not apply.

Example

# Add 10GE1/0/1 and 10GE1/0/2 to port group portgroup1.
<HUAWEI> system-view
[~HUAWEI] port-group portgroup1
[*HUAWEI-port-group-portgroup1] group-member 10ge 1/0/1 to 10ge 1/0/2

interface (Ethernet interface)

Function

The interface command displays the specified interface view.

Format

interface { ge | 10ge | 25ge | 40ge | 100ge } interface-number [.subinterface-number ]

Parameters

Parameter

Description

Value

ge

Displays the view of a GE interface.

-

10ge

Displays the view of a 10GE interface.

-

25ge

Displays the view of a 25GE interface.

-

40ge

Displays the view of a 40GE interface.

-

100ge

Displays the view of a 100GE interface.

-

interface-number

Specifies the number of an interface.

-

subinterface-number

Specifies the number of a Layer 2 sub-interface or Layer 3 sub-interface.

NOTE:

If a CE6810LI functions as a standalone switch , the CE6810LI does not support Layer 3 sub-interfaces. If a CE6810LI functions as a leaf switch in an SVF system consisting of fixed switches, the CE6810LI supports Layer 3 sub-interfaces.

The value is an integer that ranges from 1 to 4094.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After entering the specified Ethernet interface view, you can set attributes for the Ethernet interface.

Example

# Enter the view of 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1]
Related Topics

interface range

Function

The interface range command creates a temporary interface group and adds specified interfaces to this temporary interface group. Commands configured for a temporary interface group then automatically run on all member interfaces.

By default, no temporary interface group is created.

Format

interface range { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

Parameters

Parameter Description Value
interface-type interface-number1 [ to interface-type interface-number2 ] Specifies Ethernet interfaces to be added to a temporary port group.

to indicates an interface range. All interfaces numbered between interface-number1 and interface-number2 are added to the temporary port group.

The value of interface-number2 must be larger than the value of interface-number1.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the same configuration needs to be performed on multiple Ethernet interfaces, one-by-one configuration on each interface may result in errors and a large amount of duplicated workload.

The port group function can solve this problem. You can add the Ethernet interfaces to the same port group. After you run the configuration command once in the port group view, the configuration takes effect on all Ethernet interfaces in the port group, reducing your workload.

Configuration Impact

If the interface range command is run more than once, all configurations take effect.

Precautions

  • The interface range and port-group group-member commands have the same functions. Therefore, use either of the commands for configuration. After exiting from the temporary port group view, the system deletes the temporary port group.
  • The interface range command is equivalent to the group-member command executed in the permanent port group view. Multiple interfaces can be added to a permanent port group in batches using the group-member command.

  • When you specify the keyword to in the interface range command:

    • The interfaces specified by interface-number1 and interface-number2 must reside on the same LPU. To add contiguous interfaces on different LPUs to the same port group, run this command several times or use the keyword to several times.
    • The interfaces specified by interface-number1 and interface-number2 must be of the same type.
    • If to is not specified, the preceding limitations do not apply.

Example

# Add 10GE1/0/1, 10GE1/0/2, and 10GE1/0/3 to a temporary port group.
<HUAWEI> system-view
[~HUAWEI] interface range 10ge 1/0/1 to 10ge 1/0/3
[~HUAWEI-port-group]

ifg

Function

The ifg command configures the inter-frame gap (IFG).

The undo ifg command restores the default IFG.

By default, the IFG is 12 bytes.

Format

ifg ifg-value

undo ifg [ ifg-value ]

Parameters

Parameter

Description

Value

ifg-value

Specifies the IFG.

The value is an integer that ranges from 8 to 16, in bytes.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The IFG is used to differentiate two data packets. You can run the ifg command to configure the IFG to improve data packet forwarding efficiency.

The packet forwarding rate, also called throughput, refers to the data forwarding capability on an interface, in pps. The packet forwarding rate is calculated based on the number of 64-byte data packets in a certain period. The payload of the preamble and IFG affects the packet forwarding rate.

The default IFG is 12 bytes and is recommended. If you set the IFG to a small value, the device may not have enough time to receive the next frame after receiving one data frame. The packets then cannot be processed in real time, which results in packet loss. Similarly, if the length of a sent data frame exceeds 8000 bytes, it is recommended that you change the IFG to 16 bytes.

When 25GE interfaces (including converted 25GE interfaces) on the CE6860EI CE8850EI work at the rate of 25 Gbit/s, the value of the ifg-value parameter cannot be less than 12.

Example

# Set the IFG of 10GE1/0/1 to 10 bytes.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] ifg 10

ip host packet statistics protocol all

Function

The ip host packet statistics protocol all command enables the global statistics function of sent and received packets.

The undo ip host packet statistics protocol all command disables the global statistics function of sent and received packets.

By default, the global statistics function of sent and received packets is not enabled.

Format

ip host packet statistics protocol all

undo ip host packet statistics protocol all

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To enable the global statistics function of sent and received packets, run the ip host packet statistics protocol all command.

Enabling this function affects the device performance. Therefore, exercise caution when running this command.

Example

# Enable the global statistics function of sent and received packets.

<HUAWEI> system-view
[~HUAWEI] ip host packet statistics protocol all

ip host packet statistics protocol enable

Function

The ip host packet statistics protocol enable command configures a device to collect statistics about different protocol packets received on an interface.

The undo ip host packet statistics protocol enable command cancels the configuration.

By default, the device does not collect statistics about different protocol packets received on an interface.

Format

ip host packet statistics protocol enable

undo ip host packet statistics protocol enable

Parameters

None

Views

Interface view

Default Level

2: Configuration Level

Usage Guidelines

To configure a device to collect statistics about different protocol packets received on an interface, run the ip host packet statistics protocol enable command. To view statistics about different protocol packets received on an interface, run the display ip host packet statistics receive protocol command. To clear statistics about different protocol packets received on an interface, run the reset ip host packet statistics receive protocol command.

Example

# Configure a device to collect statistics about different protocol packets received on an interface.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] ip host packet statistics protocol enable

jumboframe enable

Function

The jumboframe enable command configures the maximum length of a jumbo frame and the maximum length of a non-jumbo frame allowed by an interface.

The undo jumboframe enable command restores the default maximum length of a jumbo frame or the maximum length of a non-jumbo frame allowed by an interface.

By default, the maximum length of a jumbo frame and the maximum length of a non-jumbo frame allowed by an Ethernet interface are 9216 bytes and 1518 bytes, respectively. A frame whose length is less than or equal to 1518 bytes is a non-jumbo frame.

Format

jumboframe enable value1 [ value2 ]

undo jumboframe enable [ value1 [value2 ] ]

NOTE:

CE5810EI and CE6880EI do not support parameter value2.

Parameters

Parameter

Description

Value

value1

Specifies the maximum frame length allowed by an Ethernet interface. A frame whose length exceeds value1 is discarded.

The value is an integer, in bytes. The value range is:
  • CE6870EI: 1536 to 12224
  • CE6880EI: 1536 to 15360 (For the CE6880-48S4Q2CQ-EI and CE6880-48T4Q2CQ-EI, the value must be a multiple of 8.)
  • Other devices: 1536 to 12288

value2

Specifies the maximum length of a non-jumbo frame. A frame whose length is less than or equal to value2 is a jumbo frame.

The value is an integer that ranges from 1518 to value1, in bytes.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When exchanging a large amount of data (for example, transmitting files), Ethernet interfaces may receive Jumbo frames whose length exceeds that of common packets. If the length of the received Jumbo frames exceeds the default data frame length that can be processed, the device directly discards the Jumbo frames. You can set the Jumbo frame length allowed on an interface.

After the Jumbo frame length allowed on an interface is adjusted, packet forwarding becomes flexible. If multiple common Ethernet frames are used to transmit a data packet, redundant information such as inter-packet gaps (IPGs) and headers is also transmitted. If Jumbo frames are used to transmit a data packet of the same length, there are fewer frames without unnecessary IPGs and headers to transmit, improving the bandwidth usage.

Precautions

  • An interface checks whether the length of a packet exceeds the maximum frame length only in the inbound direction. For the CE6870EI, CE6880EI,, an interface does not check the packet length in the outbound direction. After an interface receives protocol packets such as VXLAN, TRILL, and VLAN packets, the chip encapsulates packet headers containing certain bytes to the packets. As a result, the length of the outgoing packets may exceed that of the incoming packets. Therefore, you need to consider the packet header length when configuring the maximum frame length allowed by an interface, preventing packets from being discarded because the packet length exceeds the maximum frame length.

  • Because switches running V100R005C00 and earlier versions do not support configuration of the minimum length of a jumbo frame, pay attention to the following points during version upgrade or downgrade. (value1 specifies the maximum frame length allowed by an Ethernet interface, value2 specifies the minimum length of a jumbo frame.)
    • If value1 is configured in V100R005C00 or an earlier version and the system software is upgraded to V100R005C10 or a later version, the configuration is retained and the default minimum length of a jumbo frame is used.
    • If value1 and value2 are configured in V100R005C10 or a later version and the system software is downgraded to V100R005C00 or an earlier version, the configuration is lost.
    • If only value1 is configured in V100R005C10 or a later version and the system software is downgraded to V100R005C00 or an earlier version, the configuration is saved because both the old and new versions support this parameter.
  • In V200R001C00, after the V200R001SPH015 patch is installed on the CE6870EI, the minimum value of value1 changes from 1536 to 1518. If the value of value1 is configured to be smaller than 1536, note the following points:
    • Do not uninstall the path again; otherwise, the interface may go offline.

    • If a switch is upgraded from V200R001C00 to V200R002C50 or V200R003C00, the interface goes offline after the upgrade. Delete jumbo frame configurations of the interface before the upgrade.

Example

# Set the maximum frame length allowed by 10GE1/0/1 to 5000 bytes.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] jumboframe enable 5000

# Set the maximum frame length allowed by 10GE1/0/1 to 5000 bytes and minimum length of a jumbo frame to 2000 bytes.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] jumboframe enable 5000 2000

loopback

Function

The loopback command enables loopback detection on an interface.

The undo loopback command disables loopback detection on an interface.

By default, loopback detection is not configured.

Format

loopback internal

undo loopback [ internal ]

Parameters

Parameter

Description

Value

internal

Configures internal loopback detection on a specified interface.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When testing some special functions such as locating an Ethernet fault, you must enable loopback detection on the Ethernet interface to check whether the interface is working properly. When no fault occurs on the Ethernet interface, the physical and protocol interface statuses are always Up after loopback detection is enabled. If a fault occurs on the Ethernet interface, the interface status is Down.

After loopback detection is enabled on an interface, packets sent from the interface are sent back to this interface.

Follow-up Procedure

Run the display interface command to check whether the status of the interface configured with internal loopback is Up. If the current status of the interface is Up, the internal forwarding function works well; otherwise, a fault occurs during internal forwarding.

Precautions

  • Loopback detection interrupts the operation of Ethernet interfaces and links. After loopback detection is performed, run the undo loopback command to disable loopback detection immediately.

  • The loopback internal command and the single-fiber enable command cannot be configured on the same interface.

Example

# Configure loopback detection on 10GE1/0/1.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] loopback internal
Related Topics

mtu (Ethernet interface view)

Function

The mtu command sets the maximum transmission unit (MTU) for an Ethernet interface.

The undo mtu command restores the default MTU of an Ethernet interface.

By default, the MTU of an Ethernet interface is 1500 bytes.

Format

mtu mtu

undo mtu

Parameters

Parameter Description Value
mtu Specifies the MTU of an Ethernet interface.

The value is an integer that ranges from 46 to 9600, in bytes.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MTU is short for maximum transmission unit. An MTU value determines the maximum number of bytes each time a sender can send. Therefore, a proper MTU is a prerequisite for normal communication on a network.
  • If the MTU is set too small and the size of packets is quite large, packets may be broken into a great number of fragments, and then be discarded by QoS queues. This affects normal data transmission.
  • If the size of packets exceeds the MTU supported by a transit node or a receiver, the transit node or receiver fragments the packets or even discards them, aggravating the network transmission load.

The default MTU is recommended. When the size of packets to be transmitted or the device that receives packets changes, you can change the MTU based on the actual network.

Precautions

  • If a CE6810LI functions as a standalone switch, the CE6810LI does not support Layer 3 sub-interfaces. If a CE6810LI functions as a leaf switch in an SVF system consisting of fixed switches, the CE6810LI supports Layer 3 sub-interfaces.

  • Only when an Ethernet interface on the device is working at Layer 3, you can run the mtu command to set the MTU. To enable an Ethernet interface to switch from the Layer 2 to Layer 3 working mode, run the undo portswitch command.

Example

# Set the MTU of MEth 0/0/0 to 1200 bytes.

<HUAWEI> system view
[~HUAWEI] interface meth 0/0/0
[~HUAWEI-MEth0/0/0] mtu 1200

# Set the MTU of 10GE 1/0/1 to 1200 bytes.

<HUAWEI> system view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch
[*HUAWEI-10GE1/0/1] mtu 1200
Related Topics

negotiation disable

Function

The negotiation disable command configures an Ethernet interface to work in non-auto-negotiation mode.

The undo negotiation disable command configures an Ethernet interface to work in auto-negotiation mode.

By default, the medium on an Ethernet interface determines whether the interface works in auto-negotiation mode. For details, see Interface Query Tool.

NOTE:

25GE interfaces on the CE6860EI and CE8850-32CQ-EI are configured to work in auto-negotiation mode using the negotiation enable command.

Format

negotiation disable

undo negotiation disable

Parameters

None

Views

GE interface view, 10GE interface view, 40GE interface view, 100GE interface view, port group view, FC interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Earlier Ethernet worked in 10M half-duplex mode and required mechanisms such as Carrier Sense Multiple Access (CSMA)/Collision Detection (CD) to ensure system stability. As Ethernet technology develops, full-duplex Ethernet and 100 Mbit/s Ethernet emerge. This greatly improves Ethernet performance. Auto-negotiation technology allows new Ethernet to be compatible with earlier Ethernet. In auto-negotiation mode, interfaces on both ends of a link negotiate their operating parameters, including the duplex mode and rate. If the negotiation succeeds, the two interfaces work at the same operating parameters.

Precautions

  • Electrical interfaces support the configuration.

  • If you run the negotiation disable command on an interface that is physically Up, the physical status of the interface becomes Down and then Up. Therefore, exercise caution when deciding to run this command.

  • If the module is replaced after the auto-negotiation mode takes effect on the interface, and the new module does not support the negotiation disable command, the interface status and configuration vary depending on the system software version as follows:
    • In versions earlier than V100R005C00, the interface goes Down. You can run the undo negotiation disable command in the interface view to delete the original non-auto-negotiation mode configuration to make the interface go Up again.
    • In V100R005C00 and later versions, if the device conflict-policy keep-config command is configured, the configuration depends on the pre-configured medium type and the negotiation disable configuration on the interface is saved. Otherwise, the configuration is lost.
  • The 40GE optical interfaces work in auto-negotiation mode by default when they are connected to high-speed cables. If the interfaces on the peer device do not support auto-negotiation, run the negotiation disable command to disable the local 40GE optical interfaces from working in auto-negotiation mode.

Example

# Configure 10GE1/0/1 to work in non-auto-negotiation mode.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] negotiation disable
Related Topics

negotiation enable

Function

The negotiation enable command configures a 25GE interface to work in auto-negotiation mode.

The undo negotiation enable command restores the default auto-negotiation setting of a 25GE interface.

By default, auto-negotiation is disabled on a 25GE interface.

NOTE:

Only the CE6860EI and CE8850-32CQ-EI support this command.

Format

negotiation enable

undo negotiation enable

Parameters

None

Views

25GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When 100GE 1-to-4 high-speed cables are installed on 100GE1/0/3 to 100GE1/0/30 of the CE8850-32CQ-EI and all 100GE interfaces of the CE6860EI, and 25GE high-speed cables are installed on 25GE1/0/9 to 25GE1/0/48 of the CE6860EI, the interfaces work in non-auto-negotiation mode by default. You can run this command to configure the interfaces to work in auto-negotiation mode. The other interfaces on the CE8850EI and CE6860EI do not support auto-negotiation.

Prerequisites

A 25GE high-speed cable has been installed on the interface or pre-configured using the device transceiver 25GBASE-COPPER command.

Precautions

If you configure the negotiation enable command on an interface in Up state, the interface state will change to Down and then to Up. Exercise caution when deciding to run this command.

Example

# Configure 25GE1/0/10 to work in auto-negotiation mode.
<HUAWEI> system-view
[~HUAWEI] interface 25ge 1/0/10
[~HUAWEI-25GE1/0/10] negotiation enable

port aggregate

Function

The port aggregate command aggregates specified 10GE interfaces into a 4x10GE interface.

The undo port aggregate command restores an aggregated interface into four 10GE interfaces.

By default, 10GE interfaces are not aggregated.

NOTE:

Only 10GE optical interfaces of the CE6810EI, CE6810LI, CE6850-48S6Q-HI, CE6851HI and CE5855-24T4S2Q-EI support the aggregation function.

Format

port aggregate aggregate-type 4*10ge interface { interface-type interface-number [ to interface-type interface-number ] } &<1–12>

undo port aggregate aggregate-type 4*10ge interface { interface-type interface-number [ to interface-type interface-number ] } &<1–12>

Parameters

Parameter

Description

Value

aggregate-type 4*10ge

Specifies the aggregation type: aggregating four 10GE interfaces into a 4x10GE interface.

-

interface { interface-type interface-number [ to interface-type interface-number ] }

Specifies the numbers of interfaces to be aggregated.

The keyword to specifies an interface range that includes all 10GE interfaces between these two interfaces. You can omit the space between interface-type and interface-number when entering the command.

You can enter a question mark (?) and select the numbers of interfaces that support the aggregation function from the displayed interface numbers.

Four consecutive 10GE interfaces can be aggregated into an interface. The switch displays the first interfaces of such consecutive interfaces. The displayed interfaces are numbered 4n+1 (n = 0, 1, 2 ...). If you select a displayed interface numbered (4n+1), interfaces numbered (4n+1) to (4n+4) will be aggregated.

Views

System view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The interface aggregation function allows multiple consecutive low-bandwidth physical interfaces on the device to be aggregated into a high-bandwidth interface. With the interface aggregation function, interfaces on a card can connect to various types of interfaces on the remote device, allowing for flexible networking and lowering hardware costs.

Only 10GE optical interfaces of the CE6810EI, CE6810LI, CE6850-48S6Q-HI, CE6851HI, and CE5855EI can be aggregated into 4x10GE interfaces. You can run the display port aggregate [ slot slot-id ] command in any view to check information about aggregated interfaces.

Precautions

  • After this command is run, 10GE interfaces that are aggregated will be deleted and configurations of these interfaces will be lost. Therefore, exercise caution when deciding to run this command.

  • After running this command, restart the switch to make the configuration take effect.

Example

# Aggregate 10GE1/0/1 to 10GE1/0/4 into a 4x10GE interface.

<HUAWEI> system-view
[~HUAWEI] port aggregate aggregate-type 4*10ge interface 10ge 1/0/1

port crc-statistics trigger error-down

Function

The port crc-statistics trigger error-down command enables an interface to transit to the Error-Down state when the number of received CRC error packets exceeds the threshold.

The undo port crc-statistics trigger error-down command disables an interface from transiting to the Error-Down state when the number of received CRC error packets exceeds the threshold.

By default, an interface does not transit to the Error-Down state when the number of received CRC error packets exceeds the threshold.

Format

port crc-statistics trigger error-down

undo port crc-statistics trigger error-down

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, fc interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If an interface receives a CRC error packet, faults such as packet loss occur on the link. If a backup link is configured on an Ethernet interface, configure the interface to transit to the Error-Down state when the number of received CRC error packets exceeds the threshold. In this way, services can be switched to the backup link in a timely manner, and reliable data transmission can be ensured. The device records the status of an interface as Error-Down when it detects that a fault occurs. The interface in Error-Down state cannot receive or send packets and the interface indicator is off.

You can use the trap-threshold crc-statistics command to set the alarm threshold for CRC error packets and alarm interval.

Prerequisites

In V100R006C00 or later versions, after service ports are configured as stack member ports or ports are added to a fabric port as member ports, the port crc-statistics trigger error-down command is automatically configured on these member ports. After a version upgrade to V100R006C00 or later, the port crc-statistics trigger error-down command configuration is automatically added to these member ports.

In versions earlier than V200R002C50, after stack member ports are restored as common ports or member ports are removed from a fabric port, the port crc-statistics trigger error-down command configuration is not automatically cleared.

In V200R002C50 and later versions, if the port crc-statistics trigger error-down command is not configured before service ports are configured as stack member ports or member ports are added to a fabric port, this command configuration is automatically cleared after stack member ports are restored as common ports or member ports are removed from this fabric port. If this command has been configured before service ports are configured as stack member ports or member ports are added to a fabric port, this command configuration is not automatically cleared after stack member ports are restored as common ports or member ports are removed from this fabric port.

Follow-up Procedure

If an interface is in Error-Down state, you are advised to find out the cause of the Error-Down event first. If the two connected interfaces are optical interfaces, check whether optical modules and fiber on the interfaces are securely installed or fail. If the two connected interfaces are electrical interfaces, check whether the network cable is securely connected to the interfaces or fails.

An interface in Error-Down state can be recovered using either of the following methods:
  • Manual recovery (after an Error-Down event occurs):

    If a few interfaces need to be recovered, run the shutdown and undo shutdown commands in the interface view. Alternatively, run the restart command in the interface view to restart the interfaces, or remove and reinstall the transmission medium on optical interfaces.

  • Automatic recovery (before an Error-Down event occurs):

    If a large number of interfaces need to be recovered, manual recovery is time consuming and some interfaces may be omitted. To avoid this problem, you can run the error-down auto-recovery cause crc-statistics interval command in the system view to enable automatic interface recovery and set the recovery delay time. You can run the display error-down recovery command to view information about automatic interface recovery.

    NOTE:

    This method does not take effect on interfaces that are already in Error-Down state. It takes effect only on interfaces that enter the Error-Down state after this configuration is complete.

Example

# Enable 10GE1/0/1 to transit to the Error-Down state when the number of received CRC error packets exceeds the threshold.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port crc-statistics trigger error-down

port mode (25GE interface)

Function

The port mode command configures an SFP28 optical interface to work at the rate of 10 Gbit/s or 1 Gbit/s.

The undo port mode command restores the rate of 25 Gbit/s for an SFP28 optical interface.

By default, an SFP28 optical interface works at the rate of 25 Gbit/s after a 25GE medium is installed, and does not go Up after a 10GE or GE medium is installed.

Format

port mode { 10g | ge }

undo port mode { 10g | ge }

Parameters

Parameter

Description

Value

10g

Configures an interface to work at the rate of 10 Gbit/s.

-

ge

Configures an interface to work at the rate of 1 Gbit/s.

NOTE:

25GE interfaces on switches do not support this parameter.

25GE interfaces split from 100GE interfaces on switches do not support this parameter.

-

Views

25GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

SFP28 optical interfaces can work at the rates of 25 Gbit/s and 10 Gbit/s. They work at the rate of 25 Gbit/s by default. Interfaces numbered 4n+1 to 4n+4 (n is an integer that ranges from 0 to 5 for the CE8860EI and from 0 to 11 for the CE6860EI) are divided into groups. After you run the port mode 10g or undo port mode 10g command on any interface in a group, all the four interfaces in the group are configured to work at the same rate. You must install media matching the interface rate on the four interfaces. If a medium whose rate differs from the interface rate is installed on an interface, the interface goes Down.
  • When a 25GE medium is installed on an interface, the interface works at the rate of 25 Gbit/s. If the rate of the 25GE medium can be adjusted, you can run the port mode 10g command to configure the interface to work at the rate of 10 Gbit/s.

  • When a 10GE medium is installed on an interface, the interface goes Up only after it is configured to work at the rate of 10 Gbit/s using the port mode 10g command.

25GE interfaces split from a QSFP28 interface support the port mode command and you need to install or pre-configure a 100GE medium on the QSFP28 interface.

Prerequisites

The interface has been installed or pre-configured with a medium.

Precautions

  • Configure the remote interface to work at the same rate as that of the local interface.

  • Install the corresponding medium based on the configuration. By default, an SFP28 optical interface works at the rate of 25 Gbit/s after connecting to a 25GE medium. If the port mode 10g command is configured, install a 10GE medium on the interface. If the port mode ge command is configured, install a GE medium on the interface.

  • A 25GE interface cannot be configured as a stack interface when it works at the rate of 10 Gbit/s. Otherwise, if a 25GE interface is configured as a stack interface, the working rate of the interface cannot be changed.

  • In V100R006C00SPC300 and earlier versions, if a 100GE interface is split into four 25GE interfaces and has a 40GE medium installed, the four 25GE interfaces go Up and work at the rate of 10 Gbit/s only after the port mode 10g command is configured.

    In versions later than V100R006C00SPC300, the port mode 10g command does not need to be configured, and the four 25GE interfaces automatically work at the rate of 10 Gbit/s. If the system software is upgraded from an earlier version to a version later than V100R006C00SPC300, the original port mode 10g configuration on the four 25GE interfaces is lost and the interfaces automatically work at the rate of 10 Gbit/s, which requires no attention.

  • If the port mode { 10g | ge } command is configured on an interface, the clear configuration this or clear configuration interface command does not clear the configuration.

Example

# Configure 25GE1/4/1 to work at the rate of 10 Gbit/s.
<HUAWEI> system-view
[~HUAWEI] interface 25ge 1/4/1
[~HUAWEI-25GE1/4/1] port mode 10g
Warning:The interfaces(25GE1/4/1 to 25GE1/4/4) will be converted to 10G mode.[Y/N]: y

port mode 100ge

Function

The port mode 100ge command configures a 40GE interface to work at the rate of 100 Gbit/s.

The undo port mode 100ge command restores the rate of a 40GE interface to 40 Gbit/s.

By default, a 40GE interface works at the rate of 40 Gbit/s after connecting to a 40GE optical module, and does not go Up after connecting to a 100GE optical module.
NOTE:

Only 40GE1/0/1 and 40GE1/0/2 on the CE6880EI support this command.

Format

port mode 100ge interface { interface-type interface-number [ to { interface-type interface-number } ] } &<1-18>

undo port mode 100ge interface { interface-type interface-number [ to { interface-type interface-number } ] } &<1-18>

Parameters

Parameter

Description

Value

interface interface-type interface-number [ to { interface-type interface-number

The keyword to specifies an interface range that includes all interfaces between these two interfaces. You can omit the space between interface-type and interface-number when entering the command.

Currently, interface-type can only be set to 40GE.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If you need to connect a CE6880EI to another device through 100GE interfaces, configure 40GE1/0/1 and 40GE1/0/2 on the CE6880EI to work at the rate of 100 Gbit/s. The converted interfaces are numbered 100GE1/0/1 and 100GE1/0/2 respectively. After being configured to work at the rate of 100 Gbit/s, the interfaces can have QSFP28 or QSFP+ media installed, and cannot be split.

Precautions

  • If the working rate of an interface is switched using this command, the original configuration on the interface will be cleared. Exercise caution when deciding to run this command.

  • If 40GE1/0/1 on the CE6880-48S4Q2CQ-EI or CE6880-48T4Q2CQ-EI is switched to 100GE1/0/1, 10GE1/0/45 and 10GE1/0/46 cannot be used and are in DOWN(Port unavailable) state. Similarly, if 40GE1/0/2 is switched to 100GE1/0/2, 10GE1/0/47 and 10GE1/0/48 cannot be used and are in DOWN(Port unavailable) state. After the converted 100GE interfaces restore to 40GE interfaces, the corresponding 10GE interfaces also restore and work properly. This restriction does not apply to the CE6880-24S4Q2CQ-EI.

  • A 40GE interface that is split into four 10GE interfaces or configure stack mode does not support this command. Otherwise, if a 40GE interface is configured to work at the rate of 100 Gbit/s using the port mode 100ge command, the interface can be configured as a stack interface.

  • Configure the remote interface to work at the same rate as that of the local interface.

  • After configuring the port mode 100ge command on a 40GE interface, do not run the rollback configuration command to roll back the configuration to that before the rate switching; otherwise, the 40GE interface configured to work at the rate of 100 Gbit/s will go Down.

  • If you need to run the undo port mode 100ge command to restore the rate of an interface after configuring the port mode 100ge command on the interface, you must run the commit command to commit the configuration first, and then restore the configuration.

Example

# Configure 40GE1/0/1 to work at the rate of 100 Gbit/s.
<HUAWEI> system-view
[~HUAWEI] port mode 100ge interface 40ge 1/0/1
Warning: This operation will delete current port(s) and create new port(s), and all configurations of the current port(s) will be cleared. Continue? [Y/N]: y

port mode fast-up

Function

The port mode fast-up command enables a 10GE optical interface to go Up quickly.

The undo port mode fast-up command disables a 10GE optical interface from going Up quickly.

By default, a 10GE optical interface is disabled from going Up quickly.

Format

port mode fast-up

undo port mode fast-up

Parameters

None.

Views

10GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Some 10GE optical interfaces go Up slowly due to the chips used, which degrades device performance and lowers user experience. For example, a user runs the shutdown command on an interface to shut down the interface, and then runs the undo shutdown command on the interface. It takes a long time for the physical status of the interface to change from Down to Up. To reduce the time required for interface Up, the user can run the port mode fast-up command to quickly change the physical status of a 10GE optical interface to Up.

Precautions

  • You can configure the port mode fast-up command on the 10GE optical interfaces of the CE6850-48S4Q-EI and CE5850-48T4S2Q-EI only when the interfaces have no optical module installed or have the GE, 10GBASE-LR, 10GBASE-SR, or 10GBASE-USR optical modules installed.
  • If a user has configured the port mode fast-up command on a 10GE optical interface, the interface status changes to Down after the user installs an optical module rather than the GE, 10GBASE-LR, 10GBASE-SR, or 10GBASE-USR on the interface. To change the interface status to Up, use either of the following methods:
    • Replace the optical module with a GE, 10GBASE-LR, 10GBASE-SR, or 10GBASE-USR optical module.
    • Run the undo port mode fast-up command on the interface and then the commit command to commit the configuration. Then, remove and re-install the current optical module.
  • 10GE optical interfaces converted from a 40GE interface do not support the port mode fast-up command.

Example

# Configure the optical interface 10GE1/0/1 to go Up quickly.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port mode fast-up

port-group

Function

The port-group command creates a permanent port group and displays the permanent port group view.

The undo port-group command deletes permanent port groups.

By default, no permanent port group is configured.

Format

port-group port-group-name

undo port-group { all | port-group-name }

Parameters

Parameter

Description

Value

port-group-name

Specifies the name of a permanent port group.

The value is a string of 1 to 32 characters without spaces.

When quotation marks are used around the string, spaces are allowed in the string.
NOTE:
  • When configuring the name of an interface group, the uppercase and lowercase letters in the name must be consistent with what the user input.
  • Interface group names are case-insensitive. For example, ABC and abc specify the same interface group. After ABC is configured for an interface group, the ABC interface group view will be displayed when you configure abc.
  • Do not configure "all" as the name of a permanent interface group. Meanwhile, to avoid a usage conflict between the port-group group-member command and port-group-name, do not specify g, group-member, or first letters of group-member as the name of a permanent interface group.
all

Deletes all port groups.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the same configuration needs to be performed on multiple Ethernet interfaces, one-by-one configuration on each interface may result in errors and a large amount of duplicated workload.

The port group function can solve this problem. You can add the Ethernet interfaces to the same port group. After you run the configuration command once in the port group view, the configuration takes effect on all Ethernet interfaces in the port group, reducing your workload.

Two port group types are available:
  • Temporary port group: To temporarily batch deliver the configuration to multiple specified interfaces, you can configure a temporary port group. After the configuration is batch delivered, the system will delete the temporary port group once you exit from the port group view.
  • Permanent port group: To batch deliver the configuration for multiple times, you can configure a permanent port group. After you exit from the port group view, the port group and member interfaces in the group still exist, facilitating subsequent batch configuration for the member interfaces. To delete a permanent port group, run the undo port-group { all | port-group-name } command.

Follow-up Procedure

Run the group-member command to add Ethernet interfaces to the created permanent port group.

Precautions

The system supports a maximum of 64 permanent port groups and each port group supports a maximum of 512 member interfaces.

Example

# Create port group portgroup1 and enter the port group view.

<HUAWEI> system-view
[~HUAWEI] port-group portgroup1
[*HUAWEI-port-group-portgroup1]

port-group group-member

Function

The port-group group-member command creates a temporary port group and adds specified Ethernet interfaces to the temporary port group. Commands configured for a temporary port group will be automatically run on all member interfaces.

By default, no temporary port group is created.

Format

port-group group-member { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10>

Parameters

Parameter Description Value
interface-type interface-number1 [ to interface-type interface-number2 ] Specifies Ethernet interfaces to be added to a temporary port group.

to indicates an interface range. All interfaces numbered between interface-number1 and interface-number2 are added to the temporary port group.

The value of interface-number2 must be larger than the value of interface-number1.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the same configuration needs to be performed on multiple Ethernet interfaces, one-by-one configuration on each interface may result in errors and a large amount of duplicated workload.

The port group function can solve this problem. You can add the Ethernet interfaces to the same port group. After you run the configuration command once in the port group view, the configuration takes effect on all Ethernet interfaces in the port group, reducing your workload.

Two port group types are available:
  • Temporary port group: To temporarily batch deliver the configuration to multiple specified interfaces, you can configure a temporary port group. After the configuration is batch delivered, the system will delete the temporary port group once you exit from the port group view.
  • Permanent port group: To batch deliver the configuration for multiple times, you can configure a permanent port group. After you exit from the port group view, the port group and member interfaces in the group still exist, facilitating subsequent batch configuration for the member interfaces. To delete a permanent port group, run the undo port-group { all | port-group-name } command.

Configuration Impact

If the port-group group-member command is run more than once, all configurations take effect.

Precautions

  • The port-group group-member command is equivalent to the group-member command executed in the permanent port group view. Multiple interfaces can be added to a permanent port group in batches using the group-member command.

  • When you specify the keyword to in the group-member command:

    • The interfaces specified before and after the keyword to must reside on the same interface card. To add consecutive interfaces on different interface cards to the same port group, run the group-member command or use to multiple times.
    • The interfaces before and after to must have the same attribute, for example, they are both main interfaces, Layer 2 sub-interfaces, or Layer 3 sub-interfaces. If they are both Layer 2 or Layer 3 sub-interfaces, they must be the sub-interfaces of the same main interface. Layer 2 and Layer 3 sub-interfaces can be added to the same port group.
    • The interfaces specified before and after the keyword to must be of the same type, such as10GE interfaces.
    • If to is not used, these limitations do not apply.

Example

# Add 10GE1/0/1, 10GE1/0/2, and 10GE1/0/3 to a temporary port group.
<HUAWEI> system-view
[~HUAWEI] port-group group-member 10ge 1/0/1 to 10ge 1/0/3
[~HUAWEI-port-group]

port-isolate enable

Function

The port-isolate enable command enables layer 2 port isolation.

The undo port-isolate enable command disables layer 2 port isolation.

By default, layer 2 port isolation .mine is disabled.

NOTE:

The CE6880EI does not support this command.

Format

port-isolate enable group group-id

undo port-isolate enable [ group group-id ]

Parameters

Parameter

Description

Value

group group-id

Specifies the ID of a port isolation group.

The value is an integer that ranges from 1 to 2 for CE6870EI, and for other devices is from 1 to 32.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement Layer 2 isolation between interfaces, add different interfaces to different VLANs. This, however, wastes VLAN resources. To save VLAN resources, enable port isolation to isolate interfaces in a VLAN. That is, you can add interfaces to a port isolation group to implement Layer 2 isolation between these interfaces. Port isolation provides secure and flexible networking schemes for customers.

Precautions

  • Interfaces in a port isolation group are isolated from each other, but interfaces in different port isolation groups can communicate.

  • The port-isolate enable command cannot be used on the management interface.
  • Only the interfaces working at Layer 2 support port isolation.

Example

# Enable layer 2 port isolation on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port-isolate enable group 1

port split

Function

The port split command splits a specified 40GE or 100GE interface.

The undo port split command cancels the split configuration on a 40GE or 100GE interface.

By default, an interface is not split.

Format

port split dimension interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-18> [ split-type split-type ]

undo port split dimension interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-18> [ split-type split-type ]

Parameters

Parameter Description Value
dimension

Indicates that converted interfaces are numbered using the dimension numbering rule.

-
interface interface-type interface-number1 [ to interface-type interface-number2 ]

Specifies the interface to be split. The keyword to specifies an interface range that includes all interfaces between these two interfaces. These interfaces must be of the same type.

You can omit the space between interface-type and interface-number when entering the command.

interface-number2 must be larger than interface-number1.
split-type split-type

Indicates the interface split type.

You can enter a question mark (?) and select a value from the displayed value range.

Views

System view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The interface split function allows a high-bandwidth physical interface on the device to be split into multiple independent low-bandwidth interfaces. A high-bandwidth interface on the device can be split into multiple low-bandwidth interfaces or directly used based on the interface type on the remote device. The interface split function allows for flexible networking and lowers hardware costs.

Converted interfaces are numbered using the dimension numbering rule. For example, 40GE1/0/1 is split into four interfaces. The converted interfaces are numbered 40GE1/0/1:1 to 40GE1/0/1:4, and the bandwidth is 10 Gbit/s. It is recommended that you use the Interface Split Query Tool to query details about the interface split procedure, cables and optical modules used on converted interfaces, precautions, and FAQs.

Precautions

  • Only 40GE1/0/1 and 40GE1/0/2 work in 40GE mode on CE6880EI support port split, and the split type is four 10GE interfaces.

  • After 100GEx/1/3, 100GEx/2/4, 100GEx/3/7, or 100GEx/4/8 (x indicates the switch's stack ID) on a CE88-D8CQ card has a 40GE medium installed and is split, and the system software of the switch needs to be upgraded from V100R006C00 or V200R001C00 to V200R002C50 or a later version, run the display lldp neighbor brief command before the upgrade to check whether the neighbor relationships are consistent with the actual physical cable connections. If the neighbor relationships are inconsistent with the actual physical cable connections, reconfigure services on the converted interfaces after the upgrade to ensure that service traffic can be properly forwarded.

  • After configuring or canceling interface split on an interface, the interface will not exist and the original configuration on the interface will be lost. If you run the rollback configuration command to roll back the configuration to that before the interface split, the original configuration on the interface will not be restored, and you need to manually perform the configuration again. Therefore, exercise caution when deciding to roll back the configuration.

  • If a 40GE or 100GE interface has been added to a stack interface, the 40GE or 100GE interface cannot be split.
  • If a 40GE interface is not split and is connected to four 10GE interfaces on the remote device using a 1-to-4 cable, the 40GE interface cannot go Up and the interface indicator is off. The four 10GE interfaces on the remote device may go Up and the interface indicators are steady on. However, the interfaces cannot work properly. After interface split is correctly configured, the interfaces can work properly.

  • If 40GE1/0/4 on a CE6850-48S4Q-EI is split into 10GE interfaces, super virtual fabric (SVF) cannot be configured on the CE6850-48S4Q-EI. If SVF is configured on a CE6850-48S4Q-EI, 40GE1/0/4 on the CE6850-48S4Q-EI cannot be split into 10GE interfaces.
  • 10GE interfaces split from 40GE optical interfaces on CE series switches (excluding the CE7850EI and CE7855EI) can be used for stack connections.
  • On the CE7850EI and CE7855EI, converted interfaces do not support the packet forwarding mode set to cut-through.

  • In V100R005C10, when a CE6810-48S4Q-EI, CE6810-48S4Q-LI, or CE6810-32T16S4Q-LI functions as a leaf switch, its last 40GE interface cannot be split. This limitation does not apply to a CE7850-32Q-EI that functions as a parent switch.

    In V100R006C00 and later versions, by default, when a CE6810-48S4Q-EI, CE6810-48S4Q-LI, or CE6810-32T16S4Q-LI functions as a leaf switch, its last 40GE interface cannot be split. This limitation does not apply to a CE7850-32Q-EI/CE7855-32Q-EI that functions as a parent switch. If you need to split the last 40GE interface, run the device exclude leaf-type ce5810ei command to prevent a CE5810EI from joining an SVF system as a leaf switch.

  • If a stack member switch with interface split configuration on a 40GE interface is replaced by a switch of the same model and same stack ID, the original 40GE interface split configuration takes effect on the new switch and the service configuration on the converted 10GE interfaces is retained. The configuration is automatically delivered to the new member switch without manual intervention. However, the new member switch takes a longer time to start than other member switches.

Example

# Split a 40GE interface into four 10GE interfaces and enter the converted interface view.

<HUAWEI> system-view
[~HUAWEI] port split dimension interface 40ge 1/0/1
Warning: This operation will delete current port(s) and create new port(s). New 
port(s) will be offline before the board of slot 1 is reset. Continue? [Y/N]: y
[*HUAWEI] commit
[~HUAWEI] quit
<~HUAWEI> reset slot 1  
<HUAWEI> system-view
[~HUAWEI] interface 40ge 1/0/1:1
[~HUAWEI-40GE1/0/1:1] 
Related Topics

port split mode

Function

The port split mode command configures the interface split mode.

The undo port split mode command restores the default interface split mode.

By default, the device uses mode 1 to split interfaces.

NOTE:

Only 40GE interfaces on the CE7850EI and CE7855EI support this command.

Format

port split mode { mode1 | mode2 | mode3 | mode4 } slot slot-id

undo port split mode { mode1 | mode2 | mode3 | mode4 } slot slot-id

Parameters

Parameter Description Value
mode1

Uses mode 1 to split interfaces. The eight interfaces numbered 13 to 16 and 29 to 32 cannot be split, and can be used as normal interfaces. Interface split can be configured on the other 24 interfaces.

-

mode2

Uses mode 2 to split interfaces. The eight interfaces numbered 1 to 4 and 29 to 32 cannot be split, and can be used as normal interfaces. Interface split can be configured on the other 24 interfaces.

-

mode3

Uses mode 3 to split interfaces. The eight interfaces numbered 13 to 20 cannot be split, and can be used as normal interfaces. Interface split can be configured on the other 24 interfaces.

-

mode4

Uses mode 4 to split interfaces. The six interfaces numbered 14 to 16 and 30 to 32 cannot be split, and cannot be used as normal interfaces. The other 26 interfaces are automatically configured as one hundred and four 10GE interfaces after the device restarts. The split configuration cannot be canceled.

-

slot slot-id

Specifies the slot ID of the interface to be split.

The value depends on the device configuration.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Due to the internal structure of a device, 32 40GE interfaces of the CE7850EI and CE7855EI cannot be split into 128 10GE interfaces simultaneously. Therefore, you need to run this command to configure different interface split modes for shielding the interface split function of some interfaces.

You can choose different interface split modes shown in Figure 6-2. Interfaces that cannot be split can work as 40GE interfaces.

Figure 6-2  40GE interface split modes of the CE7850EI and CE7855EI

Precautions

If the interface split mode changes and an interface supports different interface split configurations in the old and new interface split modes, the interface goes Offline. You can still configure services on the interface in Offline state. After the switch restarts, the interface goes Up and the configuration delivered when the interface is in Offline state takes effect.

Follow-up Procedure

Run the reset slot slot-id command to restart the device for the interface split mode configuration to take effect.

Example

# Configure mode 2 as the interface split mode for 40GE interfaces on the CE7850EI.

<HUAWEI> system-view
[~HUAWEI] port split mode mode2 slot 1
Warning: This operation may cause the split configurations on the board to be lost. This mode will take effect after board is reset.
 Continue? [Y/N]: y

# Configure mode 4 as the interface split mode for 40GE interfaces on the CE7850EI.

<HUAWEI> system-view
[~HUAWEI] port split mode mode4 slot 1
Warning: This operation may cause the split configurations on the board to be lo
st.Six ports numbered 14 to 16 and 30 to 32 will be unavailable, all the other 2
6 ports will be split into 104 ports by default. New port(s) will be offline before the board is reset. Continue? [Y/N]: y
Related Topics

port split refresh

Function

The port split refresh command refreshes the numbering rule of converted interfaces.

Format

port split refresh

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Assume that the device has the interface sequence numbering rule configured. To use the dimension numbering rule to number converted interfaces, run the port split refresh command to refresh the numbering rule of converted interfaces to the default dimension numbering rule.

The port split refresh command is used to refresh the interface numbering rule to the dimension numbering rule. It cannot be used to refresh the dimension numbering rule to the interface sequence numbering rule. If the dimension numbering rule is configured, the device still uses the rule after this command is run.

NOTE:
After the numbering rule of converted interfaces is refreshed using this command, related configurations on converted interfaces are not lost.

Example

# Refresh the numbering rule of converted interfaces on the device.

<HUAWEI> system-view
[~HUAWEI] port split refresh 
Warning: All split ports will be refreshed to the format with a dimension number
 and cannot be reverted.                                                        
Are you sure to continue? [Y/N]:y                                               
Info: Succeeded in refreshing the split ports.  

port-status fast-detect enable

Function

The port-status fast-detect enable command enables the function of quickly detecting the interface physical status change.

The undo port-status fast-detect enable command restores the default setting.

By default, the function of quickly detecting the interface physical status change is disabled.

Format

port-status fast-detect enable

undo port-status fast-detect enable

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The physical status of an Ethernet interface can be Up or Down. In a scenario where a switch connects to a transmission device or on a highly reliable network, you can configure the function of quickly detecting the interface physical status change to ensure uninterrupted services.

You can run the carrier down-hold-time interval command to set the delay in reporting an interface Down event. If the value of interval is small (for example, less than or equal to 2 seconds), the system may generate a false alarm about the interface status change within the delay specified by interval. You can configure the function of quickly detecting the interface physical status change to effectively reduce such problems.

Precautions

If a switch (for example, CE5810EI, CE5850HI, or CE5855EI) uses a dual-core CPU, the function of quickly detecting the interface physical status change can be enabled on a maximum of four interfaces simultaneously.
NOTE:

For information about the CPU on a switch, see "Specifications - Technical specifications" of the switch in CloudEngine 8800, 7800, 6800, and 5800 Series Hardware Description - Chassis - Chassis Models.

Example

# Enable the function of quickly detecting the interface physical status change on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port-status fast-detect enable

portswitch

Function

The portswitch command changes the working mode of Ethernet interfaces from Layer 3 mode to Layer 2 mode.

The undo portswitch command changes the working mode of Ethernet interfaces from Layer 2 mode to Layer 3 mode.

By default, an Ethernet interface works in Layer 2 mode.

Format

portswitch

undo portswitch

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, an Ethernet interface on the device works in Layer 2 mode. To enable Layer 3 functions on the interface, run the undo portswitch command on the interface.

Prerequisites

Before switching an interface on the CE6855HI, CE6856HI or CE7855EI to Layer 3 mode, run the vlan reserved for main-interface startvlanid to endvlanid command to configure a dedicated reserved VLAN for the Layer 3 main interface.

Precautions

  • The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.

  • A Layer 2 interface can have an IP address configured after being switched to the Layer 3 mode.

Example

# Change the working mode of the CE6850HI 10GE1/0/1 from Layer 2 mode to Layer 3 mode.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] undo portswitch

# Change the working mode of the CE6855HI 10GE1/0/1 from Layer 2 mode to Layer 3 mode.

<HUAWEI> system-view
[~HUAWEI] vlan reserved for main-interface 10 to 20
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] undo portswitch
Related Topics

portswitch batch

Function

The portswitch batch command changes the working mode of Ethernet interfaces from Layer 3 mode to Layer 2 mode in batches.

The undo portswitch batch command changes the working mode of Ethernet interfaces from Layer 2 mode to Layer 3 mode in batches.

By default, the working mode of the interface is Layer 2 mode.

Format

portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

undo portswitch batch interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

Parameters

Parameter Description Value
interface-type interface-number1 [ to interface-number2 ]
Specifies interfaces of which the working mode needs to be changed.
  • interface-number1 specifies the number of the first interface.
  • interface-number2 specifies the number of the last interface.

    The value of interface-number2 must be larger than the value of interface-number1. interface-number1 and interface-number2 specify the range of interfaces.

  • If to interface-number2 is not specified, only the working mode of the interface specified by interface-number1 is changed.

NOTE:

You can specify a maximum of 10 interface number ranges at a time. The entered ranges cannot overlap.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the portswitch batch or undo portswitch batch command to change the working mode of interfaces in batches.

Prerequisites

Before switching an interface on the CE6855HI, CE6856HI or CE7855EI to Layer 3 mode, run the vlan reserved for main-interface startvlanid to endvlanid command to configure a dedicated reserved VLAN for the Layer 3 main interface.

Precautions

  • If IP address unnumbered is configured for an Ethernet interface, the portswitch batch command cannot be run for the interface.

Example

# Change the working mode of 10GE1/0/1, 1/0/2, and 1/0/3 to Layer 2 mode.

<HUAWEI> system-view
[~HUAWEI] portswitch batch 10ge 1/0/1 1/0/2 1/0/3
Related Topics

port transceiver-power-low trigger error-down

Function

The port transceiver-power-low trigger error-down command enables the Error-Down function triggered by low optical power on an Ethernet optical interface.

The undo port transceiver-power-low trigger error-down command disables the Error-Down function triggered by low optical power on an Ethernet optical interface.

By default, the Error-Down function triggered by low optical power is disabled on an Ethernet optical interface.

Format

port transceiver-power-low trigger error-down

undo port transceiver-power-low trigger error-down

Parameters

None

Views

10GE optical interface view, 25GE interface view, 40GE optical interface view, 100GE interface view, port group view, fc interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Excessively low optical power of the device may cause intermittent interruption of services. To ensure normal running of services, users expect that an interface can transit to the Error-Down state when the optical power of the switch is too low. In this way, services can be switched immediately when a fault occurs. The device records the status of an interface as Error-Down when it detects that a fault occurs. The interface in Error-Down state cannot receive or send packets and the interface indicator is off.

Follow-up Procedure

If an interface is in Error-Down state, you are advised to find out the cause first. For details, see the possible causes and troubleshooting procedures.

An interface in Error-Down state can be recovered using either of the following methods:
  • Manual recovery (after an Error-Down event occurs):

    If a few interfaces need to be recovered, run the shutdown and undo shutdown commands in the interface view. Alternatively, run the restart command in the interface view to restart the interfaces.

  • Automatic recovery (before an Error-Down event occurs):

    If a large number of interfaces need to be recovered, manual recovery is time consuming and some interfaces may be omitted. To avoid this problem, you can run the error-down auto-recovery cause transceiver-power-low interval command in the system view to enable automatic interface recovery and set the recovery delay time. You can run the display error-down recovery command to view information about automatic interface recovery.

    NOTE:

    This method does not take effect on interfaces that are already in Error-Down state. It takes effect only on interfaces that enter the Error-Down state after this configuration is complete.

Example

# Enable the Error-Down function triggered by low optical power on the 10GE1/0/1 interface.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port transceiver-power-low trigger error-down

reset control-flap

Function

The reset control-flap command clears statistics about control-flap on an interface.

Format

reset control-flap [ ipv6 ] { penalty | counter } interface interface-type interface-number

Parameters

Parameter Description Value
ipv6 Clears related information about IPv6 control-flap. -
penalty Clears the penalty of control-flap on an interface, that is, releases the interface from the suppressed state. -
counter Clears the times of interface flapping. -
interface-type interface-number Specifies the type and number of an interface. -

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before collecting traffic statistics on a specific interface within a certain period, you need to clear the existing traffic statistics from this interface.

Configuration Impact

If penalty is specified in the command, the penalty of control-flap on an interface is cleared; if counter is specified in the command, the times of interface flapping are cleared.

Precautions

After the reset control-flap command is run, you can view that statistics about control-flap on an interface are reset to 0 through the display control-flap command. Therefore, confirm the action before you run the reset control-flap command.

Example

# Clear the penalty of control-flap on 10GE1/0/1.

<HUAWEI> reset control-flap penalty interface 10ge 1/0/1
Related Topics

reset ip host packet statistics receive

Function

The reset ip host packet statistics receive command clears statistics about packets received on all interfaces.

Format

reset ip host packet statistics receive

Parameters

None

Views

User View

Default Level

2: Configuration Level

Usage Guidelines

To clear statistics about packets received on all interfaces, run the reset ip host packet statistics receive. The reset ip host packet statistics receive and display ip host packet statistics receive commands can be used together to help identify whether the interface correctly receives various protocol packets.

Example

# Clear statistics about packets received on all interfaces.

<HUAWEI> reset ip host packet statistics receive

reset ip host packet statistics receive protocol

Function

The reset ip host packet statistics receive protocol interface command clears statistics about different protocol packets received on an interface.

The reset ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } clears global statistics about protocol-specific received packets.

Format

reset ip host packet statistics receive protocol interface interface-type interface-number

reset ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 }

NOTE:

CE6880EI does not support mld and pimv6 parameters.

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies the type and number of an interface.

-

arp

Specifies the ARP protocol.

-

stp

Specifies the STP protocol.

-

lacp

Specifies the LACP protocol.

-

lldp

Specifies the LLDP protocol.

-

isis

Specifies the IS-IS protocol.

-

icmp

Specifies the ICMP protocol.

-

ospf

Specifies the OSPF protocol.

-

pim

Specifies the PIM protocol.

-

igmp

Specifies the IGMP protocol.

-

vrrp

Specifies the VRRP protocol.

-

snmp

Specifies the SNMP protocol.

-

dhcp

Specifies the DHCP protocol.

-

bgp

Specifies the BGP protocol.

-

ldp

Specifies the LDP protocol.

-

icmpv6

Specifies the ICMPv6 protocol.

-

ospfv3

Specifies the OSPFv3 protocol.

-

pimv6

Specifies the IPv6 PIM protocol.

-

mld

Specifies the MLD protocol.

-

vrrpv6

Specifies the VRRP6 protocol.

-

snmpv6

Specifies the IPv6 SNMP protocol.

-

dhcpv6

Specifies the DHCPv6 protocol.

-

bgp4plus

Specifies the BGP4+ protocol.

-

ldpv6

Specifies the IPv6 LDP protocol.

-

Views

User view

Default Level

2: Configuration Level

Usage Guidelines

To configure a device to collect statistics about protocol-specific received packets, run the ip host packet statistics protocol enable command.

To clear statistics about different protocol packets received on an interface, run the reset ip host packet statistics receive protocol interface command. To view statistics about different protocol packets received on an interface, run the display ip host packet statistics receive protocol interface command. The reset ip host packet statistics receive protocol interface and display ip host packet statistics receive protocol interface commands can be used together to help identify whether the interface correctly receives various protocol packets.

To configure a device to collect statistics about protocol-specific received packets, run the ip host packet statistics protocol all command.

To clear statistics about protocol-specific received packets, run the reset ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } command. To view statistics about protocol-specific received packets, run the display ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } command. The reset ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } and display ip host packet statistics receive protocol { arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 } commands can be used together to help identify whether the device correctly receives various protocol packets.

Example

# Clear statistics about different protocol packets received on an interface.

<HUAWEI> reset ip host packet statistics receive protocol interface 10ge 1/0/1

# Clear global statistics about received ARP packets.

<HUAWEI> reset ip host packet statistics receive protocol arp

reset ip host packet statistics send protocol

Function

The reset ip host packet statistics send protocol command clears statistics about different protocol packets sent on a device.

Format

reset ip host packet statistics send protocol [ arp | stp | lacp | lldp | isis | icmp | ospf | pim | igmp | vrrp | snmp | dhcp | bgp | ldp | icmpv6 | ospfv3 | pimv6 | mld | vrrpv6 | snmpv6 | dhcpv6 | bgp4plus | ldpv6 ] [ slot slot-id ]

NOTE:

CE6880EI does not support mld and pimv6 parameters.

Parameters

Parameter Description Value
arp

Indicates the ARP protocol.

-

stp

Indicates the STP protocol.

-

lacp

Indicates the LACP protocol.

-

lldp

Indicates the LLDP protocol.

-

isis

Indicates the IS-IS protocol.

-

icmp

Indicates the ICMP protocol.

-

ospf

Indicates the OSPF protocol.

-

pim

Indicates the PIM protocol.

-

igmp

Indicates the IGMP protocol.

-

vrrp

Indicates the VRRP protocol.

-

snmp

Indicates the SNMP protocol.

-

dhcp

Indicates the DHCP protocol.

-

bgp

Indicates the BGP protocol.

-

ldp

Indicates the LDP protocol.

-

ospfv3

Indicates the OSPFv3 protocol.

-

pimv6

Indicates the IPv6 PIM protocol.

-

mld

Indicates the MLD protocol.

-

vrrpv6

Indicates the VRRP6 protocol.

-

snmpv6

Indicates the IPv6 SNMP protocol.

-

dhcpv6

Indicates the DHCPv6 protocol.

-

bgp4plus

Indicates the BGP4+ protocol.

-

ldpv6

Indicates the IPv6 LDP protocol.

-

slot slot-id Specifies a slot ID. If slot-id is not configured, statistics about protocol packets sent by all boards are cleared.

-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

To globally enable the statistics collecting function for different protocol packets, run the ip host packet statistics protocol all command.

To clear statistics about different protocol packets sent on a device, run the reset ip host packet statistics send protocol command. To check statistics about different protocol packets sent on a device, run the display ip host packet statistics send protocol command. You can run the reset ip host packet statistics send protocol and display ip host packet statistics send protocol commands to check whether protocol packets are transmitted properly.

Example

# Clear statistics about ARP protocol packets sent on a device.

<HUAWEI> reset ip host packet statistics send protocol arp

reset interface virtual-cable-test

Function

The reset interface virtual-cable-test command deletes cable test results on an interface.

Format

reset interface [ interface-type interface-number ] virtual-cable-test

Parameters

Parameter

Description

Value

interface-type interface-number

Deletes cable test results on a specified interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

Views

User view, System view, GE interface view, 10GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before conducting a cable test on an electrical interface, you can use this command to delete the previous test results.

Precautions

The cable test results cannot be restored after they are cleared. Exercise caution before clearing the statistics.

Example

# Delete cable test results on 10GE1/0/1.
<HUAWEI> reset interface 10ge 1/0/1 virtual-cable-test

set if-mib discard-statistics enable

Function

The set if-mib discard-statistics enable command enables the function of using a MIB to collect statistics about packets discarded by an interface.

The undo set if-mib discard-statistics enable command disables the function of using a MIB to collect statistics about packets discarded by an interface.

By default, the function of using a MIB to collect statistics about packets discarded by an interface is disabled.
NOTE:

Only CE6870EI supports this command.

Format

set if-mib discard-statistics enable

undo set if-mib discard-statistics enable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

The switches support the function of using a MIB to collect statistics about packets discarded by an interface. You can use this function to obtain statistics about packets discarded by the device, know network status, and take proper measures in a timely manner. This function consumes many CPU resources and deteriorates performance of other services on the device. To avoid impact on other services, you can run the set if-mib discard-statistics enable or undo set if-mib discard-statistics enable command to enable or disable the function of using a MIB to collect statistics about packets discarded by an interface.

Example

# Enable the function of using a MIB to collect statistics about packets discarded by an interface.

<HUAWEI> system-view
[~HUAWEI] set if-mib discard-statistics enable

set flow-statistics include-interframe

Function

The set flow-statistics include-interframe command configures traffic statistics on an interface to contain the inter-frame gap and preamble.

The undo set flow-statistics include-interframe command configures traffic statistics on an interface not to contain the inter-frame gap and preamble.

By default, traffic statistics on an interface contain the inter-frame gap and preamble.

Format

set flow-statistics include-interframe

undo set flow-statistics include-interframe

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

You can run the display interface command to check the running status and statistics of an interface. The Last 300 seconds input rate or Last 300 seconds output rate field in the command output indicates the traffic rate in the inbound or outbound direction of the interface within the latest 300 seconds.

  • If you want to obtain the total number of bytes passing through the interface within a certain period, configure traffic statistics to include IFG and preamble statistics. The total number includes the number of bytes in packets and the payload of the preamble and inter-frame gap (IFG). In this case, Interface traffic statistics rate = (Original packet length + IFG + Preamble) x Number of packets passing through the interface every second.
  • If you want to obtain the number of packet bytes passing through the interface within a certain period, configure traffic statistics to exclude IFG and preamble statistics. The number here excludes the payload of the preamble and IFG. In this case, Interface traffic statistics rate = Original packet length x Number of packets passing through the interface every second.

    The IFG has a fixed value of 12 bytes and the preamble has a fixed value of 8 bytes. To adjust the inter-frame gap, run the ifg command.

NOTE:

By default, traffic statistics on an interface do not contain the inter-frame gap and preamble in versions earlier than V100R003C10, and contain the inter-frame gap and preamble in V100R003C10 and later versions. If the software version is upgraded from a version earlier than V100R003C10 to V100R003C10 or a later version, traffic statistics on an interface contain the inter-frame gap and preamble by default.

Example

# Configure traffic statistics on 10GE1/0/1 to contain the inter-frame gap and preamble.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] set flow-statistics include-interframe
Related Topics

set up-delay

Function

The set up-delay command sets the delay after which an interface goes Up.

The undo set up-delay command restores the default setting.

By default, the delay after which an interface goes Up is 0 seconds.

Format

set up-delay value

undo set up-delay [ value ]

Parameters

Parameter Description Value
value Specifies the delay after which an interface goes Up. The value is an integer that ranges from 0 to 3600, in seconds.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The physical status of an Ethernet interface can be Up or Down. When the interface physical status changes, the system notifies upper-layer protocol modules (such as the routing and forwarding modules) of the change to direct packet receiving and forwarding. The system also automatically generates traps and logs to remind users to perform corresponding operations on physical links.

After the device restarts, the physical status of interfaces is Up. However, the upper-layer protocol modules do not meet forwarding requirements. If an interface receives service packets and sends the packets to the upper-layer protocol modules. The services cannot run properly because the upper-layer protocol modules cannot process the service packets. You can run the set up-delay command to set the delay after which the interface goes Up. The interface then becomes physically Up after the upper-layer protocol modules meet forwarding requirements, ensuring that packets can be processed.

Precautions

If this command is configured, the function of making an interface go Up after a delay takes effect only after the device restarts.

If the delay in reporting the interface Up status does not expire on an interface, and the set up-delay command is run to change the delay or the interface restarts, the original delay becomes invalid. Therefore, change the delay when the interface works properly.

Example

# Set the delay after which 10GE1/0/1 goes Up to 10 seconds.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] set up-delay 10

single-fiber enable

Function

The single-fiber enable command enables the single-fiber communication function on an optical interface.

The undo single-fiber enable command disables the single-fiber communication function on an optical interface.

By default, the single-fiber communication function is disabled on an interface.

Format

single-fiber enable

undo single-fiber enable

Parameters

None

Views

10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During network management and maintenance, the administrator may need to send traffic from users to a specified server for analysis, recording, and processing. If a server can receive and send packets, there is a possibility that the server forwards user traffic to other devices, causing a security risk. The unidirectional single-fiber communication function can address this issue. A single fiber means that two optical modules are connected by only one fiber, and unidirectional communication means that packets can be sent in only one direction. With this function, a switch can only send but cannot receive packets, and an analysis server can only receive but cannot send packets. The data security on the analysis server is ensured.

After the single-fiber enable command is run on a local interface, the local interface can only send or receive packets through the single fiber. The connection between the optical module's TX and RX ends determines whether the local interface sends or receives packets. For example, if the TX end of the local optical module is connected to the RX end of the remote optical module, the local device only sends packets and the remote device only receives packets. If the RX end of the local optical module is connected to the TX end of the remote optical module, the local device only receives packets and the remote device only sends packets.

Precautions
  • Only optical interfaces that have optical modules pre-configured or have non-single-fiber bidirectional optical modules installed support the single-fiber enable command. After the command is configured, the interfaces are in Up state. For details about optical module types, see Hardware Description Optical Module. To view optical module information on an interface, run the display interface transceiver command.
  • For a 40GE optical interface that is not split and inserted with the QSFP-40G-iSR4 optical module and a 40GE optical interface that is split into 10GE interfaces and inserted with the QSFP-40G-LR4 optical module, the interfaces are in Down (Transceiver type mismatch) status after this command is run. In this case, replace the optical modules with other types of optical modules.
  • If this command is configured on an interface, the interface status changes to Down when no optical module is installed on the interface or a single-fiber bidirectional optical module or high-speed cable is installed. In this case, the single-fiber communication function cannot be used.
  • The remote device must have single-fiber communication enabled. The local and remote interfaces must work in non-auto negotiation mode and have the same rate configured.
NOTE:

The single-fiber enable command and the Internal Loopback Detection function cannot be configured on the same interface.

Example

# Enable 10GE1/0/1 to send packets through a single fiber.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] single-fiber enable

single-fiber rx

Function

The single-fiber rx command enables the single-fiber receiving function on an optical interface.

The undo single-fiber rx command disables the single-fiber receiving function on an optical interface.

By default, the single-fiber receiving function is disabled on an optical interface.

Format

single-fiber rx

undo single-fiber rx

Parameters

None

Views

10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The single-fiber receiving function allows you to connect the RX end of a local optical module to a remote optical module using a single optical fiber so that the local interface can only receive packets but cannot send packets. You can configure this function when an optical module (not a single-fiber bidirectional optical module) installed or pre-configuring the transmission medium type on an optical interface. The local interface goes Up only when both the local and remote optical modules are installed and can properly receive optical signals. With this function, the device can only receive packets but cannot send packets. This function ensures data security on the device and allows you to obtain the real physical status of the interface.

Precautions
  • For a 40GE optical interface that is not split and inserted with the QSFP-40G-iSR4 optical module and a 40GE optical interface that is split into 10GE interfaces and inserted with the QSFP-40G-LR4 optical module, the interfaces are in Down (Transceiver type mismatch) status after this command is run. In this case, replace the optical modules with other types of optical modules.
  • If a single-fiber bidirectional optical module or high-speed cable is installed on an interface that has this command configured, the interface is in Down state and the single-fiber receiving function cannot be used.
  • After the single-fiber rx command is run on a local interface, the interface can only receive packets through a single optical fiber. The local optical module must be connected to the TX end of the remote optical module and the remote optical module cannot have the same configuration.
  • The local and remote interfaces must work in non-auto-negotiation mode and have the same rate.
  • The single-fiber rx and loopback commands cannot be used together.

  • If both the single-fiber rx and single-fiber enable commands are configured, the command configured later takes effect.

Example

# Enable the single-fiber receiving function on an optical interface.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] single-fiber rx

snmp-agent trap enable feature-name error-down

Function

The snmp-agent trap enable feature-name error-down command enables the trap function for the error-down module.

The undo snmp-agent trap enable feature-name error-down command disables the trap function for the error-down module.

By default, the trap function is disabled for the error-down module.

Format

snmp-agent trap enable feature-name error-down [ trap-name trap-name ]

undo snmp-agent trap enable feature-name error-down [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name
Indicates the trap function for a specified type of trap messages of the error-down module:
  • hwerrordown: indicates an error-down trap.

  • hwerrordownrecovery: indicates an error-down clear trap.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the error-down module.

Example

# Enable the trap function for the error-down event.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name error-down trap-name hwerrordown

snmp-agent trap enable feature-name ifnet

Function

The snmp-agent trap enable feature-name ifnet command enables the trap function for the IFNET module.

The undo snmp-agent trap enable feature-name ifnet command disables the trap function for the IFNET module.

By default, the trap function is disabled for the IFNET module.

Format

snmp-agent trap enable feature-name ifnet [ trap-name { linkdown | linkup } ]

undo snmp-agent trap enable feature-name ifnet [ trap-name { linkdown | linkup } ]

Parameters

Parameter Description Value
trap-name Enables the traps of IFNET events of specified types. -
linkdown Enables the trap function for the event that the link layer protocol status becomes Down. -
linkup Enables the trap function for the event that the link layer protocol status becomes Up. -

Views

System view

Default Level

3: Management level

Usage Guidelines

You can specify trap-name to enable the trap function for one or more events of the IFNET module.

Example

# Enable all traps of the IFNET module.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name ifnet

speed

Function

The speed command sets the rate for an Ethernet interface in non-auto negotiation mode.

The undo speed command restores the default rate of an Ethernet interface in non-auto negotiation mode.

By default, an Ethernet interface works at its highest rate when it works in non-auto negotiation mode.

Format

GE electrical interface, 10GE optical interface (with SFP-GE copper module installed):

speed { 10 | 100 | 1000 }

undo speed [ 10 | 100 | 1000 ]

10GE electrical interface:

speed { 100 | 1000 | 10000 }

undo speed [ 100 | 1000 | 10000 ]

10GE optical interface that is split from a 40GE interface on the CE7800 series device:

speed 1000

undo speed 1000

100GE QSFP28 optical interface:

speed 40000

undo speed 40000
NOTE:
  • QSFP28 optical interfaces on the CE6880EI do not support the speed 40000 command. For other switches, only when the QSFP28 high-speed cable is installed, the speed 40000 command is supported.

  • You can run the port mode { 10g | ge } command on an independent 25GE interface or a 25GE interface split from a QSFP28 interface to configure the interface rate. 25GE interfaces numbered starting from 1 are divided into groups, each of which contains four interfaces. Interfaces in the same group can only work at the same rate. For example, the 24 SFP28 ports on a CE88-D24S2CQ card are divided into six port groups, which contain ports 1-4, ports 5-8, ports 9-12, ports 13-16, ports 17-20, and ports 21-24. The four ports in a group must work at the same speed. For example, if port 1 uses 10GE optical module, ports 2, 3, 4 cannot use 25GE cables. Otherwise, all the four ports will be Down.

Parameters

Parameter

Description

Value

10

Indicates that the interface works at 10 Mbit/s.

-

100

Indicates that the interface works at 100 Mbit/s.

-

1000

Indicates that the interface works at 1000 Mbit/s.

-

10000

Indicates that the interface works at 10000 Mbit/s.

-

40000

Indicates that the interface works at 40000 Mbit/s.

-

Views

GE interface view, 10GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In non-auto negotiation mode, if interfaces on two connected devices work at different rates, use the speed command to change the rates of the interfaces to be the same so that the two devices can communicate.

Precautions
  • For the interface rate supported by Ethernet interfaces, see Interface Query Tool.

  • If you run the speed command on an interface that is physically Up, the physical status of the interface becomes Down and then Up. Therefore, exercise caution when deciding to run this command.

  • If the remote interface does not support the auto negotiation mode, run the negotiation disable command on the local interface to configure the interface to work in non-auto negotiation mode. You can then change the rate of the local interface to be the same as the rate of the remote interface to ensure proper communication.
  • Only a 10GE interface split from a 40GE interface on the CE7850EI and CE7855EI supports the speed 1000 configuration when the remote interface has a GE optical module installed.
  • After a QSFP28 interface is configured to work at the rate of 40000 Mbit/s using the speed 40000 command, the interface cannot be configured as a stack interface.

  • In V100R006C00, 10GE electrical interfaces on the CE8860EI do not support the speed and speed auto commands and cannot work at the rate of 100 Mbit/s. They can negotiate with remote interfaces to work at the rate of 10 bit/s or 1 Gbit/s. In V200R001C00 and later versions, 10GE electrical interfaces on the CE8860EI support the speed { 10000 | 1000 } and speed auto { 10000 | 1000 } commands and cannot work at the rate of 100 Mbit/s.

  • If the module is replaced after the interface rate takes effect, and the new module does not support the speed configuration, the interface status and configuration vary depending on the system software version as follows:
    • In versions earlier than V100R005C00, the interface goes Down. You can run the undo speed command in the interface view to delete the original rate configuration in auto-negotiation mode to make the interface go Up again.
    • In V100R005C00 and later versions, if the device conflict-policy keep-config command is configured, the configuration depends on the pre-configured medium type and the speed configuration on the interface is saved. Otherwise, the configuration is lost.
NOTE:

If the replacement transceiver module does not support configuration of the interface speed and non-auto negotiation mode (for example, an SFP+ optical module on a 10GE optical interface), run the undo negotiation disable command in the interface view to delete the configuration of the interface speed and non-auto negotiation mode at the same time.

Example

# Configure GE1/0/1 to work at 100 Mbit/s in non-auto negotiation mode.
<HUAWEI> system-view
[~HUAWEI] interface ge 1/0/1
[~HUAWEI-GE1/0/1] negotiation disable
[*HUAWEI-GE1/0/1] speed 100
Related Topics

speed auto

Function

The speed auto command configures the auto-negotiation rate of an Ethernet electrical interface.

The undo speed auto command restores the default auto-negotiation rate of an Ethernet electrical interface.

By default, Ethernet electrical interfaces on both ends can negotiate to any rate they support.

Format

GE electrical interface, 10GE optical interface (with SFP-GE copper module installed): speed auto { 10 | 100 | 1000 } *

GE electrical interface, 10GE optical interface (with SFP-GE copper module installed): undo speed auto [ 10 | 100 | 1000 ] *

10GE electrical interface: speed auto { 100 | 1000 | 10000 } *

10GE electrical interface: undo speed auto [ 100 | 1000 | 10000 ] *

Parameters

Parameter

Description

Value

10

Sets the auto-negotiation rate of an Ethernet electrical interface to 10 Mbit/s.

-

100

Sets the auto-negotiation rate of an Ethernet electrical interface to 100 Mbit/s.

-

1000

Sets the auto-negotiation rate of an Ethernet electrical interface to 1000 Mbit/s.

-

10000

Sets the auto-negotiation rate of an Ethernet electrical interface to 10000 Mbit/s.

-

Views

GE interface view, 10GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In auto-negotiation mode, interfaces on both ends of a link negotiate their rate. If the negotiated rate is not the required one, run the speed auto command to set the auto-negotiation rate range to limit the negotiated rate.

For example, the network adapter speeds on Server1, Server2, and Server3 that form a server cluster are all 1000 Mbit/s, and the speed of the outbound interface GE1/0/4 connecting the device to external networks is also 1000 Mbit/s. The servers connect to GE1/0/1, GE1/0/2, and GE1/0/3 respectively. If the auto-negotiation speed is not specified on the device, the speeds negotiated by GE1/0/1, GE1/0/2, and GE1/0/3 with their connected servers are all 1000 Mbit/s. When the servers send data at the speed of 1000 Mbit/s concurrently, the outbound interface GE1/0/4 may be blocked. In this case, you can run the speed auto 100 100 command to configure the auto-negotiation speed to 100 Mbit/s for GE1/0/1, GE1/0/2, and GE1/0/3, preventing the outbound interface from being blocked.

Prerequisites

Run the undo negotiation disable command to configure the Ethernet interface to work in auto-negotiation mode.

Precautions

  • If you run the speed auto command on an interface that is physically Up, the physical status of the interface becomes Down and then Up. Therefore, exercise caution when deciding to run this command.

  • When a 10GE optical interface has an SFP-GE copper module installed, the interface works in auto-negotiation mode by default and the interface speed is configurable. If the SFP-GE copper module is replaced by an optical module after the configured interface speed takes effect, the interface turns to Down state because speed auto is not supported on the interface with an optical module installed. In this case, run the undo speed auto command in the interface view to delete interface speed configured in auto-negotiation mode. Then the interface can become Up again.

  • 10GE and GE interfaces on the CE5810EI do not support the speed and speed auto commands after having SFP-GE copper modules installed. After an SFP-GE copper module is installed on a 10GE optical interface of other CE series switches, the interface works in auto-negotiation mode by default. After configuring the interface to work in non-auto-negotiation mode using the negotiation disable command, you can run the speed command to configure the interface rate.

  • In V100R006C00, 10GE electrical interfaces on the CE8860EI do not support the speed and speed auto commands and cannot work at the rate of 100 Mbit/s. They can negotiate with remote interfaces to work at the rate of 10 bit/s or 1 Gbit/s. In V200R001C00 and later versions, 10GE electrical interfaces on the CE8860EI support the speed { 10000 | 1000 } and speed auto { 10000 | 1000 } commands and cannot work at the rate of 100 Mbit/s.

Example

# Configure Ethernet electrical interface GE1/0/1 to work at a rate of 100 Mbit/s in auto-negotiation mode.
<HUAWEI> system-view
[~HUAWEI] interface ge 1/0/1
[~HUAWEI-GE1/0/1] undo negotiation disable
[*HUAWEI-GE1/0/1] speed auto 100
Related Topics

training disable

Function

The training disable command disables the training function on an interface.

The undo training disable command enables the training function on an interface.

By default, the training function is enabled on an interface.

NOTE:

40GE interfaces on the following switches support the training disable configuration: CE8860EI, CE7850EI, CE6810LI, CE6850EI, CE6850HI, CE6851HI, CE6850U-HI, and CE5800 series switches.

Format

training disable

undo training disable

Parameters

None

Views

40GE interface view, 100GE interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

With the increase of transmission rate or frequency, attenuation of signal's high-frequency components becomes increasingly severe. To guarantee transmission performance of signals, it is necessary to compensate for signals, and commonly used compensation technologies are pre-emphasis and balancing. The pre-emphasis technology increases high-frequency components of signals at the transmitter end of transmission lines to compensate attenuation during the transmission. However, the pre-emphasis technology increases crosstalk while amplifying high-frequency components. To solve this problem, the balancing technology is developed. The balancing technology is used at the receiver end of transmission lines to function like a filter for filtering high-frequency crosstalk.

After the training function is enabled on an interface, the transmitter end exchanges frames with the receiver end to automatically set the pre-emphasis and balancing parameters, improving process efficiency of the two technologies. Note that the negotiated parameters for the training function are obtained based on the site environment. If the site environment changes, for example, from high-temperature environment to low-temperature environment, the parameters may be inaccurate. Therefore, error codes may occur when the training function is enabled. The training function is optional in IEEE802.3 standards, and its implementation on different types of products from various vendors may differ. When connecting two devices, ensure that the training function must be enabled or disabled on both ends simultaneously.

NOTE:
  • The training function must be enabled on interfaces at both ends of a link; otherwise, the interfaces cannot work properly.
  • The training function takes effect on an interface only when the interface works in auto-negotiation mode. If you run the negotiation disable command to configure the interface to work in non-auto-negotiation mode after the training function takes effect, the training function will become ineffective.

  • If a 40GE interface is configured as a physical member interface in a stack system, the training function cannot be disabled. In V100R003C10 and earlier versions, if the training function is disabled on a 40GE interface, the 40GE interface cannot be configured as a physical member interface in a stack system. In V100R005 and later versions, if a 40GE interface is configured as a physical member interface in a stack system, the training disable configuration will be automatically deleted from the interface.
  • When a training-disabled 40GE interface of a CE8860EI is connected to a 40GE interface of a CE6851-48S6Q-HI, CE6850-48T6Q-HI, CE6856HI or CE6855HI, the interfaces do not go Up. The interfaces go Up only after the training function is enabled on the 40GE interface of the CE8860EI.

  • When a 40GE interface on the CE88-D16Q subcard connects to a QSFP+ high-speed cable, you can run the training disable command to disable the training function on a group of interfaces. Each interface group contains two interfaces, such as interfaces 1 and 2, interfaces 3 and 4, and interfaces 15 and 16. The training function cannot be configured on one interface. This limitation does not apply to a 100GE interface that connects to a QSFP+ high-speed cable on the CE8860EI. When a 40GE interface connects to a QSFP+ high-speed cable, pay attention to the following points:
    • The training function can be enabled on a group of 40GE interfaces only when both interfaces connect to QSFP+ high-speed cables and are not configured with interface split.

    • To disable auto-negotiation on one of the 40GE interfaces, run the undo training disable command to enable the training function on both interfaces, and run the negotiation disable command to disable auto-negotiation. After auto-negotiation is disabled, the training disable command cannot be configured.

    • If the training disable command is configured on the two 40GE interfaces, and the QSFP+ high-speed cable on one interface is replaced with a 40GE optical module, the interface state changes to DOWN(Transceiver type mismatch). The interface goes Up after the undo training disable command is run.

    • If the training disable command is configured on the 40GE interfaces, the pre-configured medium type cannot be changed.

    • The training disable command is mutually exclusive with the loopback internal, service type tunnel, and service type trill unicast commands.

Example

# Disable the training function on 40GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 40ge 1/0/1
[~HUAWEI-40GE1/0/1] training disable

trap-threshold

Function

The trap-threshold command sets the inbound and outbound bandwidth usage thresholds for generating a trap.

The undo trap-threshold command restores the default inbound and outbound bandwidth usage thresholds for generating a trap.

The default inbound or outbound bandwidth usage threshold for generating a trap is 90.

Format

trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]

undo trap-threshold { input-rate | output-rate }

Parameters

Parameter Description Value
input-rate Indicates inbound bandwidth. -
output-rate Indicates outbound bandwidth. -
bandwidth-in-use Specifies the bandwidth usage threshold for generating a trap. The value is an integer that ranges from 1 to 100.
resume-rate resume-threshold Specifies the bandwidth usage threshold for clearing a trap. The value is an integer that ranges from 1 to bandwidth-in-use. The default value is bandwidth-in-use.

Views

GE interface view, 10 GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, fc interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The bandwidth usage represents the load on a device. If the bandwidth usage exceeds the threshold, bandwidth on the device is not sufficient for services and needs expansion. For example, if the bandwidth usage exceeds 95%, an alarm is generated to indicate that bandwidth resources are used up. Services may be interrupted before system expansion. You can expand device capacity to prevent service interruption.

NOTE:

Outbound bandwidth usage = (Outbound interface rate/Outbound physical interface bandwidth) x 100

Inbound bandwidth usage = (Inbound interface rate/Inbound physical interface bandwidth) x 100

The interface rate and bandwidth are expressed in bits per second.

Example

# Configure 10GE1/0/1 to generate a trap when the outbound bandwidth usage exceeds 60%.
<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] trap-threshold output-rate 60

# Configure 10GE1/0/1 to generate a trap when the outbound bandwidth usage exceeds 80% and clear the trap when the outbound bandwidth usage falls below 60%.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] trap-threshold output-rate 80 resume-rate 60

trap-threshold crc-statistics

Function

The trap-threshold crc-statistics command sets the alarm threshold for CRC error packets and alarm interval.

The undo trap-threshold crc-statistics command restores the default alarm threshold for CRC error packets and default alarm interval.

By default, the alarm threshold for CRC error packets is 3 and the alarm interval is 10 seconds.

Format

trap-threshold crc-statistics threshold-value interval interval-value

undo trap-threshold crc-statistics [ threshold-value interval interval-value ]

Parameters

Parameter

Description

Value

threshold-value

Sets the alarm threshold for CRC error packets.

The value is an integer that ranges from 1 to 65535.

interval interval-value

Sets the interval for reporting alarms for CRC error packets.

The value is an integer that ranges from 10 to 65535, in seconds.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, fc interface view

Default Level

2: Configuration level

Usage Guidelines

The system generates an alarm when the number of CRC error packets received by an interface within an alarm interval exceeds the alarm threshold. If the number of received CRC error packets is 0 in the next alarm interval, the system displays an alarm clearance message.

Example

# Set the alarm threshold for CRC error packets on 10GE1/0/1 to 10 and the alarm interval to 30 seconds.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] trap-threshold crc-statistics 10 interval 30

virtual-cable-test

Function

The virtual-cable-test command tests the cable connected to an Ethernet electrical interface and displays the test result.

Format

virtual-cable-test

Parameters

None

Views

GE interface view, 10GE electrical interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the cable is faulty, the interface is in Down state or the interface rate is abnormal even if it is in Up state. You can run the virtual-cable-test command to check whether the cable works properly. According to the command output, you can locate and rectify cable faults.
  • Electrical interfaces support this command. If the cable works properly, the total length of the cable is displayed.

  • A 10GE optical interface functions like a GE electrical interface and supports this command after being inserted with an SFP-GE electrical module. If the cable works properly, the length range is displayed.
  • When 10GE optical interfaces use SFP-GE copper modules and the interfaces on the two ends of the link are both Up, the test result may be not accurate and is only for reference.
  • If the cable cannot work properly, the distance between the interface and the faulty point is displayed.

Precautions

  • The distance error generated during VCT detection is about 10 m. The test result is only for reference and may be inaccurate for cables of some vendors.
  • The test result is related to the cable signal attenuation. When the cable length is shorter than 3 m, the cable signal attenuation mostly results from the connector, not the cable. The test result is therefore invalid.
  • Running the virtual-cable-test command may affect services on the interface in a short period of time.
  • Before performing a cable test, remove the network cable from the remote interface. Otherwise, signals from the remote interface may make the test result inaccurate.
  • The VCT test result is only for reference, and the four wire pairs may have different test results.

Example

# Test the cable connected to GE1/0/1.
<HUAWEI> system-view
[~HUAWEI] interface ge 1/0/1
[~HUAWEI-GE1/0/1] virtual-cable-test
Warning: This operation will stop service on the interface for a while. Continue? [Y/N]:y
 State Note                                                                     
 OK            : Check succeeded.                                               
 Open/Short    : There may be an open circuit. Please connect cables correctly. 
 Crosstalk     : Check is affected by crosstalk. Please remove the interference 
                 source.                                                        
 notSupport/not: Check is not supported. Please check whether the interface     
                 supports the check.                                            
 Unknown       : Check did not complete successfully, possibly due to user      
                 configuration. Please check configuration on local and remote  
                 interfaces.                                                    
--------------------------------------------------------------------------------
Pair A length(meters): 189
Pair B length(meters): 189
Pair C length(meters): 189
Pair D length(meters): 189
Pair A state: OK
Pair B state: OK
Pair C state: OK
Pair D state: OK

# Test the cable connected to GE1/0/2 on which the SFP-GE electrical module is used.

<HUAWEI> system-view
[~HUAWEI] interface ge 1/0/2
[~HUAWEI-GE1/0/2] virtual-cable-test
Warning: This operation will stop service on the interface for a while. Continue? [Y/N]:y
 State Note                                                                     
 OK            : Check succeeded.                                               
 Open/Short    : There may be an open circuit. Please connect cables correctly. 
 Crosstalk     : Check is affected by crosstalk. Please remove the interference 
                 source.                                                        
 notSupport/not: Check is not supported. Please check whether the interface     
                 supports the check.                                            
 Unknown       : Check did not complete successfully, possibly due to user      
                 configuration. Please check configuration on local and remote  
                 interfaces.                                                    
--------------------------------------------------------------------------------
Pair A length(meters): 0-50
Pair B length(meters): 0-50
Pair C length(meters): 0-50
Pair D length(meters): 0-50
Pair A state: OK
Pair B state: OK
Pair C state: OK
Pair D state: OK
Table 6-31  Description of the virtual-cable-test command output

Item

Description

State Note

Meaning of each state.
  • OK: The test succeeds.
  • Open/Short: An open circuit may exist. Connect the cable correctly.
  • Crosstalk: The test is affected by interference. Remove the interference source.
  • notSupport/not: The test is not supported. Check whether the interface supports the test.
  • Unknow: The test fails, possibly due to incorrect configurations. Check the configurations on the local and remote interfaces.

Pair A/B/C/D

Four pairs of circuits in a network cable.

Pair A length

Length of a network cable:
  • The length is the distance between the interface and the fault point if a fault occurs.
  • The value is the actual cable length when the cable is connected to an electrical interface and works properly.
  • The value is the cable length range when the cable is connected to an optical interface with the SFP-GE electrical module and works properly. The ranges include:

    • 0-50
    • 50-80
    • 80-110
    • 110-140
    • 140-99999: indicates that the cable is longer than 140 m

Pair A state

Network cable status:
  • OK: indicates that the circuit pair is terminated normally.
  • Open: indicates that the circuit pair is not terminated.
  • Short: indicates that the circuit pair is short-circuited.
  • Crosstalk: indicates that the circuit pairs interfere with each other.
  • Unknown: indicates that the circuit pair has an unknown fault.
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52042

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next