04-Interface Command Reference

HomeSupportSwitchesS12500R SeriesReference GuidesCommand ReferencesH3C S12500R Switch Router Series Command References(R52xx)-6W10204-Interface Command Reference
06-FlexE interface commands
Title Size Download
06-FlexE interface commands 384.59 KB

FlexE interface commands

 

bandwidth

Use bandwidth to set the expected bandwidth of an interface.

Use undo bandwidth to restore the default.

Syntax

bandwidth bandwidth-value

undo bandwidth

Default

The expected bandwidth (in kbps) is the interface baud rate divided by 1000.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

bandwidth-value: Specifies the expected bandwidth in the range of 1 to 400000000 kbps.

Usage guidelines

The expected bandwidth is an informational parameter used only by higher-layer protocols for calculation. You cannot adjust the actual bandwidth of an interface by using this command.

Examples

# Set the expected bandwidth of FlexE 1/0/1:1 to 1000 kbps.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] bandwidth 1000

bind interface

Use bind interface to add a FlexE physical interface to a FlexE group interface.

Use undo bind interface to remove a FlexE physical interface from a FlexE group interface.

Syntax

bind interface interface-type interface-number phy-number number

undo bind interface interface-type interface-number

Default

No FlexE physical interfaces exist in a FlexE group interface.

Views

FlexE group interface view

Predefined user roles

network-admin

Parameters

interface-type interface-number: Specifies a FlexE physical interface by its type and number.

phy-number number: Specifies the PHY number of the FlexE physical interface, in the range of 1 to 254.

Usage guidelines

When you add a FlexE physical interface to a FlexE group interface, follow these restrictions and guidelines:

·     You can add a FlexE physical interface only to a FlexE group interface.

·     For correct communication between FlexE physical interfaces at both of the ends of a link, you must add the FlexE physical interfaces to the same FlexE group interface. Make sure the FlexE physical interfaces have the same PHY number.

·     You can repeat this command to add multiple FlexE physical interfaces to a FlexE group interface. Make sure the PHY number for each FlexE physical interfaces is unique in a FlexE group interface.

·     You can bind only four FlexE physical interfaces on the same chip (for example, FlexE physical interfaces 1 through 4 or 5 through 8) to a FlexE group interface. The device will prompt a notification if you bind interfaces on different chips.

If the bandwidth or timeslots of a FlexE physical interface have been bound to a FlexE logical interface, you cannot the following tasks:

·     Remove the FlexE physical interface from the FlexE group interface.

·     Change the PHY number of the FlexE physical interface.

Examples

# Add FlexE-100G 1/0/1 to FlexE-group 1/0/1 and set the PHY number of the FlexE physical interface to 2.

<Sysname> system-view

[Sysname] interface flexe-group 1/0/1

[Sysname-FlexE-Group1/0/1] bind interface flexe-hundredgig 1/0/1 phy-number 2

Related commands

client

interface flexe-group

broadcast-suppression

Use broadcast-suppression to enable broadcast suppression and set the broadcast suppression threshold.

Use undo broadcast-suppression to disable broadcast suppression.

Syntax

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

undo broadcast-suppression

Default

A FlexE logical interface does not suppress broadcast traffic.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

ratio: Specifies the broadcast suppression threshold as a percentage of the interface bandwidth. The value range for this argument is 0 to 100. A smaller value means that less broadcast traffic is allowed to pass through.

pps max-pps: Specifies the maximum number of broadcast packets that the interface can forward per second. The value range for the max-pps argument (in pps) is 0 to 1.4881 × the interface bandwidth.

kbps max-kbps: Specifies the maximum number of kilobits of broadcast traffic that the FlexE logical interface can forward per second. The value range for this argument (in kbps) is 0 to the interface bandwidth.

Usage guidelines

The broadcast storm suppression features limits the size of broadcast traffic to a threshold on an interface. When the broadcast traffic on the interface exceeds this threshold, the system drops packets until the traffic drops below this threshold.

Both the storm-constrain command and the broadcast-suppression command can suppress broadcast storms on a port. The broadcast-suppression command uses the chip to physically suppress broadcast traffic. It has less influence on the device performance than the storm-constrain command, which uses software to suppress broadcast traffic.

For the traffic suppression result to be determined, do not configure both the storm-constrain broadcast command and the broadcast-suppression command on an interface.

The configured suppression threshold value in pps or kbps might be converted into a multiple of a step supported by the chip. As a result, the effective suppression threshold might be different from the configured one. To determine the suppression threshold that takes effect, see the prompts on the device.

Examples

# Set the broadcast suppression threshold to 10000 kbps on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] broadcast-suppression kbps 10000

The actual value is 10048 on port FlexE1/0/1:1 currently.

The output shows that the value that takes effect is 10048 kbps (157 times of 64), because the chip supports only step 64.

Related commands

multicast-suppression

unicast-suppression

client

Use client to set the client ID for a FlexE logical interface to be created and create the FlexE logical interface in a FlexE group interface.

Use undo client to restore the default.

Syntax

client client-id { bandwidth { bandwidth-value } | bind interface interface-type interface-number timeslot timeslot-list }

undo client client-id [ bandwidth | bind interface interface-type interface-number ]

Default

No FlexE logical interfaces exist in a FlexE group interface.

Views

FlexE group interface view

Predefined user roles

network-admin

Parameters

client-id: Specifies the client ID of the FlexE group interface to be created, in the range of 1 to 65534. The interface number of the FlexE logical interface is in the form of FlexE-group-interface-number:client-ID.

bandwidth { bandwidth-value }: Specifies the bandwidth of the FlexE logical interface directly.

·     bandwidth-value: Specifies the bandwidth, in GB. The value range is 5 to 4194303, and the step is 5.

bind interface interface-type interface-number timeslot timeslot-list: Specifies the bandwidth of the FlexE logical interface based on timeslots. You can bind timeslots of a FlexE physical interface to the FlexE logical interface. The bandwidth of the FlexE logical interface is timeslot-count × 5 GB.

·     interface-type interface-number: Specifies the FlexE physical interface by it type and number.

·     timeslot-list: Specifies a comma-separated list of timeslot items. Each item specifies a timeslot by its ID or a range of timeslots in the form of start_timeslot-end_timeslot. For example, 1,3-5. The maximum length of the timeslot list is 31 characters.

Usage guidelines

Use this command to set the client ID for a FlexE logical interface to be created and create the FlexE logical interface in a FlexE group interface. The interface number of the FlexE logical interface is in the format of FlexE-group-interface-number:client ID. For example, after you execute the client-id 10 command in the view of FlexE-Group 1/0/1, the device creates FlexE logical interface FlexE1/0/1:10 in which 10 is the client ID.

You can set the bandwidth of a FlexE logical interface in bandwidth or timeslot configuration mode set by using the flexe config-mode command in system view.

·     If the bandwidth configuration mode is bandwidth mode, you can only use the client client-id bandwidth command to set the bandwidth of the FlexE logical interface.

·     If the bandwidth configuration mode is timeslot mode, you can only use the client client-id binding interface interface-type interface-number timeslot timeslot-list command to set the bandwidth of FlexE logical interfaces.

For correct communication between FlexE logical interfaces at both ends of a link, you must perform the following tasks:

·     Create a FlexE group interface at both of the devices.

·     Set the same client ID for the two FlexE group interfaces.

Examples

# Create FlexE logical interface FlexE1/0/1:10 and set its bandwidth to 10 GB.

<Sysname> system-view

[Sysname] interface flexe-group 1/0/1

[Sysname-FlexE-Group1/0/1] bind interface flexe-hundredgig 1/0/1 phy-number 2

[Sysname-FlexE-Group1/0/1] client 10 bandwidth 10

Related commands

bind interface

flexe config-mode

interface flexe-group

dampening

Use dampening to enable the device to dampen an interface when the interface is flapping.

Use undo dampening to restore the default.

Syntax

dampening [ half-life reuse suppress max-suppress-time ]

undo dampening

Default

