- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-FlexE interface commands | 364.75 KB |
flexe dcn-auto-negotiation enable
flexe physicalmode switch-disable
flexe force-physical-mode ethernet
snmp-agent trap enable ifmonitor
traffic-statistic include-interframe
FlexE interface commands
When the device uses an RSU-400 or RSU-400-G MPU, and an HRIC-CLGQ2, HRIC-CQ1F, HRIC-LGQ1, HRIC-LGQ2F, or HRIC-XP8-H interface card is installed in slot 4, 5, 6, or 7, FlexE interface commands are supported.
For FlexE interfaces to operate efficiently, as a best practice, install the preceding interface card in slot 6 or 7.
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 5/0/2:1 to 1000 kbps.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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 126 for a FlexE-50G interface and 1 to 254 for a FlexE-100G interface.
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.
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 5/0/0 to FlexE-group 5/0/1 and set the PHY number of the FlexE physical interface to 1.
<Sysname> system-view
[Sysname] interface flexe-group 5/0/1
[Sysname-FlexE-Group5/0/1] bind interface flexe-50G-100g 5/0/0 phy-number 1
Related commands
client
interface flexe-group
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 in Gbps. 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. The value range of timeslot IDs depend on FlexE physical interface type.
¡ For FlexE-50G interfaces, the value range for the timeslot ID is 0 to 9. Each timeslot represent bandwidth of 5 GB.
¡ For FlexE-100G interfaces, the value range for the timeslot ID is 0 to 19. Each timeslot represents bandwidth of 5 GB.
Usage guidelines
After adding a 100-GE FlexE physical interface or two 50-GE FlexE physical interfaces are added to the same FlexE-group interface, you can create a maximum of twenty FlexE logical interfaces.
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 5/0/1, the device creates FlexE logical interface FlexE5/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.
On an HRIC-LGQ2F interface card, if FlexE physical interfaces 0 and 1 are added to different FlexE-group interfaces, set different client IDs for the two FlexE group interfaces.
Examples
# Create FlexE logical interface FlexE 5/0/1:10 and set its bandwidth to 10 GB.
<Sysname> system-view
[Sysname] interface flexe-group 5/0/1
[Sysname-FlexE-Group5/0/1] bind interface flexe-50G-100g 5/0/0 phy-number 2
[Sysname-FlexE-Group5/0/1] client 10 bandwidth 10
Related commands
bind interface
flexe config-mode
interface flexe-group
config-mode
Use config-mode to set the bandwidth allocation mode for a FlexE logical interface.
Use undo config-mode to restore the default.
Syntax
config-mode { bandwidth | sub-timeslot }
undo config-mode
Views
FlexE-FG10G interface view
Default
The bandwidth allocation mode is bandwidth-based.
Predefined user roles
network-admin
Parameters
bandwidth: Specifies the fine granularity bandwidth-based mode, which allows you to flexibly configure bandwidth.
sub-timeslot: Specifies the sub-timeslot-based mode, which allows you to allocate bandwidth by specifying sub-timeslots at the granularity of 10 Mbps.
Usage guidelines
To meet the differentiated service carrying requirements for small bandwidth, high isolation, and high security in the 5G+vertical industry application scenarios and private line service scenarios, you must provide carrier channels with lower granularity. The fine granularity unit (FGU) technique refines the granularity from 5 Gbps to 10 Mbps to provide carrier channels with low costs, small granularity, and hardware isolation to meet the requirements of 5G+vertical industry application scenarios and government/organization private line scenarios.
In the current software version, you can configure bandwidth at the granularity of 10 Mbps for FlexE-FG10G interfaces. Use this command to configure the bandwidth allocation mode for a fine granularity FlexE logical interface.
You can configure bandwidth for a fine-granularity FlexE logical interface flexibly or through specifying sub-timeslots with the specified granularity.
· When the bandwidth allocation mode is bandwidth-based, execute the fg-client fg-client-id bandwidth bandwidth-value command to configure bandwidth flexibly for a FlexE-FG10G interface.
· When the bandwidth allocation mode is sub-timeslot-based, execute the fg-client fg-client-id timeslot timeslotlist command to specify sub-timeslots with the granularity of 10 Mbps for a FlexE-FG10G interface.
If you have used the fg-client fg-client-id bandwidth bandwidth-value or fg-client fg-client-id timeslot timeslotlist command to configure bandwidth for a FlexE-FG10G interface, you cannot modify the bandwidth allocation mode for the FlexE-FG10G interface.
Examples
# In FlexE-FG10G interface view, configure the bandwidth allocation mode as sub-timeslot-based for fine-granularity FlexE logical interfaces.
<Sysname> system-view
[Sysname] interface flexe-fg10g 5/0/1
[Sysname-FlexE-FG10G5/0/1] config-mode sub-timeslot
Related commands
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-50G interface view
FlexE-50-100G interface view
FlexE-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.
After an interface in down state is dampened, the interface state displayed through the display interface command or MIB is always down.
Examples
# Enable interface dampening on FlexE-50-100G 5/0/1.
<Sysname> system-view
[Sysname] interface flexe-50-100G 5/0/1
[Sysname-FlexE-50-100G5/0/1] dampening
Related commands
display interface
link-delay
dcn enable
Use dcn enable to enable DCN for a FlexE physical interface.
Use undo dcn enable to restore the default.
Syntax
dcn enable
undo dcn enable
Default
DCN is not enabled for a FlexE physical interface.
Views
FlexE-50G interface view
FlexE-50-100G interface view
Layer 3 FlexE logical interface view
Predefined user roles
network-admin
Usage guidelines
Operating mechanism
The operating mechanism for this feature varies by FlexE interface type:
· If you configure this feature for a FlexE physical interface, the device automatically creates the associated FlexE-DCN interface, and automatically issues commands to the FlexE-DCN interface. You can execute the display this command for the FlexE-DCN interface to view the commands.
The interface number of the FlexE-DCN interface is the same as that of the FlexE physical interface. The FlexE-DCN interface is used to transmit DCN management information.
· If you configure this feature for a Layer 3 FlexE logical interface, the device automatically creates the associated Layer 3 FlexE logical subinterface, and automatically issues commands to the created Layer 3 FlexE logical subinterface. You can execute the display this command for the Layer 3 FlexE logical subinterface to view the commands.
The created Layer 3 FlexE logical subinterface is used to transmit DCN management information. The interface number for the created subinterface varies by device model.
Restrictions and guidelines
If you configure this feature for a FlexE physical interface, follow these restrictions and guidelines:
· Changing the type of the FlexE physical interface or deleting interface also deletes the associated FlexE-DCN interface.
· If the DCN auto negotiation feature is disabled for the interface, before you execute the undo dcn enable command, you must first enable the DCN auto negotiation feature.
If you configure this feature for a Layer 3 FlexE logical interface, follow these restrictions and guidelines:
· For the subinterface created with this command, you can only use the undo form of this command to delete it, instead of using the undo interface command.
· If you have created a subinterface with the specified interface number by using the interface command, you cannot configure this command for the associated interface.
Examples
# Enable DCN on FlexE physical interface FlexE-50-100GigE 5/0/0.
<Sysname> system-view
[Sysname] interface flexe-50-100g 5/0/0
[Sysname-FlexE-50-100G5/0/0] dcn enable
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
FlexE-DCN interface view
Predefined user roles
network-admin
Usage guidelines
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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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, FlexE5/0/2:1 Interface).
Views
FlexE group interface view
FlexE physical interface view
FlexE logical interface view
FlexE-DCN 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 5/0/2:1 as lan-interface.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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 FlexE 5/0/1:1.
<Sysname> display interface flexe 5/0/1:1
FlexE5/0/1:1
Interface index: 22023
Current state: DOWN
Line protocol state: DOWN
Description: FlexE5/0/1:1 Interface
Flow-control is not enabled
Maximum transmission unit: 1500
FlexE group: FlexE-Group5/0/1
Forbid jumbo frames to pass
Broadcast max-ratio: 100%
Multicast max-ratio: 100%
Unicast max-ratio: 100%
Internet protocol processing: Disabled
IP packet frame type: Ethernet II, hardware address: 78aa-8212-3057
IPv6 packet frame type: Ethernet II, hardware address: 78aa-8212-3057
Ethernet port mode: LAN
Port priority: 0
The maximum frame length is 10000
Last clearing of counters: Never
Current system time:2021-04-30 14:16:14
Last time when physical state changed to up:-
Last time when physical state changed to down:2021-04-30 14:03:47
Peak input rate: 0 bytes/sec, at 00-00-00 00:00:00
Peak output rate: 0 bytes/sec, at 00-00-00 00:00:00
Last 300 seconds input: 0 packets/sec 0 bytes/sec 0 bits/sec -%
Last 300 seconds output: 0 packets/sec 0 bytes/sec 0 bits/sec -%
Input (total): 0 packets, 32 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/0/1.
<Sysname> display interface flexe-group 5/0/1
FlexE-Group5/0/1
Interface index: 21917
Current state: DOWN
Description: FlexE-Group5/0/1 Interface
FlexE group information:
Bandwidth configuration mode: Bandwidth
Group number: 1
Total bandwidth: 50 Gbps
Valid bandwidth: 40 Gbps
FlexE PHY information:
FlexE-50-100G5/0/0:
Status: Local fault
TX overhead: PHY number 1, group number 1
RX overhead: PHY number 0, group number 0
FlexE calendar information:
TX:
Status: C(0), CR(0), CA(0)
FlexE-50-100G5/0/0
Timeslots Client IDs
0, 1, 2, 3, 4 1, 1, 0, 0, 0
5, 6, 7, 8, 9 0, 0, 0, 0, 0
RX:
Status: C(0), CR(0), CA(0)
FlexE-50-100G5/0/0
Timeslots Client IDs
0, 1, 2, 3, 4 0, 0, 0, 0, 0
5, 6, 7, 8, 9 0, 0, 0, 0, 0
Table 1 Command output
Field |
Description |
Interface index |
Constant interface index. |
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. · mac-address moving down—The interface has been shut down by the MAC address move suppression 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: ¡ 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. |
Description |
Description of the interface. |
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. |
Min-available bandwidth percent |
Minimum available bandwidth percent of the FlexE logical interface. |
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 3—IP Services Configuration Guide. · BOOTP-allocated—BOOTP allocated IP address. For more information, see BOOTP client configuration in Layer 3—IP Services Configuration Guide. · Unnumbered—IP address borrowed from another interface. |
IP packet frame type |
IPv4 packet framing format. |
hardware address |
MAC address of the interface. |
IPv6 packet frame type |
IPv6 packet framing format. |
Media type is |
Media type of the interface. |
Port hardware type is |
Port hardware type of the interface. |
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 set external |
An external 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. |
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. |
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. 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 |
This field is not supported in the current software version. Number of carrier losses during transmission. This counter increases by one when a carrier is lost, and applies to serial WAN interfaces. |
no carrier |
This field is not supported in the current software version. 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. |
Bandwidth configuration mode |
Bandwidth configuration mode of a FlexE logical interface: · Bandwidth—Specify the bandwidth mode. · Timeslot—Specify timeslot mode. |
Group number |
FlexE group interface number. |
Total bandwidth |
Total bandwidth of a FlexE group interface, the sum of the bandwidth of each bound physical interface. |
Valid bandwidth |
Available bandwidth of a FlexE group interface, the remaining bandwidth that has not been allocated to the FlexE logical interface. |
Status |
State of the FlexE physical interface: · Normal—The interface is in normal state, and no alarm or error exists. · Local fault. · Remote fault. · CRC error—CRC errors exist In the FlexE overhead. · Group mismatch—The group numbers on two ends do not match. · PhyNumber mismatch—The PHY numbers on two ends do not match. |
TX overhead |
Parameters in the overhead sent by the local physical interface, including PHY number and group number. |
RX overhead |
Parameters in the overhead received by the local physical interface, including PHY number and group number. |
Timeslots |
Timeslot numbers of the FlexE physical interface. |
Client IDs |
Client IDs corresponding to the timeslot numbers of the FlexE physical interface. |
# Display information about FlexE physical interface FlexE-50-100G 5/0/0.
<Sysname> display interface flexe-50-100g 5/0/0
FlexE-50-100G5/0/0
Interface index: 5441
Current state: DOWN
Line protocol state: DOWN
Description: FlexE-50-100G5/0/0 Interface
Bandwidth: 50000000 kbps
FlexE group: FlexE-Group5/0/1
Bound FlexE logical interface hosting clock service: FlexE5/0/2
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 |
Interface index |
Constant interface index. |
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. |
Description |
Description of the interface. |
Bandwidth |
Expected bandwidth of the interface. |
FlexE group |
FlexE group interface to which the FlexE physical interface belongs. |
Bound FlexE logical interface hosting clock service |
FlexE logical interface that bound a FlexE physical interface to host the clock service. |
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 information about FlexE-DCN interface FlexE-DCN 5/0/1.
<Sysname> display interface flexe-dcn 5/0/1
FlexE-DCN5/0/1
Interface index: 22021
Current state: DOWN
Line protocol state: DOWN
Description: FlexE-DCN5/0/1 Interface
Maximum transmission unit: 474
Internet address: 129.18.48.1/32 (Unnumbered)
IP packet frame type: Ethernet II, hardware address: 78aa-8212-3058
Input (total): 0 packets, 0 bytes
Output (total): 0 packets, 0 bytes
Table 3 Command output
Field |
Description |
Interface index |
Constant interface index. |
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. · mac-address moving down—The interface has been shut down by the MAC address move suppression feature. · MAD ShutDown—The interface has been shut down by IRF MAD. This state occurs if the interface is on an IRF fabric placed in Recovery state after an IRF split. · 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: ¡ 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. |
Description |
Description of the interface. |
Maximum frame length |
Maximum length of Ethernet frames allowed to pass through the interface. |
Input(total): 0 packets, 0 bytes 0 |
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. A hyphen (-) indicates that the statistical item is not supported. |
Output(total): 0 packets, 0 bytes 0 |
The two fields on the first line represent the outbound traffic statistics (in packets and bytes) for the interface. All inbound normal packets, abnormal packets, and normal pause frames were counted. A hyphen (-) indicates that the statistical item is not supported. |
# 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
FlexE-50G5/0/1 DOWN DOWN --
FlexE-50-100G5/0/0 DOWN DOWN --
FlexE-DCN5/0/0 DOWN DOWN 129.18.48.1
FlexE-DCN5/0/1 DOWN DOWN 129.18.48.1
FlexE-Group5/0/1 DOWN -- --
FlexE5/0/1:1 DOWN DOWN --
GE4/0/0 DOWN DOWN --
GE4/0/0.4094 DOWN DOWN 129.18.48.1
GE4/0/1 DOWN DOWN --
GE4/0/1.4094 DOWN DOWN 129.18.48.1
GE4/0/2 DOWN DOWN --
GE4/0/2.2 DOWN DOWN --
GE4/0/2.4094 DOWN DOWN 129.18.48.1
GE4/0/3 DOWN DOWN --
GE4/0/3.4094 DOWN DOWN 129.18.48.1
GE4/0/4 DOWN DOWN --
GE4/0/4.1 DOWN DOWN --
GE4/0/4.4094 DOWN DOWN 129.18.48.1
GE4/0/5 DOWN DOWN --
GE4/0/5.4094 DOWN DOWN 129.18.48.1
GE4/0/6 DOWN DOWN --
GE4/0/6.4094 DOWN DOWN 129.18.48.1
GE4/0/7 DOWN DOWN --
GE4/0/7.4094 DOWN DOWN 129.18.48.1
InLoop0 UP UP(s) --
Loop0 UP UP(s) --
# Display brief information about FlexE 5/0/3:2, including the complete description of the interface.
<Sysname> display interface flexe 5/0/3:2 brief description
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
FlexE5/0/3:2 UP 50G F A 1 aaaaaaaaaaaaaaaa
# 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
FlexE-50G5/0/1 DOWN Not connected
FlexE-50-100G5/0/0 DOWN Not connected
FlexE-DCN5/0/0 DOWN Not connected
FlexE-DCN5/0/1 DOWN Not connected
FlexE-Group5/0/1 DOWN Not connected
FlexE5/0/1:1 DOWN Not connected
Table 4 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. · H—Half duplex. |
Type |
This field is not supported in the current software version. 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. · Not connected—No physical connection exists (possibly because the network cable is disconnected or faulty). · Standby—The interface is a backup interface in standby state. |
display this interface
Use display this interface to display the operating status and information of an interface.
Syntax
display this interface
Views
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Usage guidelines
In interface view, to quickly view the operating status or packet statistics of the interface, execute this command.
For an interface, the output from the display this interface command in interface view is the same as the output from the display interface interface-type interface-number command in any view.
Related commands
display interface
fg-client
Use fg-client to configure a client ID, and create a FlexE logical interface.
Use undo fg-client to restore the default.
Syntax
fg-client fg-client-id { bandwidth bandwidth-value | timeslot timeslot-list }
undo fg-client fg-client-id
Default
No FlexE logical interfaces exist.
Views
FlexE-FG10G interface view
Predefined user roles
network-admin
Parameters
fg-client-id: Specifies an FG client ID (FlexE-FG10G logical interface number) on a FlexE logical interface, in the range of 1 to 1022.
bandwidth bandwidth-value: Directly specifies bandwidth for a FlexE logical interface. The bandwidth-value argument specifies bandwidth for a FlexE logical interface. The bandwidth is in the step of 10 in Mbps.
timeslot timeslot-list: Specifies bandwidth for a FlexE logical interface by specifying sub-timeslots. The timeslot-list argument specifies a sub-timeslot ID list, for example, 1,3-5. Use a hyphen (-) to specify a sub-timeslot ID range, and separate multiple sub-timeslot IDs or ranges by using commas (,). A sub-timeslot ID list can contain up to 24 characters. Only full data configuration is supported. A sub-timeslot represents bandwidth of 10 Mbps.
Usage guidelines
When you use this command to configure a FG client ID, the system will automatically create a FlexE logical interface with the same number. For example, if you configure FG client ID 10 on FlexE-FG10G 5/0/1, the system will automatically create FlexE logical interface FlexE 5/0/1/0:10.
You can also use this command to configure the bandwidth for a FlexE logical interface. You can configure bandwidth for a FlexE logical interface flexibly or through specifying sub-timeslots with the specified granularity.
· When the config-mode bandwidth command is used to configure the bandwidth allocation mode as bandwidth-based, you can only execute the fg-client fg-client-id bandwidth command to configure bandwidth flexibly for a FlexE logical interface.
· When the config-mode sub-timeslot command is used to configure the bandwidth allocation mode as sub-timeslot-based, you can only execute the fg-client fg-client-id timeslot timeslot-list command to specify sub-timeslots for a FlexE logical interface. The bandwidth of the FlexE logical interface is the number of sub-timeslots multiplied by the sub-timeslot granularity.
For FlexE-FG10G logical interfaces on two ends of a link to communicate normally, set the same FG client ID for the two FlexE group interfaces.
Examples
# On a PHY-level fine granularity slice, configure FG client ID 10, create FlexE-FG10G logical interface FlexE 5/0/1/0:10 with the same ID, and assign bandwidth of 50 Mbps to the interface.
<Sysname> system-view
[Sysname] interface flexe-fg10g 5/0/1
[Sysname-FlexE-FG10G5/0/1] config-mode bandwidth
[Sysname-FlexE-FG10G5/0/1] fg-client 10 bandwidth 50
Related commands
config-mode
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 for FlexE logical interfaces. In this mode, you can set the bandwidth of a FlexE logical interface by binding timeslots with the specified timeslot granularity of a FlexE physical interface to it.
Usage guidelines
You can set the bandwidth configuration mode for FlexE logical interfaces to one of the following modes:
· Bandwidth mode—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. In this mode, you can set different bandwidth for FlexE logical interfaces at both ends.
· Timeslot mode—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. In this mode, you must bind the timeslots of the same FlexE physical interfaces to FlexE logical interface at both ends. The timeslots of the FlexE physical interface bound to the FlexE logical interfaces at both end can be different.
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 5 subslot 0 timeslot
Related commands
client
flexe dcn-auto-negotiation enable
Use flexe dcn-auto-negotiation enable to enable the DCN auto negotiation feature for a FlexE physical interface.
Use undo flexe dcn-auto-negotiation to disable the DCN auto negotiation feature for a FlexE physical interface.
Syntax
flexe dcn-auto-negotiation enable
undo flexe dcn-auto-negotiation
Support for this command depends on the MPU model. In addition, only the HRIC-CQ1F and HRIC-LGQ2F interface modules support this command.
Device models |
MPU models |
Command compatibility |
RA5300, RA5300-X, RA5300-AC |
RSU-400, RSU-400S |
· RSU-400: Yes · RSU-400S: No |
RSU-400-G |
Yes |
Default
The DCN auto negotiation feature is enabled for a FlexE physical interface.
Views
FlexE physical interface view
Predefined user roles
network-admin
Usage guidelines
Application scenarios
A FlexE interface cannot directly communicate with a standard Ethernet interface because they are different types. For a FlexE physical interface to communicate with a standard Ethernet interface, enable the DCN auto negotiation feature. This feature enables the FlexE physical interface to switch its underlying operating mode to standard Ethernet mode through auto negotiation with the peer end.
Operating mechanism
After you enable the DCN auto negotiation feature, the local interface switches its underlying operating mode based on the peer interface type. This ensure operating mode consistency between the two interfaces. If the peer interface is a standard Ethernet interface and the local interface is a FlexE physical interface, the local interface will automatically switch its operating mode to standard Ethernet mode, and will forward packets in standard Ethernet mode. If both the local and peer interfaces are FlexE physical interfaces, the local interface will not switch its operating mode.
Restrictions and guidelines
Before enabling this feature, you must first enable DCN for the interface.
If you have forcibly switched the operating mode for a FlexE physical interface to standard Ethernet mode (with the flexe force-physical-mode ethernet command), you cannot enable the DCN auto negotiation feature for the interface. Before you enable the DCN auto negotiation feature, make sure the configuration of the flexe force-physical-mode ethernet command has been removed.
Examples
# Enable the DCN auto negotiation feature for FlexE physical interface FlexE-50-100GigE 5/0/0.
<Sysname> system-view
[Sysname] interface flexe-50-100g 5/0/0
[Sysname-FlexE-50-100G5/0/0] flexe dcn-auto-negotiation enable
Related commands
dcn enable
flexe force-physical-mode ethernet
flexe physicalmode switch-disable
flexe physicalmode switch-disable
Use flexe physicalmode switch-disable to configure the timer for switching the operating mode of a FlexE physical interface from standard Ethernet mode to flexible Ethernet mode.
Use undo flexe physicalmode to restore the default.
Syntax
flexe physicalmode switch-disable [ cleartime ]
undo flexe physicalmode
Support for this command depends on the MPU model. In addition, only the HRIC-CQ1F and HRIC-LGQ2F interface modules support this command.
Device models |
MPU models |
Command compatibility |
RA5300, RA5300-X, RA5300-AC |
RSU-400, RSU-400S |
· RSU-400: Yes · RSU-400S: No |
RSU-400-G |
Yes |
Default
The timer is 20 minutes.
Views
System view
Predefined user roles
network-admin
Parameters
cleartime: Specifies the timer for switching the operating mode of a FlexE physical interface from standard Ethernet mode to flexible Ethernet mode. The value range for this argument is 1 to 2880 minutes. If you do not specify this argument, the system will not switch the operating mode of FlexE physical interfaces from standard Ethernet mode to flexible Ethernet mode.
Usage guidelines
After you enable DCN auto negotiation for a FlexE physical interface, the system starts a switchover timer upon detecting a link anomaly. If the link anomaly still exists upon expiration of the timer, the operating mode of the FlexE physical interface will automatically switch from standard Ethernet mode to flexible Ethernet mode.
Examples
# Configure the timer as 100 minutes for switching the operating mode of a FlexE physical interface from standard Ethernet mode to flexible Ethernet mode.
<Sysname> system-view
[Sysname] flexe physicalmode switch-disable 100
Related commands
flexe dcn-auto-negotiation enable
flexe force-physical-mode ethernet
Use flexe force-physical-mode ethernet to forcibly switch the operating mode of a FlexE physical interface to standard Ethernet mode.
Use undo flexe force-physical-mode to restore the operating mode of a FlexE physical interface to flexible Ethernet mode.
Syntax
flexe force-physical-mode ethernet
undo flexe force-physical-mode
Support for this command depends on the MPU model. In addition, only the HRIC-CQ1F and HRIC-LGQ2F interface modules support this command.
Device models |
MPU models |
Command compatibility |
RA5300, RA5300-X, RA5300-AC |
RSU-400, RSU-400S |
· RSU-400: Yes · RSU-400S: No |
RSU-400-G |
Yes |
Default
The operating mode of a FlexE physical interface is flexible Ethernet mode.
Views
FlexE physical interface view
Predefined user roles
network-admin
Usage guidelines
Application scenarios
A FlexE interface cannot directly communicate with a standard Ethernet interface because they are different types. For a FlexE physical interface to communicate with a standard Ethernet interface, you can forcibly switch the underlying operating mode of the FlexE physical interface to standard Ethernet mode.
Operating mechanism
Configure this command to immediately switch the underlying operating mode of a FlexE physical interface from flexible Ethernet mode to standard Ethernet mode.
Restrictions and guidelines
Before configuring this feature, you must first enable DCN for the interface.
If you have enabled DCN auto negotiation for the FlexE physical interface (with the flexe dcn-auto-negotiation enable command), you cannot forcibly switch the operating mode for the interface to standard Ethernet mode. Before you forcibly switch the operating mode of a FlexE physical interface to standard Ethernet mode, make sure the DCN auto negotiation configuration has been removed.
Examples
# Forcibly switch the operating mode of FlexE physical interface FlexE-50-100GigE 5/0/0 to standard Ethernet mode.
<Sysname> system-view
[Sysname] interface flexe-50-100g 5/0/0
[Sysname-FlexE-50-100G5/0/0] flexe force-physical-mode ethernet
Related commands
dcn enable
flexe dcn-auto-negotiation enable
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 of the specified slot. 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 slot 1 high-threshold 5000 low-threshold 400 interval 6
Related commands
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 of the specified slot. 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 slot 1 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 is fixed at 5 minutes.
You can configure the input bandwidth usage alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces of the specified slot. 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 slot 1 high-threshold 95 low-threshold 80
Related commands
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 of the specified slot. 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 slot 1 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 is fixed at 5 minutes.
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 of the specified slot. 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 slot 1 high-threshold 80 low-threshold 60
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 5/0/0
[Sysname-FlexE-50-100G5/0/0]
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 FlexE 5/0/1:10.
<Sysname> system-view
[Sysname] interface flexe 5/0/1:10
[Sysname-FlexE5/0/1:10]
Related commands
client
interface flexe-dcn
Use interface flexe-dcn to enter FlexE-DCN interface view.
Syntax
interface flexe-dcn interface-number
Views
System view
Predefined user roles
network-admin
Parameters
interface-number: Specifies a FlexE-DCN interface by its number.
Usage guidelines
In FlexE-DCN interface view, you can configure the following LLDP features to implement DCN:
· LLDP operating mode.
· LLDP function.
· Configuring the interface to generate ARP or ND entries after receiving LLDP frames carrying the management address TLVs.
· Advertisable TLVs on the interface.
For more information about LLDP, see LLDP in Layer 2—LAN Switching Configuration Guide.
Examples
# Enter the view of interface FlexE-DCN 5/0/1.
<Sysname> system-view
[Sysname] interface flexe-dcn 5/0/1
[Sysname-FlexE-DCN5/0/1]
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 5/0/1 and enter its view.
<Sysname> system-view
[Sysname] interface flexe-group 5/0/1
[Sysname-FlexE-Group5/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 10000 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 10000.
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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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 600 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 5/0/2.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1] link-delay down 8
# Set the link-up event suppression interval to 800 milliseconds on FlexE logical interface FlexE 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1] link-delay up msec 800 mode
loopback
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 { external | internal }}
undo loopback
Default
Loopback testing is disabled on a FlexE logical interface.
Views
FlexE physical interface view
Predefined user roles
network-admin
Parameters
external: Enables external loopback testing on the FlexE logical interface.
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 physical interface FlexE-50-100GigE 5/0/0.
<Sysname> system-view
[Sysname] interface flexe-50G-100g 5/0/0
[Sysname-FlexE-50-100G5/0/0] 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
The device has set the MAC address 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 5/0/2:1 to 0001-0001-0001.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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 [ spread ]
undo mtu [ spread ]
Default
The MTU of a FlexE logical interface is 1500 bytes, and the MTU of a FlexE-DCN interface is 474 bytes.
Views
FlexE logical interface view
FlexE-DCN interface view
FlexE logical subinterface view
Predefined user roles
network-admin
Parameters
size: Specifies the MTU in bytes. The value range is 46 to 9600 for FlexE logical interfaces and 46 to 986 for FlexE-DCN interfaces.
spread: Batch modifies the MTU for the subinterfaces of a main interface. FlexE-DCN interfaces and FlexE logical subinterfaces do not support this keyword.
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.
The mtu size spread command executed in main interface view can modify the MTU for both the main interface and its subinterfaces. However, the MTU separately configured for a subinterface takes priority.
Examples
# Set the MTU to 1430 bytes for FlexE logical interface FlexE 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1] mtu 1430
Related commands
ip mtu (Layer 3—IP Services Command Reference)
port fec mode
Use port fec mode to set the forward error correction (FEC) mode of an interface.
Use undo port fec mode to restore the default.
Syntax
port fec mode { auto | none | rs-fec }
undo port fec mode
Default
The FEC mode of an interface is autonegotiated.
Views
50-100GE interface view
FlexE-50-100G interface view
size: Specifies the MTU in bytes. The value range is 46 to 9600 for FlexE logical interfaces and 46 to 474 for FlexE-DCN interfaces.
Predefined user roles
network-admin
Parameters
auto: Autonegotiates the FEC mode, automatically sets the FEC mode according to the transceiver module type, or disables FEC.
none: Performs no FEC.
rs-fec: Specifies the RS-FEC mode.
Usage guidelines
The FEC feature corrects packet errors to improve transmission quality. It attaches correction information to a packet at the sending end, and corrects error codes generated during transmission at the receiving end based on the correction information. You can set the FEC mode as needed.
Make sure you set the same FEC mode for both interfaces of a link.
Examples
# Set the FEC mode of FlexE-50-100G 5/0/0 to autonegotiation.
<Sysname> system-view
[Sysname] interface flexe-50-100g 5/0/0
[Sysname-FlexE-50-100G5/0/0] port fec mode auto
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 of the specified slot. 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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1] port ifmonitor crc-error high-threshold 5000 low-threshold 400 interval 6
Related commands
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 of the specified slot. 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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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 is fixed at 5 minutes.
You can configure the input bandwidth usage alarm parameters in system view and interface view.
· The configuration in system view takes effect on all interfaces of the specified slot. 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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1] port ifmonitor input-usage high-threshold 80 low-threshold 60
Related commands
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 of the specified slot. 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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2: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 is fixed at 5 minutes.
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 of the specified slot. 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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1]port ifmonitor output-usage high-threshold 9 low-threshold 7
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 interface view:
port-type flexe
In FlexE-50G interface view:
port-type ethernet
Views
50-GE interface view
FlexE-50G interface view
Predefined user roles
network-admin
Usage guidelines
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. |
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.
If a FlexE physical interface has been added to a FlexE group interface and bandwidth has been assigned to a FlexE logical interface in the group, you cannot change the interface type.
Examples
# Change standard Ethernet interface FiftyGigE 5/0/1 a FlexE interface.
<Sysname> system-view
[Sysname] interface fiftygige 5/0/1
[Sysname-FiftyGigE5/0/1] port-type flexe
The interface FiftyGigE5/0/1 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: 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 5/0/2:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1
[Sysname-FlexE5/0/2:1] shutdown
[Sysname-FlexE5/0/2: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 | input-error | input-usage | output-error | output-usage ] *
undo snmp-agent trap enable ifmonitor [ crc-error | input-error | input-usage | output-error | output-usage ] *
Default
Interface alarm functions are enabled.
Views
System view
Predefined user roles
network-admin
Parameters
crc-error: Enables the CRC error packet alarm function.
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.
Examples
# Enable the CRC error packet alarm function.
<Sysname> system-view
[Sysname] snmp-agent trap enable ifmonitor crc-error
speed-mode
Use speed-mode to change the speed mode of an interface between 50 Gbps and 100 Gbps.
Use undo speed-mode to restore the default.
Syntax
speed-mode { 50ge | 100ge }
undo speed-mode
Default
An interface operates at a speed of 50 Gbps.
Views
50-100GE interface view
Predefined user roles
network-admin
Parameters
50ge: Specifies the speed of 50 Gbps.
100ge: Specifies the speed of 100 Gbps.
Usage guidelines
Assume that an interface module has only two interfaces A and B and that A has a smaller interface number than B. When you change the speed mode of the interfaces, follow these restrictions:
· If both A and B operate at a speed of 50 Gbps, you can change only the speed mode of A to 100 Gbps. After the speed mode of A changes, B will be deleted.
· If you change the speed mode of A from 100 Gbps to 50 Gbps, B will be created and will operate at a speed of 50 Gbps.
To display the speed mode of an interface, use the display interface command.
Examples
# Configure Fifty-HundredGigE 5/0/0 to operate at a speed of 50 Gbps.
<Sysname> system-view
[Sysname] interface fifty-hundredgige 5/0/0
[Sysname-Fifty-HundredGigE5/0/0] speed-mode 50ge
Related commands
display interface
switch-mode
Use switch-mode to set the speed mode for a 50-100GE interface.
Use undo switch-mode to restore the default.
Syntax
switch-mode manual
undo switch-mode
Views
50-100GE interface view
Default
The speed of an interface is determined by the transceiver module installed.
Predefined user roles
network-admin
Parameters
manual: Sets the speed mode to manual for the 50-100GE interface.
Usage guidelines
After you execute this command on an interface, you must use the speed-mode command to manually specify a speed mode for the interface.
Two physical interfaces exist on an expansion interface module, which correspond to interfaces 50-100GE 5/0/0 and 50-100GE 5/0/1. By default, the speed mode of interfaces on the interface expansion modules is auto. In the display interface brief command, you can view interfaces 50-100GE 5/0/0 and 50-100GE 5/0/1.
· The speed of interface 50-100GE 5/0/0 is determined by the transceiver module installed. When a 50-Gbps transceiver module is installed in the interface, the speed of the interface is 50 Gbps. When a 100-Gbps transceiver module is installed in the interface, the speed of the interface is 100 Gbps.
· Interface 50-100GE 5/0/1 always operates at 50 Gbps no matter whether a 50-Gbps transceiver module or 100-Gbps transceiver module is installed.
To improve interface usage and protect investments, you can execute the switch-mode manual command to configure a 100-Gbps transceiver module to operate at 50 Gbps when a 100-Gbps transceiver module is installed in 50-100GE 5/0/0 and the peer interface has a 50-Gbps transceiver module installed. After you execute the switch-mode manual command, the device will delete interface 50-100GE 5/0/1. In the display interface command output, you can view only interface 50-100GE 5/0/0.
To restore the 100-Gbps speed for the transceiver module manually configured to operate at 50 Gbps, execute the speed-mode 100ge command in manual mode, or execute the undo switch-mode command to restore the autosensing mode.
Examples
# Configure interface Fifty-HundredGigE 5/0/0 to operate in manual mode.
<Sysname> system-view
[Sysname] interface fifty-hundredgige 5/0/0
[Sysname-Fifty-HundredGigE5/0/0] switch-mode manual
Related commands
display interface
speed-mode
traffic-statistic enable
Use traffic-statistic enable to enable packet statistics collection for an interface.
Use undo traffic-statistic enable to disable packet statistics collection for an interface.
Syntax
traffic-statistic enable
undo traffic-statistic enable
Default
Packet statistics collection is disabled for an interface.
Views
FlexE logical subinterface view
Predefined user roles
network-admin
Usage guidelines
You can use the display interface or display counters command to display the subinterface traffic statistics.
Examples
# Enable packet statistics collection for FlexE5/0/2:1.1.
<Sysname> system-view
[Sysname] interface flexe 5/0/2:1.1
[Sysname-FlexE5/0/2:1.1] traffic-statistic enable
Related commands
display counters
display interface
traffic-statistic include-interframe
Use traffic-statistic include-interframe to enable interframe gap and preamble statistics in the traffic statistics.
Use undo traffic-statistic include-interframe to restore the default.
Syntax
traffic-statistic include-interframe
undo traffic-statistic include-interframe
Default
Interframe gap and preamble statistics are enabled in the traffic statistics.
Views
FlexE logical interface view
Predefined user roles
network-admin
Usage guidelines
If you execute the display interface command, the Last 300 seconds input rate or Last 300 seconds output rate field in the command output displays the average outbound or inbound traffic rate in the last 300 seconds.
By default, traffic rate = native frame length × packet count per second. Execute the traffic-statistic include-interframe command if you need the total traffic statistics, including the native frame length, interframe gap length, and preamble length, for a specific time period. With this command executed, traffic rate = (native frame length + interframe gap length + preamble length) × packet throughput per second.
Examples
# Enable interframe gap and preamble statistics in the traffic statistics for FlexE 5/0/1:1.
<Sysname> system-view
[Sysname] interface flexe 5/0/1:1
[Sysname-FlexE5/0/1:1] traffic-statistic include-interframe
Traffic statistic will be set to include Inter-frame Gaps and Preambles. Continue? [Y/N]:y
Related commands
display interface