Interface dampening is disabled on Ethernet interfaces.

Views

FlexE-50-100G interface view

Predefined user roles

network-admin

Parameters

half-life: Specifies the amount of time after which a penalty is decreased, in the range of 1 to 120 seconds. The default value is 54 seconds.

reuse: Specifies the reuse threshold in the range of 200 to 20000. The default value is 750. The reuse threshold must be less than the suppression threshold.

suppress: Specifies the suppression threshold in the range of 200 to 20000. The default value is 2000.

max-suppress-time: Specifies the maximum amount of time the interface can be dampened, in the range of 1 to 255 seconds. The default value is 162 seconds (three times the half-life timer).

Usage guidelines

This command and the link-delay command are mutually exclusive on an interface.

This command does not take effect on the administratively down events. When you execute the shutdown command, the penalty restores to 0, and the interface reports the down event to the higher layer protocols.

As a best practice, do not enable the dampening function on an interface with MSTP or Smart Link enabled.

After an interface in down state is dampened, the interface state displayed through the display interface command, MIB, or Web is always down.

Examples

# Enable interface dampening on FlexE-Fifty-HundredGigE2/2/1.

<Sysname> system-view

[Sysname] interface flexe-fifty-hundredgige 2/2/1

[Sysname-FlexE-Fifty-HundredGig2/2/1] dampening

Related commands

display interface

link-delay

default

Use default to restore the default settings for an interface.

Syntax

default

Views

FlexE group interface view

FlexE physical interface view

FlexE logical interface view

Predefined user roles

network-admin

Usage guidelines

CAUTION

CAUTION:

The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network.

This command might fail to restore the default settings for some commands because of command dependencies or system restrictions. You can use the display this command in interface view to identify these commands, and use their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message instructions to solve the problem.

Examples

# Restore the default settings for FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] default

description

Use description to configure the description of an interface.

Use undo description to restore the default.

Syntax

description text

undo description

Default

The description of an interface is the interface name plus Interface (for example, FlexE1/0/1:1 Interface).

Views

FlexE group interface view

FlexE physical interface view

FlexE logical interface view

Predefined user roles

network-admin

Parameters

text: Specifies the interface description, a case-sensitive string of 1 to 255 characters.

Examples

# Configure the description of FlexE logical interface FlexE 1/0/1:1 as lan-interface.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] description lan-interface

 

display interface

Use display interface to display interface information.

Syntax

display interface [ interface-type [ interface-number | interface-number.subnumber ] ] [ brief [ description | down ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

interface-type: Specifies an interface type.

interface-number: Specifies an interface number.

interface-number.subnumber: Specifies a subinterface number. The interface-number argument represents the interface number. The subnumber argument represents the number of a subinterface created under the interface. The value range for the subnumber argument is 1 to 4094.

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

description: Displays complete interface descriptions. If you do not specify this keyword, the command displays only the first 27 characters of each interface description.

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

Examples

# Display information about Layer 3 FlexE logical interface FlexE1/0/2:1.

<Sysname> display interface flexe 1/0/2:1

FlexE2/2/1:1

Current state: DOWN

Line protocol state: DOWN

Description: FlexE2/2/1:1 Interface

Bandwidth: 5000000 kbps

Maximum transmission unit: 1500

FlexE group: FlexE-Group2/2/1

Allow jumbo frames to pass

Broadcast max-ratio: 100%

Unknown-multicast max-ratio: 100%

Unicast max-ratio: 100%

Internet protocol processing: Disabled

IP packet frame type: Ethernet II, hardware address: 542b-de0e-0a01

IPv6 packet frame type: Ethernet II, hardware address: 542b-de0e-0a01

Media type is not sure, port hardware type is no connector

Port priority: 0

Link speed type is autonegotiation, link duplex type is force link

Flow-control is not enabled

The maximum frame length is 9964

Last link flapping: Never

Last clearing of counters: Never

Last hardware down reason: -

Current system time:2022-12-01 15:01:25

Last time when physical state changed to up:-

Last time when physical state changed to down:2022-12-01 14:57:48

 Peak input rate: 0 bytes/sec, at 2022-12-01 14:57:52

 Peak output rate: 0 bytes/sec, at 2022-12-01 14:57:52

 Last 5 seconds input: 0 packets/sec 0 bytes/sec -%

 Last 5 seconds output: 0 packets/sec 0 bytes/sec -%

 Input (total):  0 packets, 0 bytes

         0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

 Input (normal):  0 packets, - bytes

         0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

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

         0 CRC, 0 frame, - overruns, 0 aborts

         - ignored, - parity errors

 Output (total): 0 packets, 0 bytes

         0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

 Output (normal): 0 packets, - bytes

         0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

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

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

         0 lost carrier, - no carrier

# Display information about FlexE-group interface FlexE-Group 5/1/1.

<Sysname> display interface flexe-group 5/1/1

FlexE-Group5/1/1

Current state: UP

Description: FlexE-Group5/1/1 Interface

FlexE group information:

  IF_INDEX: 0x10006

  Bandwidth configuration mode: Bandwidth

  Group number: 1

  Total bandwidth: 100 Gbps

  Valid bandwidth: 0 Gbps

  TX overhead: group number 1; Calendar: A

  RX overhead: group number 1; Calendar: B

FlexE PHY information:

FlexE-50-100G5/1/6:

    Phy Number: 1

    Status: Normal

    TX overhead: PHY number 1

    RX overhead: PHY number 1

TX-Time-Slot Configuration:

      1        1        1        1        1

      1        1        1        1        1

      1        1        1        1        1

      1        1        1        1        1

RX-Time-Slot Configuration:

      1        1        1        1        1

      1        1        1        1        1

      1        1        1        1        1

      1        1        1        1        0

Table 1 Command output

Field

Description

Current state

Physical link state of the interface:

·     Administratively DOWN—The interface has been shut down by using the shutdown command.

·     DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed).

·     DOWN (Link-Aggregation interface down)—The aggregate interface to which the interface belongs has been shut down by using the shutdown command.

·     DOWN (Tunnel-Bundle administratively down)—The tunnel bundle interface to which the interface belongs has been shut down by using the shutdown command.

·     ETH-rddc Shutdown—The interface has been shut down by the Reth module.

·     Storm-Constrain—The interface has been shut down because the storm control feature detected that unknown unicast traffic, multicast traffic, or broadcast traffic exceeded the upper threshold.

·     STP DOWN—The interface has been shut down by the BPDU guard feature.

·     UP—The interface is both administratively and physically up.

Line protocol state

Data link layer state of the interface. The state is determined through automatic parameter negotiation at the data link layer.

·     UP—The data link layer protocol is up.

·     UP (spoofing)—The data link layer protocol is up, but the link is an on-demand link or does not exist. This attribute is typical of null interfaces and loopback interfaces.

·     DOWN—The data link layer protocol is down.

·     DOWN (protocols)—The data link layer has been shut down by protocols included in the parentheses. Available protocols include:

¡     DLDP—Shuts down the data link layer when it detects that the link is unidirectional.

¡     OAM—Shuts down the data link layer when it detects a remote link failure.

¡     LAGG—Shuts down the data link layer when it detects that the aggregate interface does not have Selected ports.

¡     BFD—Shuts down the data link layer when it detects a link failure.

¡     MACSEC—Shuts down the data link layer when it fails to negotiate the encryption parameters.

Bandwidth

Expected bandwidth of the interface.

Maximum transmission unit

MTU of the interface.

FlexE group

FlexE group interface to which the FlexE logical interface belongs.

Internet protocol processing: Disabled

The interface is not assigned an IP address and cannot process IP packets.

Internet address: ip-address/mask-length (Type)

IP address of the interface and type of the address in parentheses.

Possible IP address types include:

·     Primary—Manually configured primary IP address.

·     Sub—Manually configured secondary IP address. If the interface has both primary and secondary IP addresses, the primary IP address is displayed. If the interface has only secondary IP addresses, the lowest secondary IP address is displayed.

·     DHCP-allocated—DHCP allocated IP address. For more information, see DHCP client configuration in Layer 3IP Services Configuration Guide.

·     BOOTP-allocated—BOOTP allocated IP address. For more information, see BOOTP client configuration in Layer 3IP Services Configuration Guide.

·     Unnumbered—IP address borrowed from another interface.

·     MTunnelIP address of the multicast tunnel interface (MTI), which is the same as the IP address of the MVPN source interface. For more information, see multicast VPN configuration in IP Multicast Configuration Guide.

IP packet frame type

IPv4 packet framing format.

hardware address

MAC address of the interface.

IPv6 packet frame type

IPv6 packet framing format.

Port priority

Port priority of the interface.

Loopback is set internal

An internal loopback test is running on the interface. This field depends on your configuration.

Loopback is not set

No loopback test is running on the interface. This field depends on your configuration.

Unknown-speed mode

The speed of the interface is unknown because the speed negotiation fails or the interface is physically disconnected.

unknown-duplex mode

The duplex mode of the interface is unknown because the duplex mode negotiation fails or the interface is physically disconnected.

Flow-control is not enabled

Generic flow control is disabled on the interface. This field depends on your configuration and the link parameter negotiation result.

Maximum frame length

Maximum length of Ethernet frames allowed to pass through the interface.

Allow jumbo frame to pass

The interface allows jumbo frames to pass through.

Broadcast max-

Broadcast storm suppression threshold in ratio, pps, or kbps. The unit of the threshold depends on your configuration.

Multicast max-

Multicast storm suppression threshold in ratio, pps, or kbps. The unit of the threshold depends on your configuration.

Unicast max-

Unknown unicast storm suppression threshold in ratio, pps, or kbps. The unit of the threshold depends on your configuration.

PVID

Port VLAN ID (PVID) of the interface.

MDI type

MDIX mode of the interface:

·     automdix.

·     mdi.

·     mdix.

Port link-type

Link type of the interface:

·     access.

·     trunk.

·     hybrid.

Tagged VLANs

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

UnTagged VLANs

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

Trunk port encapsulation

Encapsulation protocol type for the trunk port.

Last link flapping

The amount of time that has elapsed since the most recent physical state change of the interface. This field displays Never if the interface has been physically down since device startup.

Last clearing of counters

Time when the reset counters interface command was last used to clear the interface statistics. This field displays Never if the reset counters interface command has never been used on the interface since device startup.

Current system time

Current system time in the YYYY/MM/DD HH:MM:SS format. If the time zone is configured, this field is in the YYYY/MM/DD HH:MM:SS UTC±HH:MM:SS format.

Last time when physical state changed to up

Last time when physical state of the interface changed to up.

A hyphen (-) indicates that the physical state of the interface has not changed to up.

Last time when physical state changed to down

Last time when physical state of the interface changed to down.

A hyphen (-) indicates that the physical state of the interface has not changed to down.

Peak input rate

Peak rate of inbound traffic in Bps, and the time when the peak inbound traffic rate occurred.

Peak output rate

Peak rate of outbound traffic in Bps, and the time when the peak outbound traffic rate occurred.

Last interval second input:  0 packets/sec 0 bytes/sec 0%

Last interval second output:  0 packets/sec 0 bytes/sec 0%

Average inbound or outbound traffic rate (in pps and Bps) in the last statistics polling interval, and the ratio of the actual rate to the interface bandwidth. To set the statistics polling interval, use the flow-interval command.

A hyphen (-) indicates that the statistical item is not supported.

Input(total):  0 packets, 0 bytes

          0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

The two fields on the first line represent the inbound traffic statistics (in packets and bytes) for the interface. All inbound normal packets, abnormal packets, and normal pause frames were counted.

The four fields on the second line represent:

·     Number of inbound unicast packets.

·     Number of inbound broadcasts.

·     Number of inbound multicasts.

·     Number of inbound pause frames.

A hyphen (-) indicates that the statistical item is not supported.

Input(normal):  0 packets, 0 bytes

          0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

The two fields on the first line represent the inbound normal traffic and pause frame statistics (in packets and bytes) for the interface.

The four fields on the second line represent:

·     Number of inbound normal unicast packets.

·     Number of inbound normal broadcasts.

·     Number of inbound normal multicasts.

·     Number of inbound normal pause frames.

A hyphen (-) indicates that the statistical item is not supported.

input errors

Statistics of incoming error packets.

runts

Number of inbound frames meeting the following conditions:

·     Shorter than 64 bytes.

·     In correct format.

·     Containing valid CRCs.

giants

Number of inbound giants. Giants refer to frames larger than the maximum frame length supported on the interface.

For a FlexE interface that does not permit jumbo frames, the maximum frame length is as follows:

·     1518 bytes (without VLAN tags).

·     1522 bytes (with VLAN tags).

For a FlexE interface that permits jumbo frames, the maximum Ethernet frame length is set when you configure jumbo frame support on the interface.

throttles

Number of inbound frames that had a non-integer number of bytes.

CRC

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

frame

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

overruns

Number of packets dropped because the input rate of the port exceeded the queuing capability.

aborts

Total number of illegal inbound packets:

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

·     Jabber frames—CRC error frames greater than the maximum frame length supported on the FlexE logical interface (with an integral or non-integral length).

¡     For a FlexE interface that does not permit jumbo frames, the maximum frame length is 1518 bytes (without VLAN tags) or 1522 bytes (with VLAN tags).

¡     For a FlexE interface that permits jumbo frames, the maximum Ethernet frame length is set when you configure jumbo frame support on the interface.

·     Symbol error frames—Frames that contained a minimum of one undefined symbol.

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

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

ignored

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

parity errors

Total number of frames with parity errors.

Output(total): 0 packets, 0 bytes

          0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

The two fields on the first line represent the outbound traffic statistics (in packets and bytes) for the interface. All outbound normal packets, abnormal packets, and normal pause frames were counted.

The four fields on the second line represent:

·     Number of outbound unicast packets.

·     Number of outbound broadcasts.

·     Number of outbound multicasts.

·     Number of outbound pause frames.

A hyphen (-) indicates that the statistical item is not supported.

Output(normal): 0 packets, 0 bytes

          0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses

The two fields on the first line represent the outbound normal traffic and pause frame statistics (in packets and bytes) for the interface.

The four fields on the second line represent:

·     Number of outbound normal unicast packets.

·     Number of outbound normal broadcasts.

·     Number of outbound normal multicasts.

·     Number of outbound normal pause frames.

A hyphen (-) indicates that the statistical item is not supported.

output errors

Number of outbound packets with errors.

underruns

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

buffer failures

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

aborts

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

deferred

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

collisions

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

late collisions

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

lost carrier

Number of carrier losses during transmission. This counter increases by one when a carrier is lost, and applies to serial WAN interfaces.

no carrier

Number of times that the port failed to detect the carrier when attempting to send frames. This counter increases by one when a port failed to detect the carrier, and applies to serial WAN interfaces.

# Display information about FlexE physical interface FlexE-50-100G 1/0/1.

<Sysname> display interface flexe-50-100g 1/0/1

FlexE-50-100G1/0/1

Current state: DOWN

Line protocol state: DOWN

Description: FlexE-50-100G1/0/1 Interface

Bandwidth: 50000000 kbps

FlexE group: FlexE-Group1/0/1

Bound FlexE logical interface hosting clock service: FlexE1/0/1

Current system time:2017-10-27 15:10:03

Last time when physical state changed to up:-

Last time when physical state changed to down:2017-10-27 14:56:38

Table 2 Command output

Field

Description

Current state

Physical link state of the interface:

·     Administratively DOWN—The interface has been shut down by using the shutdown command.

·     DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed).

·     UP—The interface is both administratively and physically up.

Line protocol state

Data link layer state of the interface. The state is determined through automatic parameter negotiation at the data link layer.

·     UP—The data link layer protocol is up.

·     DOWN—The data link layer protocol is down.

Bandwidth

Expected bandwidth of the interface.

FlexE group

FlexE group interface to which the FlexE physical interface belongs.

Current system time

Current system time in the YYYY/MM/DD HH:MM:SS format. If the time zone is configured, this field is in the YYYY/MM/DD HH:MM:SS UTC±HH:MM:SS format.

Last time when physical state changed to up

Last time when physical state of the interface changed to up.

A hyphen (-) indicates that the physical state of the interface has not changed to up.

Last time when physical state changed to down

Last time when physical state of the interface changed to down.

A hyphen (-) indicates that the physical state of the interface has not changed to down.

# Display brief information about all interfaces.

<Sysname> display interface brief

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface                         Link Protocol Primary IP        Description             

50-100GE2/1/1                     UP   UP       --               

FlexE-Group2/1/3                  UP   --       --               

FlexE2/1/3:1                      UP   UP       44.12.1.1         toMER2_slice1

FlexE2/1/3:1.1                    UP   UP       44.12.1.5         toMER2_slice1

# Display brief information about FlexE1/0/2:1, including the complete description of the interface.

<Sysname>display  interface FlexE 1/1/2:1 brief  description

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Protocol: (s) - spoofing

Interface                         Link Protocol Primary IP        Description             

FlexE2/1/5:1                      UP   UP       45.11.1.1         aaaaaa

# Display information about interfaces in DOWN state and the causes.

<Sysname> display interface brief down

Brief information on interfaces in route mode:

Link: ADM - administratively down; Stby - standby

Interface                         Link   Cause        

50-100GE2/1/2                     DOWN   Not connected

FlexE-Group2/2/1                  DOWN   Not connected

FlexE2/2/1:1                      DOWN   Not connected

Table 3 Command output

Field

Description

Brief information on interfaces in route mode:

Brief information about Layer 3 interfaces.

Interface

Interface name.

Link

Physical link state of the interface:

·     UP—The interface is physically up.

·     DOWN—The interface is physically down.

·     ADM—The interface has been shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

·     Stby—The interface is a backup interface in standby state. To see the primary interface, use the display interface-backup state command.

Protocol

Data link layer protocol state of the interface:

·     UP—The data link layer protocol of the interface is up.

·     DOWN—The data link layer protocol of the interface is down.

·     UP(s)—The data link layer protocol of the interface is up, but the link is an on-demand link or does not exist. The (s) attribute represents the spoofing flag. This value is typical of null interfaces and loopback interfaces.

This field displays two hyphens (--) if the device does not support displays the data link layer protocol status of the interface.

Primary IP

Primary IP address of the interface. This field displays two hyphens (--) if the interface does not have an IP address.

Description

Description of the interface.

Speed

Speed of the interface, in bps.

This field displays the (a) flag next to the speed if the speed is automatically negotiated.

This field displays auto if the interface is configured to autonegotiate its speed but the autonegotiation has not started.

Duplex

Duplex mode of the interface:

·     A—Autonegotiation. The interface is configured to autonegotiate its duplex mode but the autonegotiation has not started.

·     F—Full duplex.

·     F(a)—Autonegotiated full duplex.

Type

Link type of the interface:

·     A—Access.

·     H—Hybrid.

·     T—Trunk.

PVID

Port VLAN ID.

Cause

Cause for the physical link state of an interface to be DOWN:

·     Administratively—The interface has been manually shut down by using the shutdown command. To restore the physical state of the interface, use the undo shutdown command.

·     DOWN ( Link-Aggregation interface down )—The interface is a member port of an aggregate interface, and the aggregate interface is down.

·     DOWN (Loopback detection down)—The loopback detection module has detected loops.

·     DOWN ( Monitor-Link uplink down )—The monitor link module has detected that the uplink is down.

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

·     Storm-Constrain—The storm control feature has detected that unknown unicast traffic, multicast traffic, or broadcast traffic exceeded the upper threshold.

·     STP DOWN—The interface has been shut down by the BPDU guard feature.

·     Standby—The interface is a backup interface in standby state.

Related commands

reset counters interface

flexe config-mode

Use flexe config-mode to set the bandwidth configuration mode of FlexE logical interfaces.

Use undo flexe config-mode to restore the default.

Syntax

flexe config-mode slot slot-number subslot subslot-number { bandwidth | timeslot }

undo flexe config-mode slot slot-number subslot subslot-number

Views

System view

Default

The bandwidth mode is used. You can flexibly set the bandwidth of FlexE logical interfaces.

Predefined user roles

network-admin

Parameters

slot slot-number: Specifies a card by its slot number.

subslot subslot-number: Specifies a subcard by its slot number.

bandwidth: Specifies the bandwidth mode as the bandwidth configuration mode of FlexE logical interfaces. In this mode, you can flexibly set the bandwidth of a FlexE logical interface.

timeslot: Specifies the timeslot mode as the bandwidth configuration mode of FlexE logical interfaces. In this mode, you can allocate bandwidth to a FlexE logical interface through specifying timeslots with the specified granularity.

Usage guidelines

You can configure bandwidth for a FlexE logical interface flexibly or through specifying timeslots with the specified granularity.

·     You can set the bandwidth configuration mode for FlexE logical interfaces to bandwidth mode. You can only use the client client-id bandwidth command to set the bandwidth of the FlexE logical interface. In this mode, you can set different bandwidth for FlexE logical interfaces at both ends.

·     When the bandwidth configuration mode is configured as timeslot, you can only execute the client client-id binding interface interface-type interface-number timeslot timeslot-list command to specify timeslots for a FlexE logical interface. The bandwidth of the FlexE logical interface is the number of timeslots multiplied by the timeslot granularity. In this mode, two FlexE logical interfaces interconnected must be bound to the same FlexE physical interfaces.

If you already set the bandwidth of a FlexE logical interface by using the client command, you cannot change the bandwidth configuration mode by using this command.

Examples

# Set the bandwidth configuration mode to timeslot mode for FlexE logical interfaces.

<Sysname> system-view

[Sysname] flexe config-mode slot 1 subslot 1 timeslot

Related commands

client

flexe min-bandwidth-percent

Use flexe min-bandwidth-percent to set the minimum available bandwidth percentage of a FlexE logical interface.

Use undo flexe min-bandwidth-percent to restore the default.

Syntax

flexe min-bandwidth-percent percent

undo flexe min-bandwidth-percent

Default

The minimum available bandwidth percentage is 0% for a FlexE logical interface.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

percent: Specifies the minimum available bandwidth percentage in the range of 1% to 100%.

Usage guidelines

If the available bandwidth percentage of the interface drops below the minimum available bandwidth percentage, the interface goes down.

If the available bandwidth percentage of the interface reaches or exceeds the minimum available bandwidth percentage, the interface comes up.

To display the minimum available bandwidth percentage of a FlexE logical interface, use the display interface command.

Examples

# Set the minimum available bandwidth percentage to 25% for FlexE logical interface FlexE 1/0/1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1

[Sysname-FlexE1/0/1] flexe min-bandwidth-percent 25

Related commands

display interface

flow-interval

Use flow-interval to set the statistics polling interval on a FlexE logical interface.

Use undo flow-interval to restore the default.

Syntax

flow-interval interval

undo flow-interval

Default

The statistics polling interval is 300 seconds.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

interval: Specifies the statistics polling interval in seconds. The interval is in the range of 5 to 300.

Usage guidelines

After you modify the statistics polling interval on a FlexE logical interface, the collected statistics are inaccurate until two intervals after the modification. To view the accurate statistics, see the Last interval second input and Last interval second output fields in the output from the display interface command.

Examples

# Set the statistics polling interval to 100 seconds on FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] flow-interval 100

Related commands

display interface

ifmonitor crc-error

Use ifmonitor crc-error to set global CRC error packet alarm parameters.

Use undo ifmonitor crc-error to restore the default.

Syntax

ifmonitor crc-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo ifmonitor crc-error slot slot-number

Default

The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for CRC error packet alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for CRC error packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for CRC error packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for CRC error packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of incoming CRC error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming CRC error packets exceeds the upper threshold on the interface.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the CRC error packet alarm function enabled, when the number of incoming CRC error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming CRC error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the CRC error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the CRC error packet alarm function is enabled by using the snmp-agent trap enable ifmonitor crc-error command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Globally set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for CRC error packet alarms.

<Sysname> system-view

[Sysname] ifmonitor crc-error high-threshold 5000 low-threshold 400 interval 6

Related commands

snmp-agent trap enable ifmonitor

ifmonitor giant

Use ifmonitor giant to configure global giant packet alarm parameters.

Use undo ifmonitor giant to restore the default.

Syntax

ifmonitor giant slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo ifmonitor giant slot slot-number

Default

The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for giant packet alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for giant packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for giant packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for giant packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of incoming giant packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming giant packets exceeds the upper threshold on the interface.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the giant packet alarm function enabled, when the number of incoming giant packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming giant packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the giant packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

When you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for giant packet alarms.

<Sysname> system-view

[Sysname] ifmonitor giant high-threshold 5 low-threshold 4 interval 6

Related commands

port ifmonitor giant

snmp-agent trap enable ifmonitor

ifmonitor input-error

Use ifmonitor input-error to set global input error packet alarm parameters.

Use undo ifmonitor input-error to restore the default.

Syntax

ifmonitor input-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo ifmonitor input-error slot slot-number

Default

The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for input error packet alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for input error packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for input error packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for input error packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of input error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of input error packets exceeds the upper threshold on the interface.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the input error packet alarm function enabled, when the number of input error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of input error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the input error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the input error packet alarm function is enabled by using the snmp-agent trap enable ifmonitor input-error command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Globally set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for input error packet alarms.

<Sysname> system-view

[Sysname] ifmonitor input-error high-threshold 5000 low-threshold 400 interval 6

Related commands

snmp-agent trap enable ifmonitor

ifmonitor input-usage

Use ifmonitor input-usage to set global inbound bandwidth usage alarm parameters.

Use undo ifmonitor input-usage to restore the default.

Syntax

ifmonitor input-usage slot slot-number high-threshold high-value low-threshold low-value

undo ifmonitor input-usage slot slot-number

Default

The upper threshold is 90% and the lower threshold is 80% for inbound bandwidth usage alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for inbound bandwidth usage alarms, in the range of 1% to 100%.

low-threshold low-value: Specifies the lower threshold for inbound bandwidth usage alarms, in the range of 1% to 100%.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the inbound bandwidth usage alarm function enabled, when the inbound bandwidth usage on an interface in normal state within the statistic polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the inbound bandwidth usage on an interface in the alarm state within the statistic polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

The statistics polling interval can be set by using the flow-interval command.

You can configure the inbound bandwidth usage alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the inbound bandwidth usage alarm function is enabled by using the snmp-agent trap enable ifmonitor input-usage command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Globally set the upper threshold to 95% and lower threshold to 80% for inbound bandwidth usage alarms.

<Sysname> system-view

[Sysname] ifmonitor input-usage high-threshold 95 low-threshold 80

Related commands

flow-interval

snmp-agent trap enable ifmonitor

ifmonitor output-error

Use ifmonitor output-error to set global output error packet alarm parameters.

Use undo ifmonitor output-error to restore the default.

Syntax

ifmonitor output-error slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo ifmonitor output-error slot slot-number

Default

The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for output error packet alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for output error packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for output error packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for output error packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of output error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of output error packets exceeds the upper threshold on the interface.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the output error packet alarm function enabled, when the number of output error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of output error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the output error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the output error packet alarm function is enabled by using the snmp-agent trap enable ifmonitor output-error command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Globally set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for output error packet alarms.

<Sysname> system-view

[Sysname] ifmonitor output-error high-threshold 5000 low-threshold 400 interval 6

Related commands

snmp-agent trap enable ifmonitor

ifmonitor output-usage

Use ifmonitor output-usage to set global outbound bandwidth usage alarm parameters.

Use undo ifmonitor output-usage to restore the default.

Syntax

ifmonitor output-usage slot slot-number high-threshold high-value low-threshold low-value

undo ifmonitor output-usage slot slot-number

Default

The upper threshold is 90% and the lower threshold is 80% for outbound bandwidth usage alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for outbound bandwidth usage alarms, in the range of 1% to 100%.

low-threshold low-value: Specifies the lower threshold for outbound bandwidth usage alarms, in the range of 1% to 100%.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the outbound bandwidth usage alarm function enabled, when the outbound bandwidth usage on an interface in normal state within the statistic polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the outbound bandwidth usage on an interface in the alarm state within the statistic polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

The statistics polling interval can be set by using the flow-interval command.

You can configure the outbound bandwidth usage alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the inbound bandwidth usage alarm function is enabled by using the snmp-agent trap enable ifmonitor output-usage command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Globally set the upper threshold to 80% and lower threshold to 60% for outbound bandwidth usage alarms.

<Sysname> system-view

[Sysname] ifmonitor output-usage high-threshold 80 low-threshold 60

Related commands

flow-interval

snmp-agent trap enable ifmonitor

ifmonitor rx-pause

Use ifmonitor rx-pause to set global incoming pause frame alarm parameters.

Use undo ifmonitor rx-pause to restore the default.

Syntax

ifmonitor rx-pause slot slot-number high-threshold high-value low-threshold low-value interval interval

undo ifmonitor rx-pause slot slot-number

Default

The upper threshold is 500, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for incoming pause frame alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for incoming pause frame alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for incoming pause frame alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for incoming pause frame, in the range of 1 to 65535 seconds.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the incoming pause frame alarm function enabled, when the number of incoming pause frames on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming pause frames on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the incoming pause frame alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the incoming pause frame alarm function is enabled by using the snmp-agent trap enable ifmonitor rx-pause command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Globally set the upper threshold to 30, lower threshold to 20, and statistics collection and comparison interval to 4 seconds for incoming pause frame alarms.

<Sysname> system-view

[Sysname] ifmonitor rx-pause high-threshold 30 low-threshold 20 interval 4

Related commands

snmp-agent trap enable ifmonitor

ifmonitor runt

Use ifmonitor runt to configure global runt packet alarm parameters.

Use undo ifmonitor runt to restore the default.

Syntax

ifmonitor runt slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo ifmonitor runt slot slot-number

Default

The upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for runt packet alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for runt packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for runt packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for runt packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of incoming runt packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming runt packets exceeds the upper threshold on the interface.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the runt packet alarm function enabled, when the number of incoming runt packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming runt packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the runt packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

When you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for runt packet alarms.

<Sysname> system-view

[Sysname] ifmonitor runt high-threshold 5 low-threshold 4 interval 6

Related commands

port ifmonitor runt

snmp-agent trap enable ifmonitor

ifmonitor tx-pause

Use ifmonitor tx-pause to set global outgoing pause frame alarm parameters.

Use undo ifmonitor tx-pause to restore the default.

Syntax

ifmonitor tx-pause slot slot-number high-threshold high-value low-threshold low-value interval interval

undo ifmonitor tx-pause slot slot-number

Default

The upper threshold is 500, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for outgoing pause frame alarms.

Views

System view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for outgoing pause frame alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for outgoing pause frame alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for outgoing pause frame, in the range of 1 to 65535 seconds.

slot slot-number: Specifies a card by its slot number.

Usage guidelines

With the outgoing pause frame alarm function enabled, when the number of outgoing pause frames on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of outgoing pause frames on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the outgoing pause frame alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the outgoing pause frame alarm function is enabled by using the snmp-agent trap enable ifmonitor tx-pause command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 20, lower threshold to 10, and statistics collection and comparison interval to 5 seconds for outgoing pause frame alarms.

<Sysname> system-view

[Sysname] ifmonitor tx-pause high-threshold 20 low-threshold 10 interval 5

Related commands

snmp-agent trap enable ifmonitor

interface

Use interface to enter the view of a FlexE physical interface.

Syntax

interface interface-type interface-number

Views

System view

Predefined user roles

network-admin

Parameters

interface-type: Specifies the interface type of a FlexE physical interface.

interface-number: Specifies the interface number of the FlexE physical interface.

Examples

# Enter the view of FlexE-50-100G.

<Sysname> system-view

[Sysname] interface flexe-50-100g 1/0/1

[Sysname-FlexE-50-100G1/0/1]

interface flexe

Use interface flexe to enter the view of an existing FlexE logical interface, create a subinterface and enter its view, or enter the view of an existing subinterface.

Syntax

interface flexe { interface-number | interface-number.subnumber }

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies the interface number of a FlexE logical interface, which consists of the interface number and client ID of the Flex-group interface to which the FlexE logical interface belongs.

interface-number.subnumber: Specifies a subinterface number. The interface-number argument is an interface number. The subnumber argument is the number of a subinterface created under the interface. The value range for the subnumber argument is 1 to 4094.

Usage guidelines

To create a FlexE logical interface, use the client command.

Examples

# Enter the view of FlexE logical interface FlexE1/0/1:10.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:10

[Sysname-FlexE1/0/1:10]

Related commands

client

interface flexe-group

Use interface flexe-group to create a FlexE group interface and enter its view or enter the view of an existing FlexE group interface.

Use undo interface flexe-group to remove a FlexE group interface.

Syntax

interface flexe-group interface-number

undo interface flexe-group interface-number

Views

System view

Predefined user roles

network-admin

Parameters

interface-number: Specifies the interface number of the FlexE group interface. The last digit in the interface number represents the group number of the FlexE group interface.

Usage guidelines

After you create a FlexE group interface, you can add multiple FlexE physical interfaces to the FlexE group interface and create FlexE logical interfaces in the FlexE group interface as needed. Then, you can flexibly assign the total bandwidths of the FlexE physical interfaces to FlexE logical interfaces according to the bandwidth requirements of services.

The number of FlexE group interface must be equal to or smaller than the number of FlexE physical interfaces on the subslot.

You can delete a FlexE group interface only if the FlexE group interface does not have any FlexE physical or logical interfaces.

Examples

# Create FlexE group interface FlexE-Group 1/0/1 and enter its view.

<Sysname> system-view

[Sysname] interface flexe-group 1/0/1

[Sysname-FlexE-Group1/0/1]

Related commands

bind interface

client

jumboframe enable

Use jumboframe enable to allow jumbo frames within the specified length to pass through.

Use undo jumboframe enable to prevent jumbo frames from passing through.

Use undo jumboframe enable size to restore the default.

Syntax

jumboframe enable [ size ]

undo jumboframe enable [ size ]

Default

The device allows jumbo frames within 9964 bytes to pass through.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

size: Specifies the maximum length (in bytes) of Ethernet frames that are allowed to pass through. The value range for this argument is 1536 to 9964.

Usage guidelines

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Allow jumbo frames to pass through FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] jumboframe enable

link-delay

Use link-delay to set the physical state change suppression interval on a FlexE interface.

Use undo link-delay to restore the default.

Syntax

link-delay { down | up } [ msec ] delay-time

undo link-delay { down | up }

Default

Each time the physical link of a FlexE interface goes up or comes down, the system immediately reports the change to the CPU.

Views

FlexE physical interface view

FlexE logical interface view

Predefined user roles

network-admin

Parameters

down: Suppresses link-down events.

up: Suppresses link-up events.

msec: Enables the physical state change suppression interval to be accurate to milliseconds. If you do not specify this keyword, the suppression interval is accurate to seconds.

delay-time: Specifies the physical state change suppression interval on the FlexE interface. A value of 0 means that physical state changes are immediately reported to the CPU and are not suppressed.

·     If you do not specify the msec keyword, the value range for this argument is 0 to 300 seconds.

·     If you specify the msec keyword, the value range is 0 to 10000 milliseconds, and the value must be a multiple of 100.

Usage guidelines

You can use this command to suppress only link-down events, only link-up events, or both. If an event of the specified type still exists when the suppression interval expires, the system reports the event.

On an interface, you can set different suppression intervals for link-up and link-down events. If you set the suppression interval multiple times for the same type of link suppression events, the most recent configuration takes effect.

Examples

# Set the link-down event suppression interval to 8 seconds on FlexE logical interface FlexE 1/0/1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] link-delay down 8

# Set the link-up event suppression interval to 800 milliseconds on FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] link-delay up msec 800 mode

loopback

CAUTION

CAUTION:

After you enable loopback testing on a FlexE logical interface, the interface does not forward data traffic.

Use loopback to enable loopback testing on a FlexE logical interface.

Use undo loopback to disable loopback testing on a FlexE logical interface.

Syntax

loopback { internal }

undo loopback

Default

Loopback testing is disabled on a FlexE logical interface.

Views

FlexE physical interface view

FlexE logical interface view

Predefined user roles

network-admin

Parameters

internal: Enables internal loopback testing on the FlexE logical interface.

Usage guidelines

After you enable loopback testing on a FlexE logical interface, the FlexE logical interface switches to full duplex mode. After you disable loopback testing, the FlexE logical interface restores to its duplex setting.

The shutdown and loopback commands are mutually exclusive.

Examples

# Enable internal loopback testing on FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] loopback internal

mac-address

Use mac-address to set the MAC address of a FlexE logical interface.

Use undo mac-address to restore the default.

Syntax

mac-address mac-address

undo mac-address

Default

No MAC address is configured for a FlexE logical interface.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

mac-address: Specifies a MAC address in the format of H-H-H.

Examples

# Set the MAC address of FlexE 1/0/1:1 to 0001-0001-0001.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] mac-address 1-1-1

mtu

Use mtu to set the MTU of a FlexE interface.

Use undo mtu to restore the default.

Syntax

mtu size

undo mtu

Default

The MTU of a FlexE interface is 1500 bytes.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

size: Specifies the MTU in bytes. The value range for this argument varies by interface type.

Usage guidelines

The MTU set by using this command or the ip mtu command takes effect only on packets that the interface delivers to the CPU, for example, packets originated from or destined for the interface. Set a reasonable MTU on the interface to avoid fragmentation.

If you configure both the mtu and ip mtu commands on the interface, the MTU set by using the command takes priority.

Examples

# Set the MTU to 1430 bytes for FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] mtu 1430

Related commands

ip mtu (Layer 3IP Services Command Reference)

multicast-suppression

Use multicast-suppression to enable multicast storm suppression and set the multicast storm suppression threshold.

Use undo multicast-suppression to disable multicast storm suppression.

Syntax

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

undo multicast-suppression

Default

A FlexE logical interface does not suppress multicast traffic.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

ratio: Specifies the multicast suppression threshold as a percentage of the interface bandwidth. The value range for this argument (in percentage) is 0 to 100. A smaller value means that less multicast traffic is allowed to pass through.

pps max-pps: Specifies the maximum number of multicast packets that the FlexE logical interface can forward per second. The value range for the max-pps argument (in pps) is 0 to 1.4881 × the interface bandwidth.

kbps max-kbps: Specifies the maximum number of kilobits of multicast traffic that the FlexE logical interface can forward per second. The value range for this argument (in kbps) is 0 to the interface bandwidth.

Usage guidelines

The multicast storm suppression feature limits the size of multicast traffic to a threshold on an interface. When the multicast traffic on the interface exceeds this threshold, the system drops packets until the traffic drops below this threshold.

Both the storm-constrain command and the multicast-suppression command can suppress multicast storms on a port. The multicast-suppression command uses the chip to physically suppress multicast traffic. It has less influence on the device performance than the storm-constrain command, which uses software to suppress multicast traffic.

For the traffic suppression result to be determined, do not configure both the storm-constrain multicast command and the multicast-suppression command on an interface.

The configured suppression threshold value in pps or kbps might be converted into a multiple of a step supported by the chip. As a result, the effective suppression threshold might be different from the configured one. To determine the suppression threshold that takes effect, see the prompts on the device.

Examples

# Set the multicast storm suppression threshold to 10000 kbps on FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] multicast-suppression kbps 10000

The actual value is 10048 on port FlexE1/0/1 currently.

The output shows that the value that takes effect is 10048 kbps (157 times of 64), because the chip only supports step 64.

Related commands

broadcast-suppression

unicast-suppression

port ifmonitor crc-error

Use port ifmonitor crc-error to set CRC error packet alarm parameters on a FlexE logical interface.

Use undo port ifmonitor crc-error to restore the default.

Syntax

port ifmonitor crc-error [ ratio ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo port ifmonitor crc-error

Default

A FlexE logical interface uses the global CRC error packet alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

ratio: Specifies the alarm thresholds in percentage. If you do not specify this keyword, you configure the alarm thresholds in absolute value.

high-threshold high-value: Specifies the upper threshold for CRC error packet alarms. If you specify the ratio keyword, the value range is 1 to 100. If you do not specify the ratio keyword, the value range is 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for CRC error packet alarms. If you specify the ratio keyword, the value range is 1 to 100. If you do not specify the ratio keyword, the value range is 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for CRC error packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of incoming CRC error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming CRC error packets exceeds the upper threshold on the interface.

Usage guidelines

With the CRC error packet alarm function enabled, when the number of incoming CRC error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming CRC error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the CRC error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the CRC error packet alarm function is enabled by using the snmp-agent trap enable ifmonitor crc-error command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for CRC error packet alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor crc-error high-threshold 5000 low-threshold 400 interval 6

Related commands

snmp-agent trap enable ifmonitor

port ifmonitor giant

Use port ifmonitor giant to configure giant packet alarm parameters for an interface.

Use undo port ifmonitor giant to restore the default.

Syntax

port ifmonitor giant high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo port ifmonitor giant

Default

An interface uses the global giant packet alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for giant packet alarms, in the range of 1 to 4294967295.

low-threshold low-value: Specifies the lower threshold for giant packet alarms, in the range of 1 to 4294967295.

interval interval: Specifies the statistics collection and comparison interval for giant packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of incoming giant packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming giant packets exceeds the upper threshold on the interface.

Usage guidelines

With the giant packet alarm function enabled, when the number of incoming giant packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming giant packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the giant packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

When you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for giant packet alarms on FlexE1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor giant high-threshold 5 low-threshold 4 interval 6

Related commands

ifmonitor giant

snmp-agent trap enable ifmonitor

port ifmonitor input-error

Use port ifmonitor input-error to set input error packet alarm parameters on a FlexE logical interface.

Use undo port ifmonitor input-error to restore the default.

Syntax

port ifmonitor input-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo port ifmonitor input-error

Default

A FlexE logical interface uses the global input error packet alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for input error packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for input error packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for input error packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of input error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of input error packets exceeds the upper threshold on the interface.

Usage guidelines

With the input error packet alarm function enabled, when the number of input error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of input error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the input error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the input error packet alarm function is enabled by using the snmp-agent trap enable ifmonitor input-error command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for input error packet alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor input-error high-threshold 5000 low-threshold 400 interval 6

Related commands

snmp-agent trap enable ifmonitor

port ifmonitor input-usage

Use port ifmonitor input-usage to set inbound bandwidth usage alarm parameters on a FlexE logical interface.

Use undo port ifmonitor input-usage to restore the default.

Syntax

port ifmonitor input-usage high-threshold high-value low-threshold low-value

undo port ifmonitor input-usage

Default

A FlexE interface uses the global inbound bandwidth usage alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for inbound bandwidth usage alarms, in the range of 1% to 100%.

low-threshold low-value: Specifies the lower threshold for inbound bandwidth usage alarms, in the range of 1% to 100%.

Usage guidelines

With the inbound bandwidth usage alarm function enabled, when the inbound bandwidth usage on an interface in normal state within the statistic polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the inbound bandwidth usage on an interface in the alarm state within the statistic polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

The statistics polling interval can be set by using the flow-interval command.

You can configure the inbound bandwidth usage alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the inbound bandwidth usage alarm function is enabled by using the snmp-agent trap enable ifmonitor input-usage command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 80% and lower threshold to 6% for inbound bandwidth usage alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor input-usage high-threshold 80 low-threshold 60

Related commands

flow-interval

snmp-agent trap enable ifmonitor

port ifmonitor output-error

Use port ifmonitor output-error to set output error packet alarm parameters on a FlexE logical interface.

Use undo port ifmonitor output-error to restore the default.

Syntax

port ifmonitor output-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo port ifmonitor output-error

Default

A FlexE logical interface uses the global output error packet alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for output error packet alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for output error packet alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for output error packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of output error packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of output error packets exceeds the upper threshold on the interface.

Usage guidelines

With the output error packet alarm function enabled, when the number of output error packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of output error packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the output error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the output error packet alarm function is enabled by using the snmp-agent trap enable ifmonitor output-error command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5000, lower threshold to 400, and statistics collection and comparison interval to 6 seconds for output error packet alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor output-error high-threshold 5000 low-threshold 400 interval 6

Related commands

snmp-agent trap enable ifmonitor

port ifmonitor output-usage

Use port ifmonitor output-usage to set outbound bandwidth usage alarm parameters on a FlexE logical interface.

Use undo port ifmonitor output-usage to restore the default.

Syntax

port ifmonitor output-usage high-threshold high-value low-threshold low-value

undo port ifmonitor output-usage

Default

A FlexE interface uses the global outbound bandwidth usage alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for outbound bandwidth usage alarms, in the range of 1% to 100%.

low-threshold low-value: Specifies the lower threshold for outbound bandwidth usage alarms, in the range of 1% to 100%.

Usage guidelines

With the outbound bandwidth usage alarm function enabled, when the outbound bandwidth usage on an interface in normal state within the statistic polling interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the outbound bandwidth usage on an interface in the alarm state within the statistic polling interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

The statistics polling interval can be set by using the flow-interval command.

You can configure the outbound bandwidth usage alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the inbound bandwidth usage alarm function is enabled by using the snmp-agent trap enable ifmonitor output-usage command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 9% and lower threshold to 7% for inbound bandwidth usage alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1]port ifmonitor output-usage high-threshold 9 low-threshold 7

Related commands

flow-interval

snmp-agent trap enable ifmonitor

port ifmonitor rx-pause

Use port ifmonitor rx-pause to set incoming pause frame alarm parameters on a FlexE logical interface.

Use undo port ifmonitor rx-pause to restore the default.

Syntax

port ifmonitor rx-pause high-threshold high-value low-threshold low-value interval interval

undo port ifmonitor rx-pause

Default

A FlexE logical interface uses the global incoming pause frame alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for incoming pause frame alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for incoming pause frame alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for incoming pause frame, in the range of 1 to 65535 seconds.

Usage guidelines

With the incoming pause frame alarm function enabled, when the number of incoming pause frames on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming pause frames on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the incoming pause frame alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the incoming pause frame alarm function is enabled by using the snmp-agent trap enable ifmonitor rx-pause command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 90, lower threshold to 50, and statistics collection and comparison interval to 5 seconds for incoming pause frame alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor rx-pause high-threshold 90 low-threshold 50 interval 5

Related commands

snmp-agent trap enable ifmonitor

port ifmonitor runt

Use port ifmonitor runt to configure runt packet alarm parameters for an interface.

Use undo port ifmonitor runt to restore the default.

Syntax

port ifmonitor runt high-threshold high-value low-threshold low-value interval interval [ shutdown ]

undo port ifmonitor runt

Default

An interface uses the global runt packet alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for runt packet alarms, in the range of 1 to 4294967295.

low-threshold low-value: Specifies the lower threshold for runt packet alarms, in the range of 1 to 4294967295.

interval interval: Specifies the statistics collection and comparison interval for runt packets, in the range of 1 to 65535 seconds.

shutdown: Shuts down an interface when the number of incoming runt packets on the interface exceeds the upper threshold. Then, the interface stops forwarding all packets. To recover the interface, execute the undo shutdown command on the interface. If you do not specify this keyword, an upper threshold exceeding alarm is generated and the interface enters the alarm state when the number of incoming runt packets exceeds the upper threshold on the interface.

Usage guidelines

With the runt packet alarm function enabled, when the number of incoming runt packets on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of incoming runt packets on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the runt packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

When you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 5, lower threshold to 4, and statistics collection and comparison interval to 6 seconds for runt packet alarms on FlexE1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor runt high-threshold 5 low-threshold 4 interval 6

Related commands

ifmonitor runt

snmp-agent trap enable ifmonitor

port ifmonitor tx-pause

Use port ifmonitor tx-pause to set outgoing pause frame alarm parameters on a FlexE logical interface.

Use undo port ifmonitor tx-pause to restore the default.

Syntax

port ifmonitor tx-pause high-threshold high-value low-threshold low-value interval interval

undo port ifmonitor tx-pause

Default

A FlexE logical interface uses the global outgoing pause frame alarm parameters.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

high-threshold high-value: Specifies the upper threshold for outgoing pause frame alarms, in the range of 1 to 4294967295 packets.

low-threshold low-value: Specifies the lower threshold for outgoing pause frame alarms, in the range of 1 to 4294967295 packets.

interval interval: Specifies the statistics collection and comparison interval for outgoing pause frames, in the range of 1 to 65535 seconds.

Usage guidelines

With the outgoing pause frame alarm function enabled, when the number of outgoing pause frames on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of outgoing pause frames on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

You can configure the outgoing pause frame alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

This command takes effect only when the outgoing pause frame alarm function is enabled by using the snmp-agent trap enable ifmonitor tx-pause command.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Set the upper threshold to 50, lower threshold to 40, and statistics collection and comparison interval to 8 seconds for outgoing pause frame alarms on FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] port ifmonitor tx-pause high-threshold 50 low-threshold 40 interval 8

Related commands

snmp-agent trap enable ifmonitor

port-type

Use port-type flexe to change the type of an interface from Ethernet to FlexE.

Use port-type ethernet to change the type of an interface from FlexE to Ethernet.

Syntax

In 50-GE/50-100GE/100GE interface view:

port-type flexe

In FlexE-FG10G/FlexE-50-100G:

port-type ethernet

Views

10-GE interface view

50-GE interface view

50-100GE interface view

100-GE interface view

FlexE-50-100G interface view

FlexE-FG10G interface view

Predefined user roles

network-admin

Usage guidelines

CAUTION

CAUTION:

After the type of an interface is changed, the system deletes the original interface and creates a new interface that is numbered the same as the original interface. All the other commands are restored to the default on the new interface.

 

The bandwidth of an interface in standard Ethernet mode is fixed. To assign bandwidth at the granularity of 5 Gbps, execute the port-type flexe command to switch the type of the interface from Ethernet to FlexE.

 

Examples

# Change standard Ethernet interface FiftyGigE 1/0/1 to a FlexE interface.

<Sysname> system-view

[Sysname] interface fiftygige 1/0/1

[Sysname-FiftyGigE1/0/1] port-type flexe

The interface FiftyGigE1/0/1 will be deleted. Continue? [Y/N]:

# Change FlexE interface FlexE-50-100G 1/0/1 to a standard Ethernet interface.

<Sysname> system-view

[Sysname] interface flexe-50-100g 1/0/1

[Sysname-FlexE-50-100G1/0/1] port-type ethernet

The interfaces FlexE-50-100G1/0/1 and FlexE1/0/1 through FlexE1/0/3 will be deleted. Continue? [Y/N]:

shutdown

Use shutdown to shut down a FlexE interface.

Use undo shutdown to bring up a FlexE interface.

Syntax

shutdown

undo shutdown

Default

A FlexE interface is up.

Views

FlexE physical interface view

FlexE logical interface view

Predefined user roles

network-admin

Usage guidelines

CAUTION

CAUTION:

Executing the shutdown command on an interface will disconnect the link of the interface and interrupt communication. Use this command with caution.

Some interface configurations might require an interface restart before taking effect.

The shutdown and loopback commands are mutually exclusive.

Examples

# Shut down and then bring up FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] shutdown

[Sysname-FlexE1/0/1:1] undo shutdown

snmp-agent trap enable ifmonitor

Use snmp-agent trap enable ifmonitor to enable interface alarm functions.

Use undo snmp-agent trap enable ifmonitor to disable interface alarm functions.

Syntax

snmp-agent trap enable ifmonitor [ crc-error | giant | input-error | input-usage | output-error | output-usage | rx-pause | runt | tx-pause ] *

undo snmp-agent trap enable ifmonitor [ crc-error | giant | input-error | input-usage | output-error | output-usage | rx-pause | runt | tx-pause ] *

Default

Interface alarm functions are enabled.

Views

System view

Predefined user roles

network-admin

Parameters

crc-error: Enables the CRC error packet alarm function.

giant: Enables the giant packet alarm function for interfaces.

input-error: Enables the input error packet alarm function.

input-usage: Enables the inbound bandwidth usage alarm function.

output-error: Enables the output error packet alarm function.

output-usage: Enables the outbound bandwidth usage alarm function.

rx-pause: Enables the incoming pause frame alarm function.

runt: Enables the runt packet alarm function for interfaces.

tx-pause: Enables the outgoing pause frame alarm function.

Examples

# Enable the CRC error packet alarm function.

<Sysname> system-view

[Sysname] snmp-agent trap enable ifmonitor crc-error

unicast-suppression

Use unicast-suppression to enable unknown unicast storm suppression and set the unknown unicast storm suppression threshold.

Use undo unicast-suppression to disable unknown unicast storm suppression.

Syntax

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

undo unicast-suppression

Default

A FlexE logical interface does not suppress unknown unicast traffic.

Views

FlexE logical interface view

Predefined user roles

network-admin

Parameters

ratio: Specifies the unknown unicast suppression threshold as a percentage of the interface bandwidth. The value range for this argument (in percentage) is 0 to 100. A smaller value means that less unknown unicast traffic is allowed to pass through.

pps max-pps: Specifies the maximum number of unknown unicast packets that the interface can forward per second. The value range for the max-pps argument (in pps) is 0 to 1.4881 × the interface bandwidth.

kbps max-kbps: Specifies the maximum number of kilobits of unknown unicast traffic that the FlexE logical interface can forward per second. The value range for this argument (in kbps) is 0 to the interface bandwidth.

Usage guidelines

The unknown unicast storm suppression feature limits the size of unknown unicast traffic to a threshold on an interface. When the unknown unicast traffic on the interface exceeds this threshold, the system discards packets until the unknown unicast traffic drops below this threshold.

Both the storm-constrain command and the unicast-suppression command can suppress unknown unicast storms on a port. The unicast-suppression command uses the chip to physically suppress unknown unicast traffic. It has less influence on the device performance than the storm-constrain command, which uses software to suppress unknown unicast traffic.

For the unknown unicast traffic suppression result to be determined, do not configure both the storm-constrain unicast command and the unicast-suppression command on an interface.

The configured suppression threshold value in pps or kbps might be converted into a multiple of a step supported by the chip. As a result, the effective suppression threshold might be different from the configured one. To determine the suppression threshold that takes effect, see the prompts on the device.

Examples

# Set the unknown unicast storm suppression threshold to 10000 kbps on FlexE logical interface FlexE 1/0/1:1.

<Sysname> system-view

[Sysname] interface flexe 1/0/1:1

[Sysname-FlexE1/0/1:1] unicast-suppression kbps 10000

The actual value is 10048 on port FlexE1/0/1:1 currently.

The output shows that the value that takes effect is 10048 kbps (157 times of 64), because the chip only supports step 64.

Related commands

broadcast-suppression

multicast-suppression

